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

Build dist output using rollup or tsup #188

Closed
neilcampbell opened this issue Dec 19, 2023 · 0 comments · Fixed by #225
Closed

Build dist output using rollup or tsup #188

neilcampbell opened this issue Dec 19, 2023 · 0 comments · Fixed by #225
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@neilcampbell
Copy link
Contributor

neilcampbell commented Dec 19, 2023

We've needed to put a few workarounds in place to produce a cjs and mjs compatible package. These workarounds could be simplified by using a bundler like rollup or tsup.

Workarounds

  • Using tsc-alias to rewrite the esm imports to use full paths
  • Shimming __dirname usage inline

Additionally we'd (potentially) like to produce a CDN host-able web bundle.

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

Successfully merging a pull request may close this issue.

2 participants