Skip to content

Commit 24b985a

Browse files
authored
Merge pull request #1420 from nextcloud-libraries/chore/esm
chore!: remove commonjs entry point
2 parents af703f9 + 3392500 commit 24b985a

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

package.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,13 @@
2121
"exports": {
2222
".": {
2323
"types": "./dist/index.d.ts",
24-
"import": "./dist/index.mjs",
25-
"require": "./dist/index.cjs"
24+
"import": "./dist/index.mjs"
2625
},
2726
"./dav": {
2827
"types": "./dist/dav/index.d.ts",
29-
"import": "./dist/dav.mjs",
30-
"require": "./dist/dav.cjs"
28+
"import": "./dist/dav.mjs"
3129
}
3230
},
33-
"main": "dist/index.cjs",
34-
"module": "dist/index.mjs",
35-
"types": "dist/index.d.ts",
3631
"files": [
3732
"dist"
3833
],

vite.config.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,6 @@ export default createLibConfig({
99
index: 'lib/index.ts',
1010
dav: 'lib/dav/index.ts',
1111
}, {
12-
libraryFormats: ['cjs', 'es'],
13-
14-
nodeExternalsOptions: {
15-
// Force bundle pure ESM module
16-
exclude: ['is-svg'],
17-
},
18-
1912
config: {
2013
plugins: [
2114
// Put the Codecov vite plugin after all other plugins

0 commit comments

Comments
 (0)