Skip to content
This repository was archived by the owner on Nov 5, 2019. It is now read-only.

Commit 56b14c4

Browse files
committed
cacheable
1 parent db97dce commit 56b14c4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
*/
55
var path = require("path");
66
module.exports = function(content) {
7+
this.cacheable && this.cacheable();
8+
this.clearDependencies && this.clearDependencies();
79
var loaderSign = this.request.indexOf("!");
810
var rawJs = this.request.substr(loaderSign); // including leading "!"
911
if(this.web)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "script-loader",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"author": "Tobias Koppers @sokra",
55
"description": "script loader module for webpack",
66
"dependencies": {

0 commit comments

Comments
 (0)