From 086ea558a2f0395b5be5165ce468af3c1f310c51 Mon Sep 17 00:00:00 2001 From: Hans Larsen Date: Mon, 6 Jul 2020 13:41:52 -0700 Subject: [PATCH] fix: use a custom jsonpFunction to allow other webpack bundles Otherwise webpack will use the same webpackJsonp function which will conflict with our own modules. --- src/bootstrap/webpack.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bootstrap/webpack.config.js b/src/bootstrap/webpack.config.js index 71019d4f34..a21f751228 100644 --- a/src/bootstrap/webpack.config.js +++ b/src/bootstrap/webpack.config.js @@ -24,6 +24,9 @@ module.exports = { }, target: 'web', output: { + // This is necessary to allow internal apps to bundle their own code with + // webpack which may conflict with us. + jsonpFunction: '__dfinityJsonp', path: path.resolve(__dirname, './dist'), filename: '[name].js', },