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

rollup.config.js

Lines changed: 10 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy