-
-
Notifications
You must be signed in to change notification settings - Fork 209
Closed
Milestone
Description
Details
webpack >= v5.0.0 removes exec from the Loader Context (API), which is currently optionally needed for the postcss-js parser
Move the required logic into postcss-loader directly (🏷 patch) or remove the exec option (options.exec) (:label: major) entirely
utils/exec.js
const Module = require('module')
module.exports = {
exec (code, filename) {
const module = new Module(filename, this)
module.paths = Module._nodeModulePaths(this.context)
module.filename = filename
module._compile(code, filename)
return module.exports
}
}Error (Logs|Stacks)
- None
Reproduction [Code]
- None
Environment
- Not needed