Skip to content

Commit

Permalink
fix: Make module system more convoluted
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcw committed Mar 7, 2022
1 parent 6aefed4 commit 845ff7a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@
"browser": "dist/togeojson.umd.js",
"jsdelivr": "dist/togeojson.umd.js",
"module": "dist/togeojson.es.js",
"main": "dist/togeojson.js",
"main": "dist/togeojson.cjs",
"type": "module",
"exports": {
"require": "./dist/togeojson.ccjs",
"default": "./dist/togeojson.es.js"
},
"files": [
"dist"
],
Expand Down
16 changes: 8 additions & 8 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,25 @@ export default [
output: {
file: "dist/togeojson.es.js",
format: "es",
sourcemap
}
sourcemap,
},
},
{
input,
output: {
file: "dist/togeojson.js",
file: "dist/togeojson.cjs",
format: "cjs",
sourcemap
}
sourcemap,
},
},
{
input,
output: {
file: "dist/togeojson.umd.js",
format: "umd",
name: "toGeoJSON",
sourcemap
sourcemap,
},
plugins: [terser()]
}
plugins: [terser()],
},
];

0 comments on commit 845ff7a

Please sign in to comment.