You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2019/06/16 18:16:46 UTC
[GitHub] [incubator-echarts] larsgk opened a new issue #10680:
window.addEventListener overridden on ES6 module import of echarts
larsgk opened a new issue #10680: window.addEventListener overridden on ES6 module import of echarts
URL: https://github.com/apache/incubator-echarts/issues/10680
### Version
4.2.1
### Steps to reproduce
Importing echarts as:
import * as echarts from 'echarts/src/echarts';
results in window.AddEventListener to be overridden by faulty version in echarts dep - zrender.
### What is expected?
Don't override window.addEventListener
### What is actually happening?
it's overridden
---
We are using plain vanilla ESM and CommonJS modules mixed, packaged in a rollup script. The import is in an unrelated file which results in the global window.addEventListener to be overridden. This can't be right.
<!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
<!-- This issue is in English. DO NOT REMOVE -->
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org