-
Notifications
You must be signed in to change notification settings - Fork 83
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
refactor(dist): update bundled files #189
Conversation
1 similar comment
This needs to be accompanied by a change to our public docs when we release. Can you include the an entry for a breaking change under unreleased for the deprecated |
Why? The docs already only refer 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.
lgtm
Any comment on this?
|
I agree we should be doing this check in our tests. |
Hmm I can't figure out how to set it up with webpack/karma. Might have to be an integration-type test. Added #190 |
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.
Cool, thanks for simplifying
Alright we'll take care of it in another PR then. |
Summary
BREAKING: Drop support for
window.optimizelyClient
, as presaged in the CHANGELOG.webpack
as a devDependency rather than always using latestIn addition to fixing the issue from #187 in this branch, it simplifies the build script.
Test plan
Existing unit tests pass since the "node" API for index.browser.js wasn't changed.
Created a test file called "dist/test.html" and loaded it in a browser (as well as an equivalent one that loads the min.js variant):
Ensured that it logged "object" for the first, and "undefined" for the second:
![screen shot 2018-11-14 at 3 50 30 pm](https://user-images.githubusercontent.com/1256483/48520564-ecdadb00-e825-11e8-8d97-18c8fe27985c.png)
Issues