-
Notifications
You must be signed in to change notification settings - Fork 80
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
wip: fix: add context nanoid to avoid confusion in mutiply build in one process #1305
base: master
Are you sure you want to change the base?
Conversation
Walkthrough整体而言,这次变更涉及到在几个文件中引入了对 Changes
Poem
Note Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://coderabbit.ai TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
add context nanoid to avoid confusion in mutiply build in one process
Summary by CodeRabbit
compiler.rs
文件中增加了nanoid::nanoid
的引入,并在Context
和Compiler
结构体中增加了类型为String
的nanoid
字段,初始化为nanoid!(6)
。ast_impl.rs
文件的render_css_chunk
、render_normal_js_chunk
和render_entry_chunk_js_without_full_hash
函数中更新了convert
字段,包含了context.id
在格式化中的应用。str_impl.rs
文件的render_entry_js_chunk
和emit_module_with_mapping
函数中,更新了convert
函数,将context.id
包含在格式化字符串中。optimize_package_imports.rs
文件的build_import_stmts
函数中,修改了与构建导入语句相关的函数的缓存转换逻辑,现在在转换过程中包含了上下文标识符。