Skip to content

Commit

Permalink
fix: fill missing fields
Browse files Browse the repository at this point in the history
  • Loading branch information
orionmiz committed Feb 3, 2024
1 parent 50c55a3 commit 84d428b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ impl VisitMut for PageTransformer {

new_items.push(ModuleItem::ModuleDecl(ModuleDecl::ExportNamed(
NamedExport {
asserts: None,
with: None,
span: DUMMY_SP,
specifiers: vec![ExportSpecifier::Named(
ExportNamedSpecifier {
Expand Down
6 changes: 4 additions & 2 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ use crate::page::{

pub fn superjson_import_decl(superjson_import_name: &str) -> ModuleItem {
ModuleItem::ModuleDecl(ModuleDecl::Import(ImportDecl {
asserts: None,
with: None,
phase: ImportPhase::Evaluation,
span: DUMMY_SP,
type_only: false,
specifiers: vec![ImportSpecifier::Named(ImportNamedSpecifier {
Expand Down Expand Up @@ -61,7 +62,8 @@ pub fn temp_props_item(excluded: ExprOrSpread) -> ModuleItem {

pub fn temp_import_item(imported: ModuleExportName, local: &str, src: &mut Str) -> ModuleItem {
ModuleItem::ModuleDecl(ModuleDecl::Import(ImportDecl {
asserts: None,
with: None,
phase: ImportPhase::Evaluation,
span: DUMMY_SP,
specifiers: vec![ImportSpecifier::Named(ImportNamedSpecifier {
imported: Some(imported),
Expand Down

0 comments on commit 84d428b

Please sign in to comment.