You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating npm packages you have to transpile them without knowing the hosts environment. This can result in major compatibility issues if not done correctly.
Context
When creating npm packages you have to transpile them without knowing the hosts environment. This can result in major compatibility issues if not done correctly.
Setting the following compilerOptions in tsconfig
module: NodeNext,
moduleResolution: NodeNext
Problem
Today we use the
But we should use
Reference
https://www.typescriptlang.org/docs/handbook/modules/theory.html#module-resolution-for-libraries
The text was updated successfully, but these errors were encountered: