-
-
Notifications
You must be signed in to change notification settings - Fork 124
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
refactor: move from ncc to tsup for create-waku #974
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
packages/create-waku/package.json
Outdated
"compile": "rm -rf template dist *.tsbuildinfo && pnpm run template && pnpm run build", | ||
"template": "cp -r ../../examples template && rm -rf template/*/dist && rm -rf template/*/node_modules && (for d in template/*; do mv $d/.gitignore $d/gitignore || true; done)", | ||
"build": "ncc build ./src/index.ts -o ./dist/ --minify --no-cache --no-source-map-register" | ||
"build": "tsup ./src/index.ts --minify --format esm" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use tsup.config.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure! changed 👍
Ahh, I should have asked before merging. Do we still need this hack? waku/packages/create-waku/src/index.ts Lines 165 to 167 in cd48920
|
follow up to this: #974 (comment) --------- Co-authored-by: Tyler <tyler@secondspectrum.com> Co-authored-by: daishi <daishi@axlight.com>
It looks like a bundler is needed for helping to minify the published code and transpile from typescript.
I've had a good personal experience with tsup and I saw @himself65 mention it, so figured I'd make this PR to help :)
Closes #973