-
Notifications
You must be signed in to change notification settings - Fork 17
Closed
Description
I use webpack@4.43.0 and typescript@3.9.6
I am using the following code to import jquery-param
import param from "jquery-param"
However as I updated to 1.1.1
I see this error message for all modules importing jquery-param
:
"export 'default' (imported as 'param') was not found in 'jquery-param'
I can see the UMD code (the conditional part for module.export
) in both versions are slightly different:
1.0.5
:
typeof module === 'object' && typeof module.exports === 'object'
1.1.1
:
typeof exports === 'object' && typeof module !== 'undefined'
package.json
also now contains a module
entry
"module": "esm/jquery-param.es.js"
I am not sure if the usage should be updated or this is an issue of the library
Metadata
Metadata
Assignees
Labels
No labels