Skip to content

Commit c4ce991

Browse files
authored
Ensure apache-arrow is external in rollup config (#118)
1 parent c554ef6 commit c4ce991

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## [0.4.2] - 2024-04-18
44

55
- Allow `Uint32Array` type in `parseTable`.
6+
- Ensure `apache-arrow` is marked as an external library in Rollup
67

78
## [0.4.1] - 2024-01-31
89

rollup.config.js

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import dts from "rollup-plugin-dts";
44

55
const input = "./src/index.ts";
66
const sourcemap = true;
7+
const external = ["apache-arrow"];
78

89
export default [
910
{
@@ -14,6 +15,7 @@ export default [
1415
sourcemap,
1516
},
1617
plugins: [typescript()],
18+
external,
1719
},
1820
{
1921
input,
@@ -22,6 +24,7 @@ export default [
2224
format: "es",
2325
},
2426
plugins: [dts()],
27+
external,
2528
},
2629
{
2730
input,
@@ -31,6 +34,7 @@ export default [
3134
sourcemap,
3235
},
3336
plugins: [typescript()],
37+
external,
3438
},
3539
{
3640
input,
@@ -39,7 +43,11 @@ export default [
3943
format: "umd",
4044
name: "arrowJsFFI",
4145
sourcemap,
46+
globals: {
47+
"apache-arrow": "Arrow",
48+
},
4249
},
4350
plugins: [typescript(), terser()],
51+
external,
4452
},
4553
];

0 commit comments

Comments
 (0)