Unverified Commit f22066ac authored by Jam Balaya's avatar Jam Balaya Committed by GitHub

examples: update `with-babel-macros` README.md (#73410)

## Description

Follow up #73347.
Sync the app router file structure.

CC: @samcx 

### Adding or Updating Examples

- [x] The "examples guidelines" are followed from our contributing doc
https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md
- [x] Make sure the linting passes by running `pnpm build && pnpm lint`.
See
https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.mdCo-authored-by: 's avatarSam Ko <sam@vercel.com>
parent 1c8eda30
...@@ -29,7 +29,7 @@ Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&ut ...@@ -29,7 +29,7 @@ Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&ut
## Note ## Note
You'll notice the configuration in `.babelrc` includes the `babel-macros` You'll notice the configuration in `.babelrc` includes the `babel-macros`
plugin, then we can use the `preval.macro` in `pages/index.js` to pre-evaluate plugin, then we can use the `preval.macro` in `app/page.tsx` to pre-evaluate
code at build-time. `preval.macro` is effectively transforming our code, but code at build-time. `preval.macro` is effectively transforming our code, but
we didn't have to configure it to make that happen! we didn't have to configure it to make that happen!
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment