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

fix: module system, typescript and rollup settings #519

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

wonkyum-kim
Copy link

This pr includes the settings about module system, typescript and rollup settings.

  • TypeScript compiler generates declaration files.
  • Rollup generates JavaScript files.
  • Support ES and CJS module system

I changed "moduleResolution" in tsconfig.json from "node" to "bundler".
(https://www.typescriptlang.org/docs/handbook/modules/guides/choosing-compiler-options.html#im-using-a-bundler)

In rollup.config.js, I deleted the code that generates the JavaScript that uses UMD.
Instead, I added code to generate JavaScript that uses CJS.
I think ES and CJS are sufficient these days...

If this pr gets merged, I'll try to work on other plugin repositories as well.

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

Successfully merging this pull request may close these issues.

None yet

1 participant