Skip to content

Commit f4b962a

Browse files
refactor: minimum require webpack version is 3
BREAKING CHANGE: minimum require `nodejs` version is `3`
1 parent 4fa385c commit f4b962a

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

lib/loader.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ var compileExports = require("./compile-exports");
99

1010

1111
module.exports = function(content, map) {
12-
if(this.cacheable) this.cacheable();
1312
var callback = this.async();
1413
var query = loaderUtils.getOptions(this) || {};
1514
var moduleMode = query.modules;

lib/localsLoader.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ var compileExports = require("./compile-exports");
99

1010

1111
module.exports = function(content) {
12-
if(this.cacheable) this.cacheable();
1312
var callback = this.async();
1413
var query = loaderUtils.getOptions(this) || {};
1514
var moduleMode = query.modules;

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
"should": "^11.1.2",
3535
"standard-version": "^4.0.0"
3636
},
37+
"peerDependencies": {
38+
"webpack": "^3.0.0 || ^4.0.0"
39+
},
3740
"scripts": {
3841
"lint": "eslint lib test",
3942
"test": "mocha",

0 commit comments

Comments
 (0)