-
Notifications
You must be signed in to change notification settings - Fork 0
chore: build with tsc instead of babel
#557
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
Conversation
ShGKme
commented
Jun 21, 2025
- For a library there is no need to transpile to an old ES version. It is covered by the application bundler
- With vitest babel also isn't needed to run tests
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
| "target": "esnext", | ||
| "module": "commonjs", | ||
| "declaration": true, | ||
| "moduleResolution": "node", |
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.
Why not directly esnext module?
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.
Because it is a small but breaking change rather than a refactoring
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
6e39465 to
ce0054a
Compare
| "build:doc": "typedoc --excludeNotExported --mode file --out dist/doc lib/index.ts && touch dist/doc/.nojekyll", | ||
| "check-types": "tsc", | ||
| "dev": "babel ./lib --out-dir dist --extensions '.ts,.tsx' --watch", | ||
| "check-types": "tsc --noEmit", |
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.
| "check-types": "tsc --noEmit", | |
| "ts:check": "tsc --noEmit", |