Skip to content

Commit

Permalink
fix: playground panic (#263)
Browse files Browse the repository at this point in the history
* fix: playground panic

* chore: lint
  • Loading branch information
houyunlu committed Nov 14, 2023
1 parent bcc3de9 commit f97bea0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/rolldown_binding_wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::path::Path;

use wasm_bindgen::prelude::*;

use rolldown::{Bundler, InputItem, InputOptions, OutputOptions};
use rolldown::{Bundler, External, InputItem, InputOptions, OutputOptions};
#[wasm_bindgen]
pub struct FileItem {
path: String,
Expand Down Expand Up @@ -61,7 +61,7 @@ pub fn bundle(file_list: Vec<FileItem>) -> Vec<AssetItem> {
})
.collect::<Vec<_>>();
let mut bundler = Bundler::with_plugins_and_fs(
InputOptions { input, cwd: "/".into(), ..Default::default() },
InputOptions { input, cwd: "/".into(), external: External::ArrayString(vec![]) },
vec![],
memory_fs,
);
Expand Down
2 changes: 1 addition & 1 deletion web/wasm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
"sideEffects": [
"./snippets/*"
]
}
}

0 comments on commit f97bea0

Please sign in to comment.