Skip to content

The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten #365

@MichaelFBA

Description

@MichaelFBA

We are using this library and noticed rollup / esbuild is throwing some warnings about the way the library has been exported.
rollup: https://rollupjs.org/troubleshooting/#error-this-is-undefined

../../node_modules/export-from-json/dist/esm/converters.js (12:22) The 'this' keyword is equivalent to 'undefined' at the top level of an ES module, and has been rewritten

Just curious of others are seeing the same warnings? I suspect I could just ignore the warnings in rollup but wanted to see if there was anything that could be done in 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