Skip to content

Commit

Permalink
fix: node ignores (#1716)
Browse files Browse the repository at this point in the history
  • Loading branch information
akitaSummer authored Dec 6, 2024
1 parent 7c508d2 commit 5ee1c16
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/mako/src/features/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ impl Node {
"^(node:)?({})(/.+|$)",
Self::get_all_node_modules().join("|")
));
// If it starts with "node:", they are all built-in node modules.
config.ignores.push("^(node:)(.+)".to_string());
// polifyll __dirname & __filename is supported with MockFilenameAndDirname Visitor
} else {
// polyfill __dirname & __filename for browser
Expand Down

0 comments on commit 5ee1c16

Please sign in to comment.