-
Notifications
You must be signed in to change notification settings - Fork 3
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
Repair build scripts to output an es5-compatible module #18
Conversation
/npm-debug.log | ||
.nyc_output | ||
coverage | ||
dist |
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.
added dist
and normalized line endings to LF
### Fixed | ||
- Repair build scripts to output an es5-compatible module | ||
|
||
## Version 1.0.0 - 2018-10-09 |
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.
the 1.0.0 release wasn't added to the changelog. I'll clean this up further in a release commit.
const utils = require('./utils'); | ||
const dom = require('./dom'); | ||
const html = require('./html'); | ||
Object.assign(module.exports, utils, dom, html); |
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.
moved here from root directory, to ensure all code passes through babel
"files": [ | ||
"*.md", | ||
"dist" | ||
], |
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.
limit the files published with the package
Description
I did not realize that the original maintainer had updated the repo to use es6 syntax but incorrectly implemented the build scripts. As a result, version 1.0.0 was not es5-compatible and this resulted in errors when used in webpack with uglify.
I've fixed the build scripts and did a bit of other cleanup.
Types of changes
Related Issue
Version 1.0.0 was added to to jsonmltoreact in CondeNast/jsonmltoreact#16. This led to build errors when trying to update in https://github.com/conde-nast-international/voguede-autopilot/pull/3165
Motivation and Context
1.0.0 was an unintentionally breaking change due to syntax incompatibility.
How Has This Been Tested?
I have not added any additional testing to verify that
babel
works as expected. If desired, I could add adist
test that runs the build and then passes the result throughuglify-js
. However, I don't feel that's really necessary.Screenshots (if appropriate):
n/a
Checklist: