Transpile examples for use with IE 11

This commit is contained in:
ahocevar
2018-07-08 22:24:29 +02:00
parent 84a88616a8
commit f3f0403cec
2 changed files with 14 additions and 1 deletions

View File

@@ -18,6 +18,18 @@ module.exports = {
context: src,
target: 'web',
entry: entry,
module: {
rules: [{
use: {
loader: 'buble-loader'
},
test: /\.js$/,
include: [
path.join(__dirname, '..', '..', 'src'),
path.join(__dirname, '..')
]
}]
},
optimization: {
runtimeChunk: {
name: 'common'

View File

@@ -47,6 +47,7 @@
"devDependencies": {
"babel-core": "^6.26.3",
"babel-plugin-jsdoc-closure": "1.5.1",
"buble-loader": "^0.5.1",
"chaikin-smooth": "^1.0.4",
"clean-css-cli": "4.1.11",
"copy-webpack-plugin": "^4.4.1",
@@ -87,7 +88,7 @@
"url-polyfill": "^1.0.13",
"walk": "^2.3.9",
"webpack": "4.15.1",
"webpack-cli": "^3.0.3",
"webpack-cli": "^3.0.8",
"webpack-dev-server": "^3.1.4"
},
"eslintConfig": {