Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions src/react-compiler-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,6 @@ export default async function reactCompilerLoader(this: webpack.LoaderContext<Re
sourceFileName: this.resourcePath,
filename: this.resourcePath,
cloneInputAst: false,
generatorOpts: {
...babelTransFormOpt?.generatorOpts,
// https://github.com/facebook/react/issues/29120
// TODO: remove once React Compiler has provided their workaround
jsescOption: {
minimal: true,
...babelTransFormOpt?.generatorOpts?.jsescOption
}
},
// user configured babel option
...babelTransFormOpt,
// override babel plugins
Expand Down
4 changes: 2 additions & 2 deletions test/__snapshots__/index.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function Comp() {
let t0;
if ($[0] === Symbol.for(\\"react.memo_cache_sentinel\\")) {
t0 = /*#__PURE__*/ _jsx(\\"div\\", {
\\"aria-label\\": \\"我能吞下玻璃而不伤身体\\",
\\"aria-label\\": \\"\\\\u6211\\\\u80FD\\\\u541E\\\\u4E0B\\\\u73BB\\\\u7483\\\\u800C\\\\u4E0D\\\\u4F24\\\\u8EAB\\\\u4F53\\",
children: \\"我能吞下玻璃而不伤身体\\"
});
$[0] = t0;
Expand Down Expand Up @@ -165,7 +165,7 @@ export default function Comp() {
let t0;
if ($[0] === Symbol.for(\\"react.memo_cache_sentinel\\")) {
t0 = /*#__PURE__*/ _jsx(\\"div\\", {
\\"aria-label\\": \\"我能吞下玻璃而不伤身体\\",
\\"aria-label\\": \\"\\\\u6211\\\\u80FD\\\\u541E\\\\u4E0B\\\\u73BB\\\\u7483\\\\u800C\\\\u4E0D\\\\u4F24\\\\u8EAB\\\\u4F53\\",
children: \\"我能吞下玻璃而不伤身体\\"
});
$[0] = t0;
Expand Down