File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 "author" : " Sean Lynch <techniq35@gmail.com>" ,
66 "license" : " MIT" ,
77 "repository" : " techniq/odata-query" ,
8- "main" : " dist/index.js.mjs " ,
9- "module" : " dist/index.js.mjs " ,
8+ "main" : " ./ dist/index.cjs.js " ,
9+ "module" : " ./ dist/index.es.js " ,
1010 "exports" : {
11- "import" : " ./dist/index.js.mjs" ,
12- "types" : " ./dist/index.d.ts"
11+ "types" : " ./dist/index.d.ts" ,
12+ "import" : " ./dist/index.es.js" ,
13+ "require" : " ./dist/index.cjs.js"
1314 },
1415 "types" : " ./dist/index.d.ts" ,
1516 "files" : [
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ export default defineConfig({
55 lib : {
66 entry : 'src/index.ts' ,
77 name : 'odata-query' ,
8- fileName :' index.js' ,
9- formats : [ 'es' ] ,
8+ fileName : ( format ) => ` index.${ format } .js` ,
9+ formats : [ 'es' , 'cjs' ] ,
1010 } ,
1111 outDir : 'dist' ,
1212 }
You can’t perform that action at this time.
0 commit comments