SimonAlling / better-sweclockers

Better SweClockers
MIT License
11 stars 4 forks source link

Upgrade to Userscripter 3.0.0 #265

Closed SimonAlling closed 1 month ago

SimonAlling commented 1 month ago

Today, an import like

import * as build from "userscripter/build";

void build;

in the run-time code (everything in src/) makes npm run build fail like this:

ERROR in ./src/main.ts
Module build failed (from ./node_modules/restrict-imports-loader/dist/index.js):
Error: "userscripter/build" and its submodules cannot be imported in the source directory ('src'). Please remove these imports:

  • "userscripter/build", imported on line 3:

        import * as build from "userscripter/build";

With Userscripter 3.0.0, it instead fails with an unintelligible wall of text containing, among others, these errors:

That in itself is of course a downgrade, but I want to upgrade Userscripter as new versions are released unless there is a compelling reason not to.