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
Newer versions of '@rollup/plugin-node-resolve' don't export a traditional default module.exports = pluginFunc any more so the pattern of require(pluginId) doesn't work. Instead it has a .default property on its export. It would be nice to be able to support plugins like '@rollup/plugin-node-resolve' without resorting to a custom plugin wrapper. Maybe it could be solved by allowing a function to be passed:
Newer versions of
'@rollup/plugin-node-resolve'
don't export a traditional defaultmodule.exports = pluginFunc
any more so the pattern ofrequire(pluginId)
doesn't work. Instead it has a.default
property on its export. It would be nice to be able to support plugins like'@rollup/plugin-node-resolve'
without resorting to a custom plugin wrapper. Maybe it could be solved by allowing a function to be passed:or by checking for the
.default
property but that might be brittle. Maybe:The text was updated successfully, but these errors were encountered: