Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Default export stopped working in Webpack #45

Closed
@Demivan

Description

@Demivan

In version v0.6.2 default exports stopped working in Webpack. Most likely in other tools too.
This does not work now:

// webpack.config.js
module.exports = {
  /* ... */
  plugins: [
    require('unplugin-vue2-script-setup/webpack')({ /* options */ }),
  ]
}

You need to write:

// webpack.config.js
module.exports = {
  /* ... */
  plugins: [
    require('unplugin-vue2-script-setup/webpack').default({ /* options */ }),
  ]
}

It is related to tsup update to version 5.0.0

tsup does not code-split cjs format now. And scripts/postbuild.ts performs an incorrect transformation as output files after build are different.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions