Skip to content

Commit b859e88

Browse files
Bug Fix: The latest webpack5 requires the environment config for es5 builds(#198).
1 parent 761384b commit b859e88

File tree

8 files changed

+497
-529
lines changed

8 files changed

+497
-529
lines changed

build/complete/config-min.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ module.exports = {
55
...config,
66
output : {
77
filename: 'splide.min.js',
8+
environment: config.output.environment,
89
},
910
optimization: {
1011
minimize : true,

build/complete/config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ module.exports = {
44
entry: './build/complete/complete.js',
55
output: {
66
filename: 'splide.js',
7+
environment: {
8+
arrowFunction: false,
9+
bigIntLiteral: false,
10+
const : false,
11+
destructuring: false,
12+
dynamicImport: false,
13+
forOf : false,
14+
module : false,
15+
},
716
},
817
module: {
918
rules: [

0 commit comments

Comments
 (0)