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

Fix cjs #899

Merged
merged 3 commits into from
Jan 17, 2022
Merged

Fix cjs #899

merged 3 commits into from
Jan 17, 2022

Conversation

alexander-akait
Copy link
Member

@alexander-akait alexander-akait commented Jan 17, 2022

This PR contains a:

  • bugfix
  • new feature
  • code refactor
  • test update
  • typo fix
  • metadata update

Motivation / Use-Case

fixes #896

Breaking Changes

No

Additional Info

Types was changed too, due we use commonjs now, but our real code in commonjs too, so types should use namespaces

src/loader.js Outdated
@@ -478,5 +486,4 @@ export function pitch(request) {
});
}

// eslint-disable-next-line func-names
export default function () {}
module.exports = { default: function loader() {}, pitch }
Copy link
Member Author

Choose a reason for hiding this comment

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

To keep compatibility, ideally we should refactor it in future

@codecov
Copy link

codecov bot commented Jan 17, 2022

Codecov Report

Merging #899 (c81e6ac) into master (ce2cb04) will increase coverage by 0.30%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #899      +/-   ##
==========================================
+ Coverage   90.92%   91.23%   +0.30%     
==========================================
  Files           5        5              
  Lines         804      821      +17     
  Branches      219      219              
==========================================
+ Hits          731      749      +18     
+ Misses         67       66       -1     
  Partials        6        6              
Impacted Files Coverage Δ
src/index.js 96.25% <100.00%> (+0.07%) ⬆️
src/loader.js 88.95% <100.00%> (+1.00%) ⬆️
src/utils.js 67.07% <100.00%> (+1.25%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ce2cb04...c81e6ac. Read the comment docs.

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.

Breaking change with import via CommonJS in 2.5.0
1 participant