-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[docs] fix CDN usage & bundle externals #3276
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,11 +16,14 @@ module.exports = externalize({ | |
"jquery": "$", | ||
"moment": "moment", | ||
"moment-timezone": "moment", | ||
"popper.js": "Popper", | ||
"react": "React", | ||
"react-transition-group": "ReactTransitionGroup", | ||
"react-day-picker": "DayPicker", | ||
"react-dom": "ReactDOM", | ||
"tslib": "tslib", | ||
"react-popper": "ReactPopper", | ||
"react-transition-group": "ReactTransitionGroup", | ||
"resize-observer-polyfill": "ResizeObserver", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this feels a little silly to require as an external... but I guess it's consistent with dom4 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yah i could easily be convinced to remove this line and bundle this one lib, but might as well be consistent |
||
"tslib": "window", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i think this is the line that actually fixes #3262 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. how does this work? I see very little documentation about this "window" option There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i had to dig through the tslib code to figure out what global it exposes. turns out it adds methods directly to |
||
}); | ||
|
||
/** | ||
|
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.
remove this, while you're at it?