Merge pull request #12181 from MoonE/webpack-fix-ie11

Build for ie11 again
This commit is contained in:
MoonE
2021-04-05 10:55:14 +02:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -3,6 +3,7 @@ module.exports = {
entry: './build/index.js', entry: './build/index.js',
devtool: 'source-map', devtool: 'source-map',
mode: 'production', mode: 'production',
target: ['web', 'es5'],
module: { module: {
rules: [ rules: [
{ {
+1 -1
View File
@@ -8,7 +8,7 @@ const src = path.join(__dirname, '..');
module.exports = { module.exports = {
context: src, context: src,
target: 'web', target: ['web', 'es5'],
entry: () => { entry: () => {
const entry = {}; const entry = {};
fs.readdirSync(src) fs.readdirSync(src)