Skip to content

Commit 48d5241

Browse files
committed
use loose mode in all babel compilations
1 parent c8ebba8 commit 48d5241

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

build/webpack.dev.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = {
1111
{
1212
test: /.js/,
1313
exclude: /node_modules/,
14-
loader: 'babel?optional[]=runtime'
14+
loader: 'babel?optional[]=runtime&loose=true'
1515
}
1616
]
1717
},

example/advanced/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = {
1919
{
2020
test: /\.js$/,
2121
exclude: /node_modules|vue\/src/,
22-
loader: 'babel?optional[]=runtime'
22+
loader: 'babel?optional[]=runtime&loose=true'
2323
}
2424
]
2525
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"dev": "npm run serve & npm run serve-test & webpack --watch --config build/webpack.dev.config.js",
88
"lint": "eslint src build test/e2e test/unit/specs",
99
"unit": "./node_modules/karma/bin/karma start build/karma.config.js",
10-
"build": "babel ./src --optional runtime --out-dir lib && webpack --config build/webpack.build.dev.config.js && webpack --config build/webpack.build.min.config.js",
10+
"build": "babel ./src --loose --optional runtime --out-dir lib && webpack --config build/webpack.build.dev.config.js && webpack --config build/webpack.build.min.config.js",
1111
"serve": "webpack-dev-server --hot --config example/advanced/webpack.config.js --content-base example/advanced --history-api-fallback --host 0.0.0.0",
1212
"serve-test": "webpack-dev-server --quiet --config test/unit/webpack.config.js --content-base test/unit --history-api-fallback --host 0.0.0.0 --port 8081",
1313
"e2e-sauce": "nightwatch -c build/nightwatch.sauce.json -e chrome,firefox,ie10,ie11",

test/unit/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
{
1010
test: /\.js$/,
1111
exclude: /test|node_modules|vue\/src/,
12-
loader: 'babel?optional[]=runtime'
12+
loader: 'babel?optional[]=runtime&loose=true'
1313
}
1414
]
1515
}

0 commit comments

Comments
 (0)