-
-
Notifications
You must be signed in to change notification settings - Fork 594
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: import-module should use separate plugin driver
- Loading branch information
Showing
9 changed files
with
37 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ | |
mod options; | ||
mod plugins; | ||
pub use options::*; | ||
pub use plugins::buildtime_plugins; | ||
pub(crate) use plugins::*; |
15 changes: 15 additions & 0 deletions
15
crates/rspack_binding_options/src/plugins/buildtime_plugins.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
use rspack_core::{BoxPlugin, ChunkLoading, ChunkLoadingType, PluginExt}; | ||
use rspack_plugin_javascript::JsPlugin; | ||
use rspack_plugin_runtime::{ | ||
CommonJsChunkLoadingPlugin, RuntimePlugin, StartupChunkDependenciesPlugin, | ||
}; | ||
|
||
pub fn buildtime_plugins() -> Vec<BoxPlugin> { | ||
vec![ | ||
RuntimePlugin::default().boxed(), | ||
JsPlugin::default().boxed(), | ||
// StartupChunkDependenciesPlugin::new(ChunkLoading::Enable(ChunkLoadingType::Require), false) | ||
// .boxed(), | ||
// CommonJsChunkLoadingPlugin::new(false).boxed(), | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters