Skip to content

Commit 5c3b7f1

Browse files
committed
chore: hide rollup warn
1 parent 8c3ef77 commit 5c3b7f1

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

build.config.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1-
import { defineBuildConfig } from 'unbuild'
1+
import { defineBuildConfig } from "unbuild";
22

33
export default defineBuildConfig({
44
rollup: {
5-
inlineDependencies: true
6-
}
7-
})
5+
inlineDependencies: true,
6+
},
7+
hooks: {
8+
"rollup:options"(_, options) {
9+
for (const output of options.output) {
10+
// @ts-ignore
11+
output.exports = "named";
12+
}
13+
},
14+
},
15+
});

0 commit comments

Comments
 (0)