Skip to content

Commit

Permalink
fix(babel-make-styles): update regex for rules (microsoft#18816)
Browse files Browse the repository at this point in the history
  • Loading branch information
layershifter authored and PeterDraex committed Aug 6, 2021
1 parent 43b340d commit 95c8599
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "fix: update regex for rules",
"packageName": "@fluentui/babel-make-styles",
"email": "olfedias@microsoft.com",
"dependentChangeType": "patch"
}
4 changes: 3 additions & 1 deletion packages/babel-make-styles/src/utils/evaluatePathsInVM.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ function evaluate(code: string, filename: string, babelOptions: TransformOptions
evaluate: true,

rules: [
/* TODO: rules should be configurable */

{ action: shakerEvaluator },
{
test: /\/node_modules\//,
test: /[/\\]node_modules[/\\]/,
action: 'ignore',
},
],
Expand Down

0 comments on commit 95c8599

Please sign in to comment.