jquery 2.2.1 breaks webpack builds when loading individual modules

Hi,

after this change 5943f1d webpack builds are broken when loading individual modules:

ERROR in ./~/jquery/src/selector-sizzle.js Module not found: Error: Cannot resolve 'file' or 'directory' ../external/sizzle/dist/sizzle in /Users/berto/Temp/webpack-jquery/node_modules/jquery/src @ ./~/jquery/src/selector-sizzle.js 1:0-14:3

I think this is happening because in 2.2.1 ‘selector-sizzle.js’ is trying to load the sizzle dependency as ‘../external/sizzle/dist/sizzle’ a file which does not exist, unlike in 2.2.0 (for instance) which loads ‘sizzle’.

I set up a simple example here: https://github.com/bertez/webpack-jquery

npm install
npm run build

Thank you very much in advance.

Author: Fantashit

1 thought on “jquery 2.2.1 breaks webpack builds when loading individual modules

  1. We will have a fix in the next patch. Please use GitHub’s reaction feature on the original post if you’re having the same issue.

Comments are closed.