Uncaught ReferenceError: __webpack_require__ is not defined
at batch.js?devtoolbar=true&gatekeeper-ui-v2=true&healthcheck-resources=true&highlightactions=true&hostenabled=true&locale=en-US&user-logged-in=true:24285:27
My JS file is:
alert("Hello world!");
And Atlassian’s webpack plugin transforms it into:
I can’t identify what I’m doing differently, but I have it working in my code and the builded JS code does not contain webpack_require. It looks like this in my case:
It looks like webpack_require should be replaced during the building process. If i remember correctly you should also define chunkLoadingGlobal in output to prevent conflicts with other plugins
our webpack output also contains something like this: