bradstewart / electron-boilerplate-vue

Boilerplate application for Electron runtime
724 stars 94 forks source link

Not compiling background.js via babel on Windows (Unexpected token Import) #39

Open youanden opened 7 years ago

youanden commented 7 years ago

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 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.