Skip to content

feat(cli-service): support contenthash in lib build chunkFilename#7489

Open
yaojiafeng wants to merge 2 commits intovuejs:devfrom
yaojiafeng:fix/lib-chunk-hash-output
Open

feat(cli-service): support contenthash in lib build chunkFilename#7489
yaojiafeng wants to merge 2 commits intovuejs:devfrom
yaojiafeng:fix/lib-chunk-hash-output

Conversation

@yaojiafeng
Copy link
Copy Markdown

@yaojiafeng yaojiafeng commented Feb 6, 2026

Allow users to configure contenthash for chunk files via vue.config.js when building in library mode.

Fixes #7476

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Docs
  • Underlying tools
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

Other information:

@yaojiafeng yaojiafeng force-pushed the fix/lib-chunk-hash-output branch from 6d4221d to 2cfe675 Compare February 6, 2026 04:36
Allow users to configure contenthash for chunk files via vue.config.js when building in library mode.

Fixes vuejs#7476
@yaojiafeng yaojiafeng force-pushed the fix/lib-chunk-hash-output branch from 2cfe675 to 2c132c9 Compare February 6, 2026 04:46
@yaojiafeng
Copy link
Copy Markdown
Author

Hi maintainers,

The ci/circleci: e2e check is failing due to a Node.js version incompatibility in the CI environment, which is unrelated to my changes.

Root Cause

The CI environment is using Node.js 16.13.1, but the test suite is trying to install minimatch@10.1.2 which requires Node 20+:

My Changes

This PR only modifies:

  • packages/@vue/cli-service/lib/commands/build/resolveLibConfig.js
  • packages/@vue/cli-service/__tests__/buildLib.spec.js

Failing Tests Analysis

The failing tests in ci/circleci: e2e are:

  • eslintMigrator.spec.js - ESLint upgrade tests
  • mochaPlugin.spec.js - Mocha plugin tests
  • mochaPluginVue3.spec.js - Mocha Vue3 tests
  • tsMochaPlugin.spec.js - TypeScript Mocha tests

None of these tests are related to my library build changes. They are failing because of dependency installation issues caused by the Node version mismatch, not because of any code issues in my PR.

The test that actually validates my changes (buildLib.spec.js) is tested in the ci/circleci: tests check, which has passed successfully ✅.

Request

Could you please review the other CI results (especially ci/circleci: tests which passed) or consider re-running the ci/circleci: e2e check in an updated environment?

Thank you for your time! 🙏

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vue-cli-service build --target lib 场景不支持文件名hash配置

1 participant