Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any plans to support es6 import/export? #116

Open
bentaly opened this issue Dec 8, 2021 · 1 comment
Open

Any plans to support es6 import/export? #116

bentaly opened this issue Dec 8, 2021 · 1 comment

Comments

@bentaly
Copy link

bentaly commented Dec 8, 2021

I use this module in an Angular application and have a warning:

Warning: `filename.ts` depends on 'punycode'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

And I import using
import { toASCII } from 'punycode';

Do you have any plans to support es6 modules?

@steffanhalv
Copy link

steffanhalv commented Aug 23, 2022

If the built version of punycode.es6.js can be renamed to punycode.es6.mjs it will be possible to use it in esm projects with regular import, ex. import punycode from 'punycode/punycode.es6.mjs'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants