Closed benjaminpreiss closed 4 years ago
Hi, it looks like 'extract-loader' can't resolve ES6 module syntax. I don't recommend that reference a JS file via 'extract-loader' because i think that isn't a fully functional node environment. I suggest you reference a JS by 'import' or 'require' directly or using 'html-webpack-plugin' to finish this job.
Yes, indeed. Thank you for the hint!
Here is an example repo for anyone who has the same issues:
I am getting this error for an embedded ES6 script:
Error:
These are my files: index.html:
index.js (using ES6 syntax):
webpack.config.js:
Help would be very appreciated!