Skip to content

Commit

Permalink
Merge pull request #60 from camptocamp/fix-node-bundle-dep
Browse files Browse the repository at this point in the history
Node bundle: make `node-fetch` an external dependency
  • Loading branch information
jahow authored Jul 23, 2024
2 parents 52f33cd + 0280538 commit a9abcef
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 20 deletions.
22 changes: 5 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
],
"type": "module",
"dependencies": {
"@rgrove/parse-xml": "^4.1.0"
"@rgrove/parse-xml": "^4.1.0",
"node-fetch": "^3.3.1"
},
"devDependencies": {
"@types/geojson": "^7946.0.10",
Expand All @@ -31,7 +32,6 @@
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"mitt": "^3.0.0",
"node-fetch": "^3.3.1",
"ol": "^8.2.0",
"prettier": "2.8.8",
"proj4": "^2.10.0",
Expand Down
2 changes: 1 addition & 1 deletion vite.node-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default defineConfig({
build: {
ssr: true,
rollupOptions: {
external: [/^ol/, 'proj4'],
external: [/^ol/, 'proj4', 'node-fetch'],
input: 'src-node/index.ts',
output: {
entryFileNames: 'dist-node.js',
Expand Down

0 comments on commit a9abcef

Please sign in to comment.