Skip to content

webpack 4 compatibility #33

@lmmarsano

Description

@lmmarsano

With the environment

$ npm ls --depth 0 webpack reshape-loader
/home/luism/project/journal
├── reshape-loader@1.1.0 
└── webpack@4.2.0

webpack -d outputs the error

Module build failed: TypeError: this._compiler.applyPlugins is not a function
    at Object.module.exports (/home/luism/project/journal/node_modules/reshape-loader/lib/index.js:26:18)

Looking at

I gather this may have something to do with method applyPlugins deprecation.
Any plans to support webpack 4?

Steps to Reproduce

git clone https://github.com/reshape/loader.git
cd loader/
npm install -D webpack@latest
npm install
npm test

The first test fails with the same error.

  basic

  Rejected promise returned by test. Reason:

  {
    err: [
      ModuleBuildError {
        dependencies: Array [ … ],
        error: TypeError { … },
        message: `Module build failed: TypeError: this._compiler.applyPlugins is not a function␊
            at Object.module.exports (/home/luism/project/loader/lib/index.js:8:39)`,
        module: NormalModule { … },
        origin: NormalModule { … },
      },
    ],
    outputPath: '/home/luism/project/loader/test/fixtures/basic/bundle.js',
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions