Skip to content

Commit

Permalink
add missing esbuild plugins add missing babel plugin for translation …
Browse files Browse the repository at this point in the history
…extract, add client polyfill globals process true
  • Loading branch information
twelch committed Apr 18, 2024
1 parent 79370fc commit 92f6bcb
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
12 changes: 8 additions & 4 deletions package-lock.json

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

1 change: 1 addition & 0 deletions packages/base-project/babel.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ module.exports = {
keyAsDefaultValueForDerivedKeys: true,
},
],
"@babel/plugin-syntax-import-attributes",
],
overrides: [
{ test: /\.js$/, presets: common },
Expand Down
4 changes: 4 additions & 0 deletions packages/base-project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,13 @@
},
"devDependencies": {
"@babel/cli": "^7.21.0",
"@babel/plugin-syntax-import-attributes": "^7.24.1",
"@craftamap/esbuild-plugin-html": "^0.6.1",
"@seasketch/geoprocessing": "^6.1.2",
"@types/request": "^2.48.8",
"babel-plugin-i18next-extract": "0.9.0",
"esbuild-plugin-inline-image": "^0.0.9",
"esbuild-plugins-node-modules-polyfill": "^1.6.3",
"request": "^2.88.2",
"zx": "^8.0.2"
},
Expand Down
3 changes: 3 additions & 0 deletions packages/geoprocessing/scripts/build/buildClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ const buildResult = await esbuild.build({
modules: {
fs: "empty",
},
globals: {
process: true,
},
}),
htmlPlugin({
files: [
Expand Down

0 comments on commit 92f6bcb

Please sign in to comment.