add webpackChunkName to dynamic import for better output file names #6

Closed
mainhanu wants to merge 2 commits from main into main
mainhanu commented 2023-04-19 04:23:45 +02:00 (Migrated from github.com)

There are hundreds of languages in codemirror, when a webapp using codemirror is packaged into a bundle, hundreds of js files with unclear names will be generated. Based on webpack's magic comment we can optimize this.

There are hundreds of languages in codemirror, when a webapp using codemirror is packaged into a bundle, hundreds of js files with unclear names will be generated. Based on webpack's [magic comment](https://webpack.js.org/api/module-methods/#magic-comments) we can optimize this.
marijnh commented 2023-04-19 08:26:45 +02:00 (Migrated from github.com)

Sorry, this too tool-specific, and annoying to maintain. Webpack already sees the package name, I do hope it can be configured to derive its file name from that somehow.

Sorry, this too tool-specific, and annoying to maintain. Webpack already sees the package name, I do hope it can be configured to derive its file name from that somehow.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
codemirror/language-data!6
No description provided.