build: drop @types/webpack-env in favor of webpack/module types (#47798)
* build: drop @types/webpack-env in favor of webpack/module types * chore: improve type when assigning to global.require
This commit is contained in:
parent
51add3e847
commit
a201d6c541
10 changed files with 24 additions and 25 deletions
|
@ -36,7 +36,7 @@ parentPort.on('removeListener', (name: string) => {
|
|||
});
|
||||
|
||||
// Finally load entry script.
|
||||
const { runEntryPointWithESMLoader } = __non_webpack_require__('internal/modules/run_main');
|
||||
const { runEntryPointWithESMLoader } = __non_webpack_require__('internal/modules/run_main') as typeof import('@node/lib/internal/modules/run_main');
|
||||
const mainEntry = pathToFileURL(entryScript);
|
||||
|
||||
runEntryPointWithESMLoader(async (cascadedLoader: any) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue