Skip to content

Commit 296272a

Browse files
fix(react-sdk): ignore asyncapi-ui.min.js during transpilation to prevent Babel deoptimisation warning
1 parent 0dc9f60 commit 296272a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/react-sdk/src/transpiler/transpiler.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ const ROOT_DIR = Path.resolve(__dirname, '../..');
1616
* @param options any extra options that should be passed.
1717
*/
1818
export async function transpileFiles(directory: string, outputDir: string, options?: TranspileFilesOptions) {
19-
const { files, dirs } = await getStatsInDir(directory);
19+
let { files, dirs } = await getStatsInDir(directory);
20+
files = files.filter(f => !f.endsWith("asyncapi-ui.min.js"));
2021
if (files.length) {
2122
/**
2223
* WHEN ADDING PLUGINS to transform the input keep in mind that

0 commit comments

Comments
 (0)