rsnext/test/development/app-dir
Donny/강동윤 94771bf3cc
refactor: Add lightningcss mode for turbopack-css (#58471)
### What?

We are experimenting with `lightningcss`. This is about replacing
`swc_css` with `lightningcss` in turbopack, and the main reason for this
is to reduce the maintenance burden.
But when I tried, it introduced several regressions, so I'm putting it
behind an experimental flag.

You can enable `lightningcss` mode for **turbopack** by adding a flag to
the next config file.

```js
/**
 * @type {import('next').NextConfig}
 */
const nextConfig = {
  experimental: {
    useLightningcss: true,
  },
}

module.exports = nextConfig

```

Note that this is only for turbopack because we were not using `swc_css`
for non-turbopack mode of next.js



x-ref:
https://vercel.slack.com/archives/C03EWR7LGEN/p1700025496732229?thread_ts=1700019629.866549&cid=C03EWR7LGEN


### Why?

We should avoid regressions.

### How?

---

turbopack PR: https://github.com/vercel/turbo/pull/6456


Closes PACK-1966

---------

Co-authored-by: Leah <github.leah@hrmny.sh>
2023-11-20 18:09:36 +01:00
..
app-routes-error Loose types of app routes return value (#55849) 2023-09-25 11:34:21 +02:00
basic add test for turbopack refresh error (#55447) 2023-09-15 17:09:59 +00:00
experimental-lightningcss refactor: Add lightningcss mode for turbopack-css (#58471) 2023-11-20 18:09:36 +01:00
multiple-compiles-single-route Remove experimental config from create-next-app (#49241) 2023-05-05 00:22:28 -07:00
strict-mode-enabled-by-default fix(app): enable React Strict Mode by default (#53375) 2023-08-22 20:17:17 +02:00