diff --git a/src/commands/build.ts b/src/commands/build.ts index 6485f26..e255f9e 100644 --- a/src/commands/build.ts +++ b/src/commands/build.ts @@ -64,7 +64,7 @@ const CommandHandlerPlugin = (buildConfig: Partial, ambientFilePat const options = build.initialOptions const defVersion = () => JSON.stringify(require(p.resolve('package.json')).version); - // for some reason it errored out, should fix it + // should fix a type error options.define = { ...(buildConfig.define ?? {}), __DEV__: `${buildConfig.mode === 'development'}`,