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

Add support for ES2015 module syntax #433

Closed
wants to merge 4 commits into from

Conversation

joseprio
Copy link

@joseprio joseprio commented Jul 20, 2019

This PR contains a:

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

Motivation / Use-Case

Using the CommonJS module syntax prevents Webpack optimization features from running (tree shaking, module concatenation).

Issue #424

Breaking Changes

Default is to use the old syntax, so no

Additional Info

@jsf-clabot
Copy link

jsf-clabot commented Jul 20, 2019

CLA assistant check
All committers have signed the CLA.

@hiroppy
Copy link

hiroppy commented Jul 21, 2019

Please add tests.

@joseprio
Copy link
Author

Please add tests.

@hiroppy I actually wanted to add a test for this, but the current test suite seems broken in master. I checked other PRs, and they weren't including tests in new features. I tested manually and it's doing what it's supposed to do.

Copy link
Member

@alexander-akait alexander-akait left a comment

Choose a reason for hiding this comment

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

Please add tests

@joseprio
Copy link
Author

@evilebottnawi tests added, please review at your convenience :)

@alexander-akait
Copy link
Member

Need do same for style-loader too to avoid incompatibility

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