Skip to content

Commit deab4ed

Browse files
committed
fix: add CommonJS format to build outputs
1 parent 65c89a4 commit deab4ed

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

libs/ngx-blocknote/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
},
4646
".": {
4747
"types": "./index.d.ts",
48-
"default": "./fesm2022/dytab-ngx-blocknote.js"
48+
"import": "./fesm2022/dytab-ngx-blocknote.js",
49+
"require": "./fesm2022/dytab-ngx-blocknote.cjs"
4950
}
5051
}
5152
}

libs/ngx-blocknote/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default defineConfig(() => ({
3838
cssFileName: 'themes/styles',
3939
fileName: `fesm2022/dytab-ngx-blocknote`,
4040
name: 'ngx-blocknote',
41-
formats: ['es' as const],
41+
formats: ['cjs' as const, 'es' as const],
4242
},
4343
rollupOptions: {
4444
external: [

0 commit comments

Comments
 (0)