Skip to content

Commit

Permalink
Fix package and acceptance jobs after node 18 upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
fantavlik committed Mar 19, 2024
1 parent cfc2df7 commit 71baf57
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/package-acceptance-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
branches:
- main
- master
- fantavlik/fix-package-acceptance

jobs:
package:
Expand Down
13 changes: 11 additions & 2 deletions package-lock.json

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

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -431,15 +431,14 @@
"@babel/preset-env": "^7.20.2",
"@babel/preset-react": "^7.18.6",
"@splunk/react-ui": "^4.17.0",
"@splunk/splunk-utils": "^2.3.4",
"@splunk/visualization-context": "^25.9.0",
"@splunk/visualizations": "^25.9.0",
"@types/vscode-notebook-renderer": "^1.72.0",
"axios": "^0.27.2",
"babel-loader": "^9.1.0",
"extract-zip": "^2.0.1",
"fast-xml-parser": "^4.2.5",
"konva": "^3.4.1",
"querystring-es3": "^0.2.1",
"react": "^16.14.0",
"react-dom": "^16.14.0",
"splunk-sdk": "^1.12.1",
Expand Down Expand Up @@ -473,7 +472,7 @@
"lint": "eslint .",
"pretest": "npm run lint",
"test": "mocha",
"compile": "webpack",
"compile": "webpack --mode=production",
"compile-tests": "tsc -p tsconfig-test.json",
"watch": "webpack --watch --mode none"
}
Expand Down
7 changes: 7 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ const rendererConfig = {
alias: {
process: 'process/browser',
},
fallback: { 'querystring': require.resolve('querystring-es3') },
},
experiments: {
outputModule: true,
Expand Down Expand Up @@ -98,6 +99,12 @@ const rendererConfig = {
exclude: /node_modules/,
use: { loader: 'babel-loader' },
},
{
test: /\.(js|jsx)$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel-loader',
options: { presets: ['@babel/env','@babel/preset-react'] },
}
],
},
};
Expand Down

0 comments on commit 71baf57

Please sign in to comment.