You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix `babel-swc-loader` compatibility for loose class fields, private methods, and destructuring by adding the complementary SWC transforms SWC expects to run alongside them.
Copy file name to clipboardExpand all lines: packages/repack/src/loaders/babelSwcLoader/__tests__/__snapshots__/swc.test.ts.snap
-12Lines changed: 0 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -19,18 +19,6 @@ exports[`swc transforms support detection getSupportedSwcConfigurableTransforms
19
19
}
20
20
`;
21
21
22
-
exports[`swc transforms support detection getSupportedSwcConfigurableTransforms updates both privateFieldsAsProperties and setPublicClassFields for private-property-in-object but does not override explicit true (snapshot): private-property-in-object assumptions and names 1`] =`
23
-
{
24
-
"assumptions": {
25
-
"privateFieldsAsProperties": true,
26
-
"setPublicClassFields": true,
27
-
},
28
-
"transformNames": [
29
-
"transform-private-property-in-object",
30
-
],
31
-
}
32
-
`;
33
-
34
22
exports[`swc transforms support detection getSupportedSwcCustomTransforms configures modules commonjs options based on provided config (snapshot): modules commonjs config 1`] =`
it('updates both privateFieldsAsProperties and setPublicClassFields for private-property-in-object but does not override explicit true (snapshot)',()=>{
159
+
it('updates both privateFieldsAsProperties and setPublicClassFields for private-property-in-object but does not override explicit true',()=>{
0 commit comments