Native ES6 Module support #3
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/printj#3
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Any plans to release a native ES6 Module we can use directly in modern browsers?
E.g.
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
sprintf
andvsprintf
functions directly (for consistency with the browser, it would have to be calledprintj.mjs
). This is actually pretty easy since the whole thing is built from smaller scripts anyway.The usage would probably look like:
OK, thanks.. well, in the meantime if anyone else would like to use
printj
in a native ES6 web app, here is a module you can use until printj supports native ES6 modules.Included as
printj.mjs
in the repo and npm bundle.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:
works great, thanks! 👍
Is sheetjs pro version support to ES6(ES2015) for angular 12 development by using node modules