Skip to content

Commit e157ef0

Browse files
committed
--forceExit
1 parent 95dd9fe commit e157ef0

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/mono/browser/runtime/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"type": "module",
1111
"types": "dotnet.d.ts",
1212
"scripts": {
13-
"rollup": "rollup -c",
13+
"rollup": "rollup -c --forceExit",
1414
"lint": "eslint --no-color --max-warnings=0 \"./**/*.ts\" \"./*.js\"",
1515
"format": "eslint --fix \"./**/*.ts\" \"./*.js\""
1616
},

src/mono/browser/runtime/rollup.config.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@ import fast_glob from "fast-glob";
1313
import gitCommitInfo from "git-commit-info";
1414
import MagicString from "magic-string";
1515

16-
setTimeout(() => {
17-
// eslint-disable-next-line no-console
18-
console.log("Forcibly exiting process to work around hang in rollup");
19-
process.exit();
20-
}, 35000);
16+
17+
if (process.versions.node.split(".")[0] < 18) {
18+
throw new Error(`NodeJS at '${process.execPath}' has too low version '${process.versions.node}'`);
19+
}
2120

2221
const configuration = process.env.Configuration;
2322
const isDebug = configuration !== "Release";

0 commit comments

Comments
 (0)