Skip to content

jquery 2.2.1 breaks webpack builds when loading individual modules #2945

@bertez

Description

@bertez

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions