I found it strange that when I ran:
cross-env HOT=1 webpack --hide-modules --config build/webpack.dev-background.conf.js
the original import statements remain untouched in the generated background.js file in the dist/ folder.
Testing a few modifications to the configuration I was able to resolve the issue by removing the line:
include: projectRoot, from build/webpack.base.conf.js
I unfortunately don't have the time to experiment and figure out why that is the case, but hopefully someone else experiencing this issue can live knowing it is possible to bypass.
Hello!
I found it strange that when I ran:
cross-env HOT=1 webpack --hide-modules --config build/webpack.dev-background.conf.js
the original import statements remain untouched in the generated
background.js
file in thedist/
folder.Testing a few modifications to the configuration I was able to resolve the issue by removing the line:
include: projectRoot,
frombuild/webpack.base.conf.js
I unfortunately don't have the time to experiment and figure out why that is the case, but hopefully someone else experiencing this issue can live knowing it is possible to bypass.