Skip to content

Commit 5506d41

Browse files
authored
fix(): js workers parsing (#443)
* fix(): move logs after the conditions * chore(): fix error sending * fix(): do not use jsx parser * chore(): leave todo
1 parent 117dd7a commit 5506d41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

workers/javascript/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,11 +260,11 @@ export default class JavascriptEventWorker extends EventWorker {
260260
let isAsync = false;
261261

262262
try {
263+
// @todo choose plugins based on source code file extention (related to possible jsx parser usage in future)
263264
const ast = parse(sourceCode, {
264265
sourceType: 'module',
265266
plugins: [
266267
'typescript',
267-
'jsx',
268268
'classProperties',
269269
'decorators',
270270
'optionalChaining',

0 commit comments

Comments
 (0)