Skip to content

Cannot use latest thread-loader with expose-loader@1.x.x #101

Description

@MhMadHamster
  • Operating System: Windows 10
  • Node Version: 12.13
  • NPM Version: yarn 1.12.3
  • webpack Version: 4.44.2
  • thread-loader Version: 3.0.0

Expected Behavior

No errors.

Actual Behavior

Error: Cannot read property 'hooks' of undefined occures when building project with exposed ts modules.

Code

// index.ts
function foo() {};

export default foo;

How Do We Reproduce?

Repo with example: https://github.com/MhMadHamster/webpack-expose-ts-modules

Initially opened issue in the expose-loader repository: webpack/expose-loader#115

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions