4 ms·
SWC in NextJS is still in canary with experimental settings, but it took me 3 lines of code yesterday to make it work on a fairly large app ( https://labelflow.
by crubier 5y ago
SWC in NextJS is still in canary with experimental settings, but it took me 3 lines of code yesterday to make it work on a fairly large app ( https://labelflow.ai https://labelflow.ai ). Hot reload times instantly went from 10s to 1s. Twitter discussion here https://twitter.com/vlecrubier/status/1448371633673187329?s=21 https://twitter.com/vlecrubier/status/1448371633673187329?s=...
Overall I’m pretty bullish on Rust tooling and integration within the JS/ Wasm ecosystem !
- alfonsodev 5y agocould you provide a link on how to enable this experimental setting ? thank you.
- presentation 5y agohttps://github.com/swc-project/swc/discussions/2097#discussioncomment-1198394 https://github.com/swc-project/swc/discussions/2097#discussi... - Run yarn add next@canary - Add to your next.config.js: experimental: { swcMinify: true, swcLoader: true }