echarts-bot[bot] commented on issue #20629:
URL: https://github.com/apache/echarts/issues/20629#issuecomment-2565389462

   @superchangme It seems you are not using English, I've helped translate the 
content automatically. To make your issue understood by more people and get 
helped, we'd like to suggest using English next time. 🤗
   <details><summary><b>TRANSLATED</b></summary><br>
   
   **TITLE**
   
   [Bug] In echarts cdn mode, there is duplicate code after vite packaging
   
   **BODY**
   
   ### Version
   
   5.4.3
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/handbook/en/basics/release-note/v5-upgrade-guide/
   
   ### Steps to Reproduce
   
   The vue3 + vite project uses cdn to introduce echarts.esm.js
   
   ``` vite code
       rollupOptions: {
         external: ["vue",'echarts','echarts/lib/echarts'],
   ```
   
   ### Current Behavior
   
   Use cdn to introduce echarts.esm.js,
   But there will still be echarts content when packaging.
   All are under the lib module. Is there any way to optimize it?
   
![image](https://github.com/user-attachments/assets/dddaa38a-ccd0-46d0-96e5-9b2621869016)
   
   
   ### Expected Behavior
   
   It is expected that echarts lib will not be included in the package
   
   ### Environment
   
   ```markdown
   node 18
    vite 5.4.8
    echarts 5.4.3
   ```
   
   
   ### Any additional comments?
   
   _No response_
   </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to