Comments (7)
I'm waiting for a change on swc side so that I could adopt swc, then the target will easier to control
from bunchee.
@shuding This was intended to make sure all the output are compatible with es5, mostly for browser compatibility. Override it inside the bundler to let user configure less.
Very good callout, I was also wondering should we use mordern syntaxes for node.js project. What's your case here that you'd like to use other target
besides ES5?
from bunchee.
I think ES5 can be a good default, but shouldn't override user's intention in tsconfig. For example I want to try ESNext to drop IE support.
from bunchee.
TIL from styfle that we can use node version to specific ecmascript version with babel
node10 => es2018
node12 => es2019
node14 => es2020
I'll think of that later, maybe to provide a CLI option instead consuming from tsconfig to make the behavior consistent between js and ts inputs
from bunchee.
Wow that’s interesting… but eventually I believe Bunchee needs its own config file. 😄
from bunchee.
Short term, consider esbuild as an alternative for testing?
Since IE is deprecated in 2022 soon, we might want to support es6 output
from bunchee.
IE is now officially out of support, so it's time to change the target version.
vercel/swr#2095
from bunchee.
Related Issues (20)
- Feature: auto clean dist folder before build
- Client component files have `.js` extensions instead of `.cjs`/`.mjs` HOT 1
- Feature: output tsconfig.json like prepare does for build HOT 2
- Feature: Don't exit command in watch mode even if the code throw an error. HOT 1
- using cwd to build entire package with auto mode but failed with entry file
- handle the `@scope/pkg` in logging
- Replace publint
- bunchee --prepare adds invalid Object to `main` and `module` HOT 1
- src/index.ts(1,15): error TS2459: Module '"a/server"' declares 'FileRouter' locally, but it is not exported. HOT 1
- bug: `bunchee -w` kills process HOT 2
- build error on ts monorepo HOT 2
- Add test for watch mode
- Create test suite, separate tests into each folder
- Generate realtive paths for types when they refer to each other
- Auto inject env for develeopment/production export condition
- warn if type: module but uses require condition with js extension
- Should `bunchee --prepare` ignore test file? HOT 1
- Logging is off format
- Build waku error HOT 2
- `development` / `production` export condition not working inside another condition HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bunchee.