Skip to content

Rollup with CommonJS fails due to es.js distribution of Vue Styled Components #110

Description

@danceroutine

When performing a rollup with the commonjs module, the rollup will fail due to custom named exports in dist/vue-styled-components.es.js

Stack Trace:
(plugin commonjs) Error: Custom named exports were specified for C:\Users\pedro\Documents\Work\Storybook\src\components\Form\node_modules\vue-styled-components\dist\vue-styled-components.es.js but it does not appear to be a CommonJS module node_modules\vue-styled-components\dist\vue-styled-components.es.js Error: Custom named exports were specified for C:\Users\pedro\Documents\Work\Storybook\src\components\Form\node_modules\vue-styled-components\dist\vue-styled-components.es.js but it does not appear to be a CommonJS module at transformCommonjs (C:\Users\pedro\Documents\Work\Storybook\src\components\Form\node_modules\@rollup\plugin-commonjs\dist\index.js:753:13) at Object.transformAndCheckExports (C:\Users\pedro\Documents\Work\Storybook\src\components\Form\node_modules\@rollup\plugin-commonjs\dist\index.js:1144:25) at Object.transform (C:\Users\pedro\Documents\Work\Storybook\src\components\Form\node_modules\@rollup\plugin-commonjs\dist\index.js:1309:48) at C:\Users\pedro\AppData\Roaming\npm\node_modules\rollup\dist\shared\node-entry.js:13113:25

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions