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
{{ message }}
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.
In Rollup recently an important change was made to solve issues with named export and default exports.
See rollup/rollup#4182
The most important change is that default exports are now always rendered as
export {binding as default};
instead of
export default binding;
If you use siroc (which uses Rollup) to build your nuxt plugin, you will get the following export in your plugin:
export { myplugin as default };
This is fine and correct.
Unfortunatly the defaultExportPlugin() nuxt vite scrables these files:
/src/plugins/default-export.ts
The plugin only searches for
export default
and will add anotherexport default () => {}
at the end resulting inDuplicate export 'default'
error.The defaultExportPlugin() export plugin should also search for default exports in a different notation like that:
The search string is not very prone to false positives but it shows the issue.
The text was updated successfully, but these errors were encountered: