mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-16 15:40:02 -04:00
fix importfn
This commit is contained in:
parent
509b10337a
commit
e873fa7688
1 changed files with 2 additions and 2 deletions
|
@ -191,7 +191,7 @@ enum JsChange {
|
|||
/// insert scramtag
|
||||
SourceTag { span: Span, tagname: String },
|
||||
|
||||
/// replace span with `(${cfg.importfn}("${cfg.base}")`
|
||||
/// replace span with `(${cfg.importfn}("${cfg.base}"))`
|
||||
ImportFn { span: Span },
|
||||
/// replace span with `${cfg.metafn}("${cfg.base}")`
|
||||
MetaFn { span: Span },
|
||||
|
@ -290,7 +290,7 @@ impl JsChange {
|
|||
],
|
||||
},
|
||||
Self::ImportFn { .. } => JsChangeInner::Replace {
|
||||
str: smallvec!["(", cfg.importfn.as_str(), "(\"", cfg.base.as_str(), "\")"],
|
||||
str: smallvec!["(", cfg.importfn.as_str(), "(\"", cfg.base.as_str(), "\"))"],
|
||||
},
|
||||
Self::MetaFn { .. } => JsChangeInner::Replace {
|
||||
str: smallvec![cfg.metafn.as_str(), "(\"", cfg.base.as_str()],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue