We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a8a3ab commit 5ea70b3Copy full SHA for 5ea70b3
packages/vite/src/node/build.ts
@@ -466,10 +466,10 @@ async function doBuild(
466
? `[name].${jsExt}`
467
: libOptions
468
? resolveLibFilename(libOptions, format, config.root, jsExt)
469
- : path.posix.join(options.assetsDir, `[name].[hash].js`),
+ : path.posix.join(options.assetsDir, `[name].[hash].${jsExt}`),
470
chunkFileNames: libOptions
471
? `[name].[hash].${jsExt}`
472
473
assetFileNames: libOptions
474
? `[name].[ext]`
475
: path.posix.join(options.assetsDir, `[name].[hash].[ext]`),
0 commit comments