Skip to content

Commit

Permalink
fix: add hash to lib chunks and assets
Browse files Browse the repository at this point in the history
  • Loading branch information
pd4d10 committed Mar 6, 2022
1 parent 4194cce commit 90abb04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/build.ts
Expand Up @@ -471,7 +471,7 @@ async function doBuild(
? resolveLibFilename(libOptions, output.format || 'es', config.root)
: path.posix.join(options.assetsDir, `[name].[hash].js`),
chunkFileNames: libOptions
? `[name].js`
? `[name].[hash].js`
: path.posix.join(options.assetsDir, `[name].[hash].js`),
assetFileNames: libOptions
? `[name].[ext]`
Expand Down

0 comments on commit 90abb04

Please sign in to comment.