Skip to content

Commit b5ae392

Browse files
committed
fix: remove weapp runtime resets
The resets conflict with core-js global detection. They are no longer required as we mvoe to the adapter approach
1 parent ab70983 commit b5ae392

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

webpack/weapp.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
const webpack = require('webpack');
21
const { create, entry, name } = require('./common');
32

43
const config = create();
@@ -8,12 +7,5 @@ config.entry = {
87
[`${name}-weapp-min`]: entry,
98
};
109
config.resolve.aliasFields = ['weapp', 'browser'];
11-
config.plugins.push(
12-
new webpack.BannerPlugin({
13-
banner:
14-
'var window={};var XMLHttpRequest;var navigator;var localStorage;function Function(){return function(){}};',
15-
raw: true,
16-
})
17-
);
1810

1911
module.exports = config;

0 commit comments

Comments
 (0)