Skip to content

Commit 1acba65

Browse files
authored
Merge pull request #1465 from OpenGeoscience/update-nise
build: Fix working with the latest nise verison
2 parents 3a987bc + c86a463 commit 1acba65

3 files changed

Lines changed: 28 additions & 30 deletions

File tree

package-lock.json

Lines changed: 20 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
"@babel/plugin-proposal-class-properties": "^7.16.5",
3838
"@babel/preset-env": "^7.16.5",
3939
"@fontsource/lato": "^5.1.1",
40-
"@playwright/test": "^1.52.0",
4140
"@jsdevtools/coverage-istanbul-loader": "^3.0.5",
41+
"@playwright/test": "^1.52.0",
4242
"acorn": "^8.15.0",
4343
"babel-loader": "^10.0.0",
4444
"babel-plugin-istanbul": "^7.0.0",
@@ -70,9 +70,10 @@
7070
"looks-same": "^10.0.1",
7171
"neostandard": "^0.13.0",
7272
"nib": "^1.1.2",
73-
"nise": "<6.1.2 || >=6.1.4",
73+
"nise": "^6.1.3",
7474
"npm-run-all": "^4.1.5",
7575
"pako": "^2.0.4",
76+
"process": "^0.11.10",
7677
"pug": "^3.0.2",
7778
"pug-lint": "^2.6.0",
7879
"pug-load": "^3.0.0",

webpack-test.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
var webpack = require('webpack');
12
var webpack_config = require('./webpack.base.config');
23
var path = require('path');
34
var test_case = process.env.GEOJS_TEST_CASE || 'tests/all.js';
@@ -40,6 +41,10 @@ var config = {
4041
resolve: webpack_config.resolve,
4142
plugins: webpack_config.plugins.slice()
4243
};
44+
// This is needed as of nise 6.1.3
45+
config.plugins.push(new webpack.ProvidePlugin({
46+
process: 'process/browser'
47+
}));
4348

4449
/* If coverage is requested, add istanbul instrumentation */
4550
if (process.env.GEOJS_COVERAGE === 'true') {

0 commit comments

Comments
 (0)