10000 [BREAKING] Transform module to ESM by RandomByte · Pull Request #306 · SAP/ui5-logger · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[BREAKING] Transform module to ESM #306

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

Merged
merged 12 commits into from 8000
Oct 24, 2022
Merged

[BREAKING] Transform module to ESM #306

merged 12 commits into from
Oct 24, 2022

Conversation

RandomByte
Copy link
Member
@RandomByte RandomByte commented Jul 29, 2022

With the help of https://github.com/azu/commonjs-to-es-module-codemod

npm i -g jscodeshift
find lib -name "*.js" | xargs jscodeshift -t "<absolute path to clone of commonjs-to-es-module-codemod>/transforms/index.js"

See also https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c

Also fix loading of jsdoc-plugin
@matz3 matz3 changed the title [WIP][BREAKING] Transform module to ESM [BREAKING] Transform module to ESM Sep 8, 2022
@matz3 matz3 marked this pull request as ready for review September 8, 2022 15:48
@coveralls
Copy link
coveralls commented Sep 8, 2022

Coverage Status

Coverage increased (+2.3%) to 100.0% when pulling 112cc26 on esm into dc56600 on next.

c8 relies on V8 coverage which isn't as good as nyc.
Empty lines count as covered, which improves coverage percentage
depending on the number of empty lines in a file.
Also it doesn't detect an uncovered else-path when there is only an
if-clause without else.

This requires Node.js v16.17.0, which adds support for multiple loaders
(@istanbuljs/esm-loader-hook + esmock).
@RandomByte
Copy link
Member Author

LGTM

@flovogt flovogt self-requested a review October 21, 2022 06:51
@flovogt flovogt merged commit c79608b into next Oct 24, 2022
@flovogt flovogt deleted the esm branch October 24, 2022 12:13
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.

4 participants
0