Skip to content

Commit 59444fe

Browse files
authored
Fix package and acceptance jobs after node 18 upgrade (#119)
* Fix package and acceptance jobs after node 18 upgrade
1 parent cfc2df7 commit 59444fe

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

package-lock.json

+11-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -431,15 +431,14 @@
431431
"@babel/preset-env": "^7.20.2",
432432
"@babel/preset-react": "^7.18.6",
433433
"@splunk/react-ui": "^4.17.0",
434-
"@splunk/splunk-utils": "^2.3.4",
435-
"@splunk/visualization-context": "^25.9.0",
436434
"@splunk/visualizations": "^25.9.0",
437435
"@types/vscode-notebook-renderer": "^1.72.0",
438436
"axios": "^0.27.2",
439437
"babel-loader": "^9.1.0",
440438
"extract-zip": "^2.0.1",
441439
"fast-xml-parser": "^4.2.5",
442440
"konva": "^3.4.1",
441+
"querystring-es3": "^0.2.1",
443442
"react": "^16.14.0",
444443
"react-dom": "^16.14.0",
445444
"splunk-sdk": "^1.12.1",
@@ -473,7 +472,7 @@
473472
"lint": "eslint .",
474473
"pretest": "npm run lint",
475474
"test": "mocha",
476-
"compile": "webpack",
475+
"compile": "webpack --mode=production",
477476
"compile-tests": "tsc -p tsconfig-test.json",
478477
"watch": "webpack --watch --mode none"
479478
}

webpack.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ const rendererConfig = {
6262
alias: {
6363
process: 'process/browser',
6464
},
65+
fallback: { 'querystring': require.resolve('querystring-es3') },
6566
},
6667
experiments: {
6768
outputModule: true,
@@ -98,6 +99,12 @@ const rendererConfig = {
9899
exclude: /node_modules/,
99100
use: { loader: 'babel-loader' },
100101
},
102+
{
103+
test: /\.(js|jsx)$/,
104+
exclude: /(node_modules|bower_components)/,
105+
loader: 'babel-loader',
106+
options: { presets: ['@babel/env','@babel/preset-react'] },
107+
}
101108
],
102109
},
103110
};

0 commit comments

Comments
 (0)