Skip to content

Chunk names are not respected under --target lib #1251

@doublemarked

Description

@doublemarked

Version

3.0.0-beta.9

Reproduction link

https://github.com/doublemarked/vue-libconf-issues

Steps to reproduce

  1. git clone https://github.com/doublemarked/vue-libconf-issues.git
  2. npm install && npm run build
  3. Observe filenames in dist/ are using chunk ids, not names, despite webpackChunkName settings during import in index.js

What is expected?

Application of webpackChunkName: "name" during import should influence output filenames.

What is actually happening?

Chunks are grouped based on webpackChunkName but filenames use chunk ids (numbers).


Recent PR #1173 made it possible to specify chunk names for app builds, but this configuration is clobbered by the lib build configuration. These settings should also be applied when building with --target lib.

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