umijs / mako

An extremely fast, production-grade web bundler based on Rust.
https://makojs.dev
MIT License
1.81k stars 67 forks source link

bug: concatenated_transformer unwrap panic case #1474

Open sorrycc opened 2 months ago

sorrycc commented 2 months ago

复现步骤:

1、解压 concatenate.zip 2、pnpm i && pnpm build

报错如下:


> mako build

Mako v0.7.9

Building with mako for development...
thread 'rayon thread 0' panicked at crates/mako/src/plugins/tree_shaking/shake/module_concatenate/concatenated_transformer.rs:113:68:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Rayon: detected unexpected panic; aborting
 ELIFECYCLE  Command failed.
[1]    51241 abort      pnpm run build
···
stormslowly commented 2 months ago

concatenate feature is not compatible with ignore config, disable it in node platform for now; related issue https://github.com/umijs/mako/issues/1300https://github.com/umijs/mako/issues/1300