Skip to content

Conversation

@edmorley
Copy link

This PR contains a:

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

Motivation / Use-Case

Since it can allow webpack's module concatenation and tree shaking to work more effectively, and having esModule disabled by default means more boilerplate and having to know that the feature exists.

Breaking Changes

None, since webpack 4 supports ES Modules syntax out of the box (and doesn't output ESM itself), and this plugin only supports webpack 4 and newer.

Additional Info

Fixes #485.

@codecov
Copy link

codecov bot commented Dec 28, 2019

Codecov Report

Merging #486 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #486   +/-   ##
=======================================
  Coverage   88.49%   88.49%           
=======================================
  Files           5        5           
  Lines         426      426           
  Branches       94       94           
=======================================
  Hits          377      377           
  Misses         47       47           
  Partials        2        2           
Impacted Files Coverage Δ
src/loader.js 89.24% <100.00%> (ø)

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 1ffc393...d206cd0. Read the comment docs.

Since it can allow webpack's module concatenation and tree shaking to
work more effectively. webpack 4 supports ES Modules syntax out of the
box (and doesn't output ESM itself), so this is not a breaking change.

Fixes #485.
@edmorley
Copy link
Author

@evilebottnawi Hi :-) I don't suppose you have a moment to review this?

@sokra
Copy link
Member

sokra commented May 18, 2020

Afaik this also has a functional difference when consuming modules with require and therefore must be a breaking change.

@alexander-akait
Copy link
Member

Done #602, release will be today

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.

Enable esModule by default

3 participants