thread-loader icon indicating copy to clipboard operation
thread-loader copied to clipboard

feat: support esm import default

Open ityuany opened this issue 3 years ago • 1 comments

This PR contains a:

  • [ ] bugfix
  • [x] 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

ityuany avatar Jul 26 '22 07:07 ityuany

CLA Signed

The committers listed above are authorized under a signed CLA.

  • :white_check_mark: login: ityuany / name: yuany (8d7bc0f9586dc584567f9957ef68527d3f1acdfd)