Closed killmenot closed 4 years ago
Please provide a minimally reproducible test repository
You are using the wrong syntax, and add the imports-loader
itself to the bundle.
There have been big changes in version 1.0.0. Please read them and the current documentation.
You probably want something like this:
import 'imports-loader?wrapper=window!jquery.appear'
import 'imports-loader?wrapper=window&imports=default|jquery|jQuery!jquery-countto'
If you are missing the inline syntax, you can use webpack.config. There is a additionalCode
option and advanced wrapper
options available.
Thanks!
Expected Behavior
No errors
Actual Behavior
Invalid regular expression: invalid group specifier name
Code
webpack.config.js https://gist.github.com/killmenot/ca5f2efd020e7c5870fc671910e520b0
How Do We Reproduce?
Open in Safari (Chrome works OK)
Information