Buckets:
32.9 GB
31,201 files
Updated 2 months ago
Ctrl+K
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| pages | 1 items | ||
| .babelrc | 88 Bytes xet | c1fa417a | |
| .gitignore | 437 Bytes xet | f8bee8be | |
| README.md | 1.42 kB xet | 18a84b49 | |
| package.json | 298 Bytes xet | 482f644b |
Using a custom Babel config
This example features:
- An app using proposed do expressions.
- It uses babel-preset-stage-0, which allows us to use above JavaScript feature.
- It uses '.babelrc' file in the app directory to add above preset.
Most of the time, when writing a custom
.babelrcfile, you need to addnext/babelas a preset.
Deploy your own
How to use
Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example with-custom-babel-config with-custom-babel-config-app
yarn create next-app --example with-custom-babel-config with-custom-babel-config-app
pnpm create next-app --example with-custom-babel-config with-custom-babel-config-app
Deploy it to the cloud with Vercel (Documentation).
- Total size
- 32.9 GB
- Files
- 31,201
- Last updated
- Sep 26
- Pre-warmed CDN
- US EU US EU