Skip to content

Commit 43e0564

Browse files
committed
fix: asyncapi-generator-react-sdk patch
1 parent 45659c2 commit 43e0564

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git a/lib/transpiler/transpiler.js b/lib/transpiler/transpiler.js
2+
index 3c26e5852787f0246065f6206ba0901ee32b16a7..370266a29f2c618ae48c50f4acc7462ac6cc0b4f 100644
3+
--- a/lib/transpiler/transpiler.js
4+
+++ b/lib/transpiler/transpiler.js
5+
@@ -90,7 +90,8 @@ function transpileFiles(directory, outputDir, options) {
6+
dir: outputDir,
7+
exports: "auto",
8+
paths: {
9+
- 'react/jsx-runtime': 'react/cjs/react-jsx-runtime.production.min',
10+
+ // Make sure it finds the correct version of react https://github.com/asyncapi/generator-react-sdk/pull/242
11+
+ 'react/jsx-runtime': require.resolve('react/cjs/react-jsx-runtime.production.min'),
12+
},
13+
sanitizeFileName: false,
14+
})];

0 commit comments

Comments
 (0)