-
Notifications
You must be signed in to change notification settings - Fork 19
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
Native ES6 Module support #3
Comments
We don't plan on removing the ES5/CJS bundle that currently exists. We use this in various sites that are built with webpack or rollup with the relevant CJS loader, so the only real case that needs an ES6-export version is the browser script module loader. We could additionally add an ES6 module that would export the The usage would probably look like: import { sprintf } from './node_modules/printj/printj.mjs' |
OK, thanks.. well, in the meantime if anyone else would like to use |
Included as https://oss.sheetjs.com/printj/tests/mjs.html is a demo (check the source, it's unminified) https://plnkr.co/edit/yTANwhsAoStCw5dQoqwC?p=preview is a live version using unpkg: import { sprintf } from 'https://unpkg.com/[email protected]/printj.mjs';
sprintf("Hello %s", "World!"); |
works great, thanks! 👍 |
Is sheetjs pro version support to ES6(ES2015) for angular 12 development by using node modules |
Any plans to release a native ES6 Module we can use directly in modern browsers?
E.g.
The text was updated successfully, but these errors were encountered: