Skip to content

Commit 1e5c07b

Browse files
committed
Fix: Compatybility to es5
1 parent 46ed388 commit 1e5c07b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class MicroservicesWebpackPlugin {
4646

4747
const value = [
4848
this.modules
49-
.map(({ cdn, name }) => `define('${name}', ['${cdn}'], v => v)`)
49+
.map(({ cdn, name }) => `define('${name}', ['${cdn}'], function(v) {return v;})`)
5050
.join('\n'),
5151
compilation.assets[fileName].source()
5252
].join('\n');

0 commit comments

Comments
 (0)