fix(scripts/build): turn off broken inlineConst bundler flag

It inline consts some values (notably the settings module loaded status to always be false) which causes unintended side effects.
This commit is contained in:
PalmDevs 2025-08-13 00:46:50 +07:00
parent d386035342
commit d88962c3b0
No known key found for this signature in database
GPG key ID: 6FAE8F8677ACA8BA

View file

@ -40,7 +40,8 @@ export default async function build(dev = Dev, log = true) {
input: 'src/index.ts',
platform: 'neutral',
optimization: {
inlineConst: true,
// ! BROKEN, DO NOT USE!
// inlineConst: true,
// @ts-expect-error: Option not documented, but added in 1.0.0-beta.30
pifeForModuleWrappers: true,
},