Skip to content

Commit 93ccf13

Browse files
committed
feat: add jsx loader (esbuild)
1 parent 8a88ff7 commit 93ccf13

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/build/bundlers/esbuild/esbuild.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@ export default {
1212
minify: true,
1313
target: 'es2022',
1414
platform: 'browser',
15+
loader: {
16+
'.js': 'jsx',
17+
},
1518
outfile: join(outputPath, 'worker.js'),
1619
};

lib/build/dispatcher/dispatcher.js

-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ async function loadBuildContext(preset, entry, mode, useOwnWorker) {
143143

144144
if (useOwnWorker) {
145145
newEntryContent = newEntryContent.replace('__JS_CODE__', entryContent);
146-
console.log(newEntryContent);
147146
}
148147
if (!useOwnWorker) {
149148
const entrypointModified = getExportedFunctionBody(entryContent);

0 commit comments

Comments
 (0)