-
Notifications
You must be signed in to change notification settings - Fork 128
feat(pack): LibraryChunkingContext use EdgeWorker to avoid async chunk split #2463
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
Changes from all commits
4d6da28
221c538
8411862
f3d66a2
4852a1f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "config": { | ||
| "entry": [ | ||
| { | ||
| "import": "input/index.ts", | ||
| "name": "main", | ||
| "library": { | ||
| "name": "MyLibrary" | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export const a = "a"; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
|
|
||
| export async function Test() { | ||
| const module = await import('./a'); | ||
| return module; | ||
| } | ||
|
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| (globalThis.TURBOPACK || (globalThis.TURBOPACK = [])).push([ | ||
| typeof document === "object" ? document.currentScript : undefined, | ||
| {"otherChunks":["dynamic_import_input_index_ts_403d7278.js"],"runtimeModuleIds":[12]} | ||
| {"otherChunks":["dynamic_import_very-dynamic_input_index_ts_570ff46a.js"],"runtimeModuleIds":[67]} | ||
| ]); | ||
| // Dummy runtime |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这样的话 dynamic_import_to_require 还需要吗?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好像也可以去掉了,这里会自动处理成 inline 的 import,我更新一下
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
跟 app 一样默认关闭了,看上去不会拆出额外的 chunk 来