diff --git a/config/webpack-config-legacy-build.js b/config/webpack-config-legacy-build.js index a7fb3a7977..fb622450af 100644 --- a/config/webpack-config-legacy-build.js +++ b/config/webpack-config-legacy-build.js @@ -3,6 +3,7 @@ module.exports = { entry: './build/index.js', devtool: 'source-map', mode: 'production', + target: ['web', 'es5'], module: { rules: [ { diff --git a/examples/webpack/config.js b/examples/webpack/config.js index 9d5b98556e..2a078519fb 100644 --- a/examples/webpack/config.js +++ b/examples/webpack/config.js @@ -8,7 +8,7 @@ const src = path.join(__dirname, '..'); module.exports = { context: src, - target: 'web', + target: ['web', 'es5'], entry: () => { const entry = {}; fs.readdirSync(src)