Skip to content

Commit 3aa41cc

Browse files
committed
fix wx bug in Alipay target
1 parent d344973 commit 3aa41cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ export default class WXAppPlugin {
250250
const source = core.source();
251251

252252
// eslint-disable-next-line max-len
253-
const injectContent = `; function webpackJsonp() { require("./${posixPath}"); ${globalVar}.webpackJsonp.apply(wx, arguments); }`;
253+
const injectContent = `; function webpackJsonp() { require("./${posixPath}"); ${globalVar}.webpackJsonp.apply(null, arguments); }`;
254254

255255
if (source.indexOf(injectContent) < 0) {
256256
const concatSource = new ConcatSource(core);

0 commit comments

Comments
 (0)