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

feat: support esm import default #148

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ityuany
Copy link

@ityuany ityuany commented Jul 26, 2022

This PR contains a:

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

Motivation / Use-Case

support esm import default

When my code is as follows

import threadLoader from 'thread-loader';
console.log(threadLoader);

The compiled product is

const _threadLoader = /*#__PURE__*/ _interopRequireDefault(require("thread-loader"));
console.log(_threadLoader.default);

requires a default attribute

Breaking Changes

none

Additional Info

none

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jul 26, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: ityuany / name: yuany (8d7bc0f)

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.

None yet

1 participant