You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/rspack_core/src/options/resolve/mod.rs
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@ pub(super) type ExtensionAlias = Vec<(String, Vec<String>)>;
25
25
pub(super)typeModules = Vec<String>;
26
26
pub(super)typeRoots = Vec<String>;
27
27
pub(super)typeRestrictions = Vec<String>;
28
+
pub(super)typeImportsFields = Vec<Vec<String>>;
28
29
29
30
#[derive(Debug,Clone,Default,Hash,PartialEq,Eq)]
30
31
pubstructResolve{
@@ -73,7 +74,9 @@ pub struct Resolve {
73
74
/// A list of directories where requests of server-relative URLs (starting with '/') are resolved
74
75
pubroots:Option<Roots>,
75
76
/// A list of resolve restrictions to restrict the paths that a request can be resolved on.
76
-
pubrestrictions:Option<Roots>,
77
+
pubrestrictions:Option<Restrictions>,
78
+
/// Field names from the description file (usually package.json) which are used to provide internal request of a package (requests starting with # are considered as internal).
79
+
pubimports_fields:Option<ImportsFields>,
77
80
/// Configure resolve options by the type of module request.
0 commit comments