-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Add strict partial bundles #5413
Conversation
- does not depend on function constructors
tasks/stats.js
Outdated
@@ -136,6 +136,8 @@ function getMainBundleInfo() { | |||
'Starting in `v1.39.0`, each plotly.js partial bundle has a corresponding npm package with no dependencies.', | |||
'', | |||
'Starting in `v1.50.0`, the minified version of each partial bundle is also published to npm in a separate "dist min" package.', | |||
'', | |||
'Starting in `v2.0.0`, the strict partial bundle includes everything except the traces that require function constructor.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nicolaskruchten Do we want to add something like "Over time we hope to include more of the remaining trace types here, after which we intend to work on other strict CSP issues such as inline CSS that we may not be able to include in the main bundle."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, SGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexcjohnson
Good call.
Done in c0a3d92.
Does this PR include the lock-down test that fails if function constructors slip into the |
Yes it does. Whatever |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💃
This includes everything (all the trace types) not depending on function constructors in respect to #897.
Unlike other partial bundles,
calendars
would also be included in these bundles.cc: #5395
@plotly/plotly_js