Skip to content

Commit 11b01f9

Browse files
authored
Merge pull request #409 from stasm/fix-mocha-setup
Fix transpilation rule in mocha setup
2 parents bcc1e46 + 8991935 commit 11b01f9

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

fluent-react/test/.babelrc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
{
22
"presets": [
33
"@babel/preset-react"
4-
],
5-
"plugins": [
6-
["babel-plugin-transform-rename-import", {
7-
"original": "fluent",
8-
"replacement": "fluent/compat"
9-
}]
104
]
115
}

mocha_setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ require("@babel/register")({
55
ignore: [
66
// Ignore node_modules other than own Fluent dependencies.
77
path => /node_modules/.test(path)
8-
&& !/node_modules\/fluent/.test(path)
8+
&& !/node_modules\/@fluent/.test(path)
99
],
1010
plugins: [
1111
"@babel/plugin-proposal-async-generator-functions",

0 commit comments

Comments
 (0)