-
Notifications
You must be signed in to change notification settings - Fork 19.7k
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
Relax tslib requirement specifier #20485
Conversation
Thanks for your contribution! |
The changes brought by this PR can be previewed at: https://echarts.apache.org/examples/editor?version=PR-20485@c939973 |
Congratulations! Your PR has been merged. Thanks for your contribution! 👍 |
Curious about why tslib 2.3.0 doesn't work. I can not reproduce it with [email protected]. What I've done is: npm i -D [email protected]
npm i echarts
touch index.html <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script src="./node_modules/echarts/dist/echarts.js"></script>
</head>
<body>
<p>good</p>
<div id="main" style="height: 500px; "></div>
<script>
var chart = echarts.init(document.getElementById('main'));
chart.setOption({
angleAxis: {
type: 'category',
data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
},
tooltip: {},
radiusAxis: {},
polar: { center: ['40%', '50%'] },
series: [{
type: 'bar',
data: [1, 2, '-', 3, 0, 5, 7],
coordinateSystem: 'polar'
}]
});
chart.on('click', function (params) {
console.log(params);
});
</script>
</body>
</html> npx vite And the chart displayed normally. Does this modification lead to breaking change? |
Some memos:
|
Brief Information
This pull request is in the type of:
What does this PR do?
Relax dependency specifier of tslib
Fixed issues
Details
Before: What was the problem?
I was testing my library with vite v6.beta, and found that [email protected] did not work; later version of tslib did work.
After: How does it behave after the fixing?
echarts now allows users to pick their own version of tslib - so a. it now works with vite v6 and b. users aren't unecessarily shipping two copies of tslib
Document Info
One of the following should be checked.
Misc
ZRender Changes
Related test cases or examples to use the new APIs
N.A.
Others
Merging options
Other information