Skip to content

Commit e94e5e7

Browse files
authored
fix(es/loader): Exclude .json from default extension list (#9134)
**Related issue:** - Closes #9121
1 parent 178cbdd commit e94e5e7

File tree

1 file changed

+1
-1
lines changed
  • crates/swc_ecma_loader/src/resolvers

1 file changed

+1
-1
lines changed

crates/swc_ecma_loader/src/resolvers/node.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ pub struct NodeModulesResolver {
109109
ignore_node_modules: bool,
110110
}
111111

112-
static EXTENSIONS: &[&str] = &["ts", "tsx", "js", "jsx", "json", "node"];
112+
static EXTENSIONS: &[&str] = &["ts", "tsx", "js", "jsx", "node"];
113113

114114
impl NodeModulesResolver {
115115
/// Create a node modules resolver for the target runtime environment.

0 commit comments

Comments
 (0)