rsnext/packages/next-swc/crates
Will Binns-Smith e4f92b7206 Automatic downleveling to browser targets using swc_preset_env (vercel/turbo#380)
Closes vercel/turbo#440

This uses swc's preset_env to automatically downlevel code according to the environment's browser targets, and sets next-dev to use a limited, modern target.

To do:
* [x] Add snapshot test
* [x] turbotrace test failures — looks like this has something to do with the Buffer module? Hitting swc's "multiple constructors" not implemented: f655488cfa/crates/swc_ecma_transforms_compat/src/es2015/classes/mod.rs (L545)
* [x] ~Benchmark downleveling node_modules (probably on front) and make a decision re: downleveling everything vs. just workspaces~ Filed as vercel/turbo#457
2022-10-07 06:54:21 +00:00
..
next-core Automatic downleveling to browser targets using swc_preset_env (vercel/turbo#380) 2022-10-07 06:54:21 +00:00
next-dev Automatic downleveling to browser targets using swc_preset_env (vercel/turbo#380) 2022-10-07 06:54:21 +00:00