rspack_plugin_javascript 0.100.0-rc.3

rspack javascript plugin
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use swc_core::{
  common::Mark,
  ecma::{
    ast::Pass,
    transforms::base::hygiene::{Config, hygiene_with_config},
    visit::VisitMut,
  },
};
#[allow(deprecated)]
pub fn hygiene(keep_class_names: bool, top_level_mark: Mark) -> impl 'static + Pass + VisitMut {
  hygiene_with_config(Config {
    keep_class_names,
    top_level_mark,
    ignore_eval: false,
    // FIXME: support user passing preserved_symbols in the future
    // preserved_symbols: Default::default(),
  })
}