rsnext/packages/next-swc
Shu Ding a8e54e79d4
Add missing feature in next-swc (#40550)
`shake_exports` relies on `ecma_transforms_optimization`, otherwise this will be thrown if running tests:

```
error[E0433]: failed to resolve: could not find `optimization` in `transforms`
 --> crates/core/src/shake_exports.rs:7:23
  |
7 |     ecma::transforms::optimization::simplify::dce::{dce, Config as DCEConfig},
  |                       ^^^^^^^^^^^^ could not find `optimization` in `transforms`
```

## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `pnpm lint`
- [ ] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)
2022-09-15 12:58:01 +00:00
..
.cargo build(next-swc): linux glibc compatible issue (#34481) 2022-02-18 16:04:43 +00:00
crates Add missing feature in next-swc (#40550) 2022-09-15 12:58:01 +00:00
native Extract next-swc Rust code into its own package (#31635) 2021-11-21 12:59:56 +01:00
.rustfmt.toml Extract next-swc Rust code into its own package (#31635) 2021-11-21 12:59:56 +01:00
Cargo.lock chore: Update swc (#40520) 2022-09-15 14:22:11 +02:00
Cargo.toml feat(next-swc): Update swc crates (#35395) 2022-03-30 15:13:40 -07:00
package.json v12.3.1-canary.2 2022-09-13 17:50:17 -07:00
rust-toolchain chore: Update swc (#39965) 2022-09-04 12:13:22 +02:00