message: spack: allow using jsx
diff: @@ -5,7 +5,7 @@ use std::{borrow::Cow, sync::atomic::Ordering};
  use swc_common::{Mark, SyntaxContext, DUMMY_SP};
  use swc_ecma_ast::{ModuleItem, *};
  use swc_ecma_utils::{prepend, undefined, ExprFactory};
  -use swc_ecma_visit::{FoldWith, VisitMut, VisitMutWith};
  +use swc_ecma_visit::{Fold, FoldWith, VisitMut, VisitMutWith};
  impl<L, R> Bundler<'_, L, R>
  where
  @@ -49,7 +49,10 @@ where
  {
  info.helpers.require.store(true, Ordering::SeqCst);
  - let dep = dep.into_owned().fold_with(&mut Unexporter);
  + let dep = dep
  + .into_owned()
  + .fold_with(&mut Unexporter)
  + .fold_with(&mut ImportDropper);
  prepend(
  &mut entry.body,
  @@ -282,3 +285,18 @@ impl VisitMut for RequireReplacer {
  }
  }
  }
  +
  +struct ImportDropper;
  +
  +impl Fold for ImportDropper {
  + fn fold_module_item(&mut self, mut i: ModuleItem) -> ModuleItem {
  + i = i.fold_children_with(self);
  +
  + match i {
  + ModuleItem::ModuleDecl(..) => {
  + ModuleItem::Stmt(Stmt::Empty(EmptyStmt { span: DUMMY_SP }))
  + }
  + ModuleItem::Stmt(_) => i,
  + }
  + }
  +}
  