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

Esm wrap #156

Merged
merged 2 commits into from
Jun 27, 2022
Merged

Esm wrap #156

merged 2 commits into from
Jun 27, 2022

Conversation

3cp
Copy link
Contributor

@3cp 3cp commented Jun 23, 2022

  • zora now only ships cjs dist. Use esm wrapper to reuse cjs instance in Nodejs environment.
  • esm build file is accessible in native web consumption.
  • removed --module-loader from pta, but kept it in the arg schema to avoid breaking user's existing command line.

As a result, cjs and es test code can now be reported together by zora.

closes #155, #118

@3cp
Copy link
Contributor Author

3cp commented Jun 23, 2022

Furthermore, there is no breaking change. So no major release is required.

Existing pta version will work with next zora version.
But next pta version will NOT work with existing zora version. So in next version, pta's peerDependencies needs to be updated to require at least the next zora version.

Copy link
Owner

@lorenzofox3 lorenzofox3 left a comment

Choose a reason for hiding this comment

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

Thanks, we are almost there I think

3cp added 2 commits June 25, 2022 09:08
--module-loader arg is now ignored, existing command line with that
arg will still work.
@3cp
Copy link
Contributor Author

3cp commented Jun 24, 2022

BTW, suggest to add more supported Nodejs versions to the CI setup.

@lorenzofox3 lorenzofox3 merged commit a59a7ab into lorenzofox3:master Jun 27, 2022
@lorenzofox3
Copy link
Owner

Great thanks

@3cp 3cp deleted the esm-wrap branch June 27, 2022 23:29
@3cp
Copy link
Contributor Author

3cp commented Jun 27, 2022

Any pta release?
Note peerDeps requires zora 5.0.4.

@lorenzofox3
Copy link
Owner

you can't just npm upgrade zora ?

@3cp
Copy link
Contributor Author

3cp commented Jun 28, 2022

Pta has code change that removed module loader.

@lorenzofox3
Copy link
Owner

🤦

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.

Discussion: enable mix of cjs and es test code.
2 participants