Skip to content

Commit

Permalink
Fix bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Mar 5, 2024
1 parent 75d3576 commit 5f434bb
Show file tree
Hide file tree
Showing 3 changed files with 322 additions and 243 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"apache-arrow": ">=15"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.3",
"@rollup/plugin-typescript": "^11.1.2",
"@types/node": "^20.9.3",
Expand Down
12 changes: 8 additions & 4 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import terser from "@rollup/plugin-terser";
import typescript from "@rollup/plugin-typescript";
import dts from "rollup-plugin-dts";
import { nodeResolve } from "@rollup/plugin-node-resolve";

const input = "./src/index.ts";
const sourcemap = true;
Expand All @@ -14,7 +15,7 @@ export default [
format: "es",
sourcemap,
},
plugins: [typescript()],
plugins: [nodeResolve(), typescript()],
external,
},
{
Expand All @@ -33,18 +34,21 @@ export default [
format: "cjs",
sourcemap,
},
plugins: [typescript()],
plugins: [nodeResolve(), typescript()],
external,
},
{
input,
output: {
file: "dist/geoarrow.umd.js",
format: "umd",
name: "@geoarrow/geoarrow-js",
name: "geoarrow",
sourcemap,
globals: {
"apache-arrow": "arrow",
},
},
plugins: [typescript(), terser()],
plugins: [nodeResolve(), typescript(), terser()],
external,
},
];
Loading

0 comments on commit 5f434bb

Please sign in to comment.