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
Currently building library with default export makes this warning:
Entry module "src/module.ts" is implicitly using "default" export mode, which means for CommonJS output that its default export is assigned to "module.exports". For many tools, such CommonJS output will not be interchangeable with the original ES module. If this is intended, explicitly set "output.exports" to either "auto" or "default", otherwise you might want to consider changing the signature of "src/module.ts" to use named exports only.
Which makes sense to use names exports however there are some packages (like nuxt modules) intentionally need default export.
The text was updated successfully, but these errors were encountered:
Note that the following warning is still shown when using both which I think is fair:
Entry module "src/index.ts" is using named and default exports together. Consumers of your bundle will have to use `chunk["default"]` to access the default export, which may not be what you want. Use `output.exports: "named"` to disable this warning
Currently building library with default export makes this warning:
Which makes sense to use names exports however there are some packages (like nuxt modules) intentionally need default export.
The text was updated successfully, but these errors were encountered: