node-modules / urllib

Request HTTP(s) URLs in a complex world.
MIT License
725 stars 115 forks source link

use --moduleResolution bundler to fix esm import #443

Closed fengmk2 closed 1 year ago

fengmk2 commented 1 year ago

https://github.com/microsoft/TypeScript/pull/51669

https://devblogs.microsoft.com/typescript/announcing-typescript-5-0-beta/#moduleresolution-bundler

no more https://github.com/node-modules/urllib/blob/master/scripts/esm_import_fix.js

fengmk2 commented 1 year ago

node esm module import must include file ext.