We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ui/
1 parent d0321db commit 713aa39Copy full SHA for 713aa39
babel.config.js
@@ -2,6 +2,7 @@ const path = require('path');
2
3
module.exports = function (api) {
4
api.cache(false);
5
+ const slash = `\\${path.sep}`;
6
return {
7
parserOpts: {
8
strictMode: true,
@@ -11,7 +12,10 @@ module.exports = function (api) {
11
12
},
13
overrides: [
14
{
- test: /\/ui\/(?:components|contexts|hooks|layouts|pages)\/.+(?!\.(?:test|stories|container))\.(?:m?[jt]s|[jt]sx)$/u,
15
+ test: new RegExp(
16
+ `^${path.join(__dirname, 'ui')}${slash}(?:components|contexts|hooks|layouts|pages)${slash}.+(?!\\.(?:test|stories|container))\\.(?:m?[jt]s|[jt]sx)$`,
17
+ 'u',
18
+ ),
19
exclude: /\/node_modules\//u,
20
plugins: [['babel-plugin-react-compiler', { target: '17' }]],
21
0 commit comments