We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3416c3a commit be54981Copy full SHA for be54981
packages/web-extension/vite.config.ts
@@ -21,9 +21,10 @@ function useSpecialFormat(
21
(config.build?.lib as LibraryOptions)?.entry,
22
);
23
if (shouldUse) {
24
- config.build ??= {};
+ config.build = config.build ?? {};
25
// @ts-expect-error: lib needs to be an object, forcing it.
26
- config.build.lib ||= {};
+ config.build.lib =
27
+ typeof config.build.lib == 'object' ? config.build.lib : {};
28
// @ts-expect-error: lib is an object
29
config.build.lib.formats = [format];
30
}
0 commit comments