Skip to content

Commit ed911cb

Browse files
author
Dewyzee
committed
fixed issue #1397
1 parent d4e0026 commit ed911cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// Component变量只有在项目中通过json配置声明组件后,打包的时候才会声明赋值,否则访问不到
1212
const banner = `
1313
if (!global) {
14-
var globalModule = require('global');
14+
var globalModule = require('core-js').global;
1515
var Component = Component ? Component : globalModule.AFAppX.WorkerComponent;
1616
var global = globalModule.AFAppX.$global || {};
1717
}

0 commit comments

Comments
 (0)