web-infra-dev / rspack

The fast Rust-based web bundler with webpack-compatible API 🦀️
https://rspack.dev
MIT License
9.84k stars 569 forks source link

not allow use swc target and env configuration toghether #4081

Closed hardfist closed 1 year ago

hardfist commented 1 year ago

we should not allow use jsc.target and env toghether, since they are incompatible and may cause unexpected behavior image

hardfist commented 1 year ago

guidance

you can use emit_diagnostic generate warnings for conflict options for rspack_loader_swc https://github.com/web-infra-dev/rspack/blob/main/crates/rspack_loader_swc/src/lib.rs#L80

Hamzakh777 commented 1 year ago

assign it to me @hardfist

hardfist commented 1 year ago

thanks