swc-project/swc · error
module string names unimplemented
Error message
module string names unimplemented
What it means
Error "module string names unimplemented" thrown in swc-project/swc.
Source
Thrown at crates/swc_bundler/src/bundler/chunk/computed_key.rs:74
// Handle `export *`-s from dependency modules.
//
// See: https://github.com/denoland/deno/issues/9200
ModuleItem::ModuleDecl(ModuleDecl::ExportNamed(NamedExport {
ref specifiers,
with: Some(with),
..
})) if is_injected(with) => {
for s in specifiers {
if let ExportSpecifier::Named(ExportNamedSpecifier {
orig,
exported: Some(exported),
..
}) = s
{
let exported = match exported {
ModuleExportName::Ident(ident) => ident,
ModuleExportName::Str(..) => {
unimplemented!("module string names unimplemented")
}
#[cfg(swc_ast_unknown)]
_ => panic!("unable to access unknown nodes"),
};
if ctx.transitive_remap.get(&exported.ctxt).is_some() {
let specifier = ExportSpecifier::Named(ExportNamedSpecifier {
span: DUMMY_SP,
orig: orig.clone(),
exported: Some(ModuleExportName::Ident(exported.clone())),
is_type_only: false,
});
additional_items.push((
module_id,
NamedExport {
span: DUMMY_SP,
specifiers: vec![specifier],
src: None,
type_only: false,View on GitHub (pinned to d7d7434666)
When it happens
Trigger: Thrown at crates/swc_bundler/src/bundler/chunk/computed_key.rs:74 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of swc-project/swc@d7d7434666 (2026-08-16).
Data as JSON: /api/errors/01ad3e9d83f3b70b.
Report an issue: GitHub.