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
Older built-in Node modules such as fs now can be imported via either their name or node: + their name:
importfsfrom"fs";importfsfrom"node:fs";
The prefixed versions are nice because they can't be overridden by user modules and are similarly formatted to to prefix-only modules such as node:test.
Suggestion: let's add a linter rule to enforce using them, with an auto-fixer?
ryota-ka, alldayalone, tajnymag, hugo-vrijswijk, tom-fletcher and 5 more