silverwolf-x/project / examples /with-custom-babel-config
32.9 GB
31,201 files
Updated 2 months ago
Name
Size
pages
.babelrc88 Bytes
xet
.gitignore437 Bytes
xet
README.md1.42 kB
xet
package.json298 Bytes
xet
README.md

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 .babelrc file, you need to add next/babel as a preset.

Deploy your own

Deploy with Vercel

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

Contributors