microsoft / tslib

Runtime library for TypeScript helpers.
BSD Zero Clause License
1.26k stars 130 forks source link

fix: remove generic package export #266

Open tobiasdiez opened 4 months ago

tobiasdiez commented 4 months ago

I got the following error with nuxt:

[DEP0166] DeprecationWarning: Use of deprecated double slash resolving ".//index.json" for module request ".//index.json" matched to "./*" in the "exports" field module resolution of the package at D:\Programming\JabRefOnline\node_modules\.pnpm\node_modules\tslib\package.json

(I think this is windows specific)

This is fixed by removing the generic ./* export field.

jakebailey commented 4 months ago

See https://github.com/microsoft/tslib/pull/135, this was intentionally added

tobiasdiez commented 4 months ago

This talks mostly about older node versions. Should I also delete ./ which is deprecated now for a long time?