You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You should perform this operation in the closure passed to set of swc_common::errors::HANDLER', /Users/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/better_scoped_tls-0.1.0/src/lib.rs:67:13
#7451
pub fn minify_js(ast: &Module, cm: &Lrc<SourceMap>) -> Module {
let ast = ast.clone();
let cm = cm.clone();
let globals = Globals::default();
GLOBALS.set(&globals, || {
let unresolved_mark = Mark::new();
let top_level_mark = Mark::new();
optimize(
ast.into(),
cm,
None,
None,
&MinifyOptions {
compress: Some(Default::default()),
mangle: Some(Default::default()),
..Default::default()
},
&ExtraOptions {
unresolved_mark,
top_level_mark,
},
)
.expect_module()
})
}
panic:
thread 'main' panicked at 'You should perform this operation in the closure passed to `set` of swc_common::errors::HANDLER', /Users/jess/.cargo/registry/src/github.com-1ecc6299db9ec823/better_scoped_tls-0.1.0/src/lib.rs:67:13
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When i use swc_ecma_minifier in my project like:
panic:
Beta Was this translation helpful? Give feedback.
All reactions