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 2bb3dd4 commit 01589afCopy full SHA for 01589af
src/rollup/bundle.ts
@@ -33,7 +33,7 @@ export const BUNDLE_FORMATS: ModuleFormat[] = [
33
34
export function genBundleOutput(
35
format: ModuleFormat,
36
- { globalNamespace, min }: RollupBundleOutputConfig,
+ { globalNamespace, min, outputRootDir }: RollupBundleOutputConfig,
37
): OutputOptions[] {
38
// https://rollupjs.org/guide/en/#outputname
39
const name = format === "es" ? undefined : globalNamespace;
@@ -43,7 +43,7 @@ export function genBundleOutput(
43
return minArr.map(
44
(min): OutputOptions => ({
45
format,
46
- file: `dist/bundle/${format}${min ? ".min" : ""}.js`,
+ file: joinPath(outputRootDir, `${format}${min ? ".min" : ""}.js`),
47
name,
48
plugins: min ? [terser()] : undefined,
49
}),
0 commit comments