Answer the question
In order to leave comments, you need to log in
How can I tell if .babelrc is being used?
Configs are named like this webpack.config.dev.js
babelrc - common for everyone as I understand it
{
"presets": [
[
"env",
{
"modules": false,
"targets": {
"browsers": [
"> 1%",
"last 2 versions",
"not ie <= 8"
]
}
}
],
"stage-2"
],
"plugins": [
"transform-runtime"
],
"comments": false,
"env": {
"test": {
"presets": [
"es2015",
"env",
"stage-2"
],
"plugins": [
"istanbul"
]
}
}
}
webpack.babel.dev.js
webpack.babel.test.js
webpack.babel.prod.js
Answer the question
In order to leave comments, you need to log in
{
test: /\.js$/,
// use: 'babel-loader',
use: 'source-map-loader',
exclude: /node_modules/,
},
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question