Customize webpack jsonpFunction to avoid collision (https://github.com/woocommerce/woocommerce-admin/pull/4644)

This commit is contained in:
Evan Mattson 2020-07-09 05:10:34 +03:00 committed by GitHub
parent 79552c953d
commit 5872c450a7
1 changed files with 1 additions and 0 deletions

View File

@ -93,6 +93,7 @@ const webpackConfig = {
path: path.join( __dirname, 'dist' ),
library: [ 'wc', '[modulename]' ],
libraryTarget: 'this',
jsonpFunction: '__wcAdmin_webpackJsonp',
},
externals,
module: {