Skip to content

Commit

Permalink
chore: hide rollup warn
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Mar 28, 2023
1 parent 8c3ef77 commit 5c3b7f1
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions build.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
import { defineBuildConfig } from 'unbuild'
import { defineBuildConfig } from "unbuild";

export default defineBuildConfig({
rollup: {
inlineDependencies: true
}
})
inlineDependencies: true,
},
hooks: {
"rollup:options"(_, options) {
for (const output of options.output) {
// @ts-ignore
output.exports = "named";
}
},
},
});

0 comments on commit 5c3b7f1

Please sign in to comment.