Skip to content

1.1.1 no longer has default exports for webpack #7

@PikachuEXE

Description

@PikachuEXE

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions