-
Notifications
You must be signed in to change notification settings - Fork 571
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
feat(format): new built-in format for es6 module object #1380
Conversation
This pull request is automatically being deployed by Amplify Hosting (learn more). |
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.
Small thing, but not a big deal, looks good to me
Co-authored-by: Joren Broekema <joren.broekema@gmail.com>
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 a commit with changeset and renamed it to javascript/esm for brevity
* feat(format): new built-in format for es6 module object * feat(format): additional es6 module object test and snapshot * style(format): improve readability with additional indentation Co-authored-by: Joren Broekema <joren.broekema@gmail.com> * chore: add changeset and rename to javascript/esm --------- Co-authored-by: Joren Broekema <joren.broekema@gmail.com>
Based on a conversation on Slack to create a PR
This PR adds a new format for generating ES6 module exports for the dictionary object. Also includes a minify flag so you can output just the values.
Usage:
Config (config.js):
Input (color.json):
Output:
Example usage: