Skip to content
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: Support ESM (maintaining support for CJS) #60

Merged
merged 8 commits into from Feb 2, 2022
Merged

Conversation

ianmcburnie
Copy link
Member

(PLEASE SQUASH)

Fixes #35

This PR updates all module source to ES Module format.

A second distributable is generated that maintains support for older common JS require syntax.

I have tested with a standalone Lasso project, plus eBay Skin and MIND Patterns projects and everything seems to be working correctly. Once approved I will republish all packages.

@ianmcburnie ianmcburnie self-assigned this Feb 1, 2022
@ianmcburnie ianmcburnie changed the title Support ESM (maintaining support for CJS) refactor: Support ESM (maintaining support for CJS) Feb 1, 2022
@ianmcburnie ianmcburnie merged commit 4f54798 into master Feb 2, 2022
//const ExitEmitter = require('../../packages/makeup-exit-emitter');

// IMPORT
import * as ExitEmitter from '../../packages/makeup-exit-emitter';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's fine for now, but the goal is to get to either importing default or importing each module as needed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Will fix!

@ianmcburnie ianmcburnie deleted the 35-esm-3 branch April 18, 2024 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support ES6 Modules
2 participants