feat: remove code to base64 for performance issue#1321
feat: remove code to base64 for performance issue#1321hexqi merged 2 commits intoopentiny:developfrom
Conversation
WalkthroughThe changes introduce environment-dependent logic for script injection in the HTML template, altering how the main script is included based on whether the environment is in development or production. In development mode, the script is linked by URL, while in production, the script content is inlined as a module. Additionally, the build plugin was simplified by removing base64 encoding and returning the bundled code directly, and a function parameter was explicitly typed as a string. Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (3)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 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 using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
legacy comments from #1236: |


English | 简体中文
PR
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Background and solution
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information
Summary by CodeRabbit