https://github.com/aodin/esbuild-demo
esbuild demo
https://github.com/aodin/esbuild-demo
Last synced: 2 months ago
JSON representation
esbuild demo
- Host: GitHub
- URL: https://github.com/aodin/esbuild-demo
- Owner: aodin
- Created: 2022-03-31T18:53:35.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-31T19:00:08.000Z (about 3 years ago)
- Last Synced: 2025-01-21T08:30:04.028Z (4 months ago)
- Language: JavaScript
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
esbuild-demo
====https://esbuild.github.io
### Goals
- [x] Use latest ES features
- [x] Separated into module files
- [x] Bundled for browser
- [x] Compiles to older ES version targets
- [x] Tree shaking
- [x] Minification
- [x] Sourcemap creation
- [ ] Does not import library dependencies - TODO
- [x] Can use in "watch" mode
- [ ] Support Typescript - TODO
- [x] Support JSX / React[ECMAScript versions to browser targets](https://github.com/evanw/esbuild/issues/121#issuecomment-646956379)
> The iife format will automatically be enabled when no output format is specified, bundling is enabled, and platform is set to browser (which it is by default)
```
npx esbuild area.js --bundle --outfile=area.min.js --target=es2018 --global-name=chartsnpx esbuild area.js --bundle --minify --sourcemap --outfile=area.min.js --target=es2018 --global-name=charts
```#### Watch
https://esbuild.github.io/api/#watch