Thanks to visit codestin.com
Credit goes to github.com

Skip to content

require( "jquery" ) returns a module object when used with Webpack & jQuery 4.0.0-beta #5416

Closed
@mgol

Description

@mgol

The fact that we started exporting more than a single thing from jQuery - apart from the default export we have $ & jQuery named tokens pointing to the same thing - providing an ESM version of jQuery via the module field in package.json’s exports makes Webpack treat require( "jquery" ) as a way to export the full module instead of just the jQuery object...

Originally posted by @mgol in #5414 (comment)

Issue originally reported by @cocco111 in #5414

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions