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
Node 14 supports ESM out of the box and dual package loading, so what I need to do is to add exports field to every package. This is a new way to point to package entry points. While the main file of the module uses CommonJS, I need to use mjs extension for all ESM files. This is important, otherwise Node thinks that the file uses commonjs even in mjs file.
Node 14 supports ESM out of the box and dual package loading, so what I need to do is to add
exports
field to every package. This is a new way to point to package entry points. While the main file of the module uses CommonJS, I need to usemjs
extension for all ESM files. This is important, otherwise Node thinks that the file uses commonjs even inmjs
file.Example for @casl/ability
The same needs to be done for
sift.js
, otherwise the package cannot be loadedThe text was updated successfully, but these errors were encountered: