Don't compile node_modules on playground
Lauren Tan committed
Mar 28, 2024 at 10:46 UTC
9d20aa2819d5d0a6e56e49183b7e9b8e9f3dccc7
1 file changed
+13
-9
compiler/apps/playground/babel.config.js
+13
-9
@@ -9,15 +9,19 @@ module.exports = function (api) {
9
api.cache(true);
10
return {
11
presets: ["next/babel"],
12
- plugins: [
13
- [
14
- "babel-plugin-react-forget",
15
- {
16
- gating: null,
17
- compilationMode: "infer",
18
- panicThreshold: "NONE",
19
- },
20
- ],
12
+ overrides: [
13
+ {
14
+ test: /^((?!node_modules).)*$/g,
15
+ plugins: [
16
+ [
17
+ "babel-plugin-react-forget",
18
+ {
19
+ compilationMode: "infer",
20
+ panicThreshold: "NONE",
21
+ },
22
+ ],
23
+ ],
24
+ },
25
],
26
};
27
};