File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 "license" : " MIT" ,
77 "repository" : " techniq/odata-query" ,
88 "main" : " ./dist/index.cjs.js" ,
9- "module" : " ./dist/index.es.js " ,
9+ "module" : " ./dist/index.js.mjs " ,
1010 "exports" : {
1111 "types" : " ./dist/index.d.ts" ,
12- "import" : " ./dist/index.es.js " ,
12+ "import" : " ./dist/index.js.mjs " ,
1313 "require" : " ./dist/index.cjs.js"
1414 },
1515 "types" : " ./dist/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -5,9 +5,14 @@ export default defineConfig({
55 lib : {
66 entry : 'src/index.ts' ,
77 name : 'odata-query' ,
8- fileName : ( format ) => `index.${ format } .js` ,
98 formats : [ 'es' , 'cjs' ] ,
109 } ,
1110 outDir : 'dist' ,
11+ rollupOptions : {
12+ output : [
13+ { format : 'es' , entryFileNames : 'index.js.mjs' } ,
14+ { format : 'cjs' , entryFileNames : 'index.cjs.js' }
15+ ]
16+ }
1217 }
1318} ) ;
You can’t perform that action at this time.
0 commit comments