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

[Change Proposal] ES Module import & npm package #4

Open
ragtam opened this issue Jun 12, 2021 · 3 comments
Open

[Change Proposal] ES Module import & npm package #4

ragtam opened this issue Jun 12, 2021 · 3 comments

Comments

@ragtam
Copy link

ragtam commented Jun 12, 2021

Hi!
In order to use your lib it's necessary to import a script with source code using <script> tag. When using bundlers, like rollup, one has to do some workarounds to make it work. I think it would be easier if downloading from NPM and then doing ES Module import was enough to be ready to use your lib.

I would like to work on it. How do you feel about it?

Cheers!

@bcj-dev
Copy link
Owner

bcj-dev commented Jun 22, 2021

Hello!

Sorry for the late response, but I would definitely be interested in that! Let me know what the steps are to turn it into an importable NPM package.

Thanks!

@ragtam
Copy link
Author

ragtam commented Jun 22, 2021

I think:

  1. make ES module out of the butter.js,
  2. add package.json with project configuration
  3. set up bundler of our choice (to prepare dist files, do minification)

I have just forked your repo and should start working on the change soon. Ill reach you out in case I have some questions.

@ThatOneCalculator
Copy link

+1ing this!

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

3 participants