Hacker News new | ask | show | jobs
by crubier 1710 days 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 ). Hot reload times instantly went from 10s to 1s. Twitter discussion here https://twitter.com/vlecrubier/status/1448371633673187329?s=...

Overall I’m pretty bullish on Rust tooling and integration within the JS/ Wasm ecosystem !

1 comments

could you provide a link on how to enable this experimental setting ? thank you.
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
    }