From 0d64253de8f3b343072fca3bde74e95fa1c4c543 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Thu, 7 Apr 2022 10:47:30 +0200 Subject: [PATCH] fix(pkg): emit cjs for entry to avoid breaking change --- build.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.config.ts b/build.config.ts index 8b821553..d753dde3 100644 --- a/build.config.ts +++ b/build.config.ts @@ -2,6 +2,9 @@ import { defineBuildConfig } from 'unbuild' export default defineBuildConfig({ declaration: true, + rollup: { + emitCJS: true + }, entries: [ 'src/index', { input: 'src/runtime/', outDir: 'runtime', format: 'esm' },