Skip to content

Commit 6d14fa8

Browse files
authored
fix(build): disable useDefineForClassFields in esbuild (#9252)
1 parent cd3ac99 commit 6d14fa8

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Diff for: rollup.config.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,13 @@ function createConfig(format, output, plugins = []) {
273273
return nodePlugins
274274
}
275275

276+
/** @satisfies {import('esbuild').TsconfigRaw} */
277+
const tsconfigRaw = {
278+
compilerOptions: {
279+
useDefineForClassFields: false
280+
}
281+
}
282+
276283
return {
277284
input: resolve(entryFile),
278285
// Global and Browser ESM builds inlines everything so that they can be
@@ -292,7 +299,9 @@ function createConfig(format, output, plugins = []) {
292299
sourceMap: output.sourcemap,
293300
minify: false,
294301
target: isServerRenderer || isNodeBuild ? 'es2019' : 'es2015',
295-
define: resolveDefine()
302+
define: resolveDefine(),
303+
// @ts-expect-error
304+
tsconfigRaw
296305
}),
297306
...resolveNodePlugins(),
298307
...plugins

0 commit comments

Comments
 (0)