Defining jQuery instead of jquery breaks webpack #96
DevilstarII
commented
Apr 18, 2017
Just in case someone still needs it, and can't wait for a fix. Use it in combination with imports-loader, eg:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The jQuery package on npm is named
jquery
notjQuery
.So when bundling with webpack, using
{ test: require.resolve('jquery'), loader: "expose?$!expose?jQuery" }
breaks the build since this library
defines['jQuery']
which the npm module does not exist.