Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow digested files with the same name prefix #143

Closed
jonas-jasas opened this issue Jul 1, 2023 · 0 comments · Fixed by #144
Closed

Allow digested files with the same name prefix #143

jonas-jasas opened this issue Jul 1, 2023 · 0 comments · Fixed by #144

Comments

@jonas-jasas
Copy link

ESBuild splitting feature generates multiple files with the same name and different hash:

esbuild app/typescript/src/*.* --bundle --splitting --chunk-names='chunks/[name]-[hash].digested' --format=esm ...
chunk-KJQZHWRU.digested.js
chunk-KJQZHWRU.digested.js.map
chunk-VBQABUUW.digested.js
chunk-VBQABUUW.digested.js.map
chunk-XON4CK2V.digested.js
chunk-XON4CK2V.digested.js.map

Propshaft will copy only one js and one map file to the public directory. After spending long time I figured out that it is due to the same file prefix. Had to workaround with this:

esbuild app/typescript/src/*.* --bundle --splitting --chunk-names='chunks/[hash]-[hash].digested' --format=esm ...
EANSPK5S-EANSPK5S.digested.js 
EANSPK5S-EANSPK5S.digested.js.map
MZ6DBTZJ-MZ6DBTZJ.digested.js
MZ6DBTZJ-MZ6DBTZJ.digested.js.map
RHSFM4N7-RHSFM4N7.digested.js
RHSFM4N7-RHSFM4N7.digested.js.map

I am unable to think of the reason why there should be this undocumented limitation.

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 a pull request may close this issue.

1 participant