diff --git a/index.js b/index.js index 6ec4dbd..e32afaf 100644 --- a/index.js +++ b/index.js @@ -6,7 +6,8 @@ module.exports = function (source) { this.cacheable && this.cacheable(); var template = ejs.compile(source, { client: true, - filename: '.' + filename: '.', + webpack: this }); var ast = uglify.parser.parse(template.toString()); diff --git a/package.json b/package.json index 80d4079..67da5b6 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/bazilio91/ejs-compiled-loader.git" + "url": "https://github.com/bazilio91/ejs-compiled-loader.git#ba8ef7f" }, "keywords": [ "ejs", @@ -23,7 +23,7 @@ }, "homepage": "https://github.com/bazilio91/ejs-compiled-loader", "dependencies": { - "ejs": "^1.0.0", + "ejs": "git+https://github.com/nemanjan00/ejs.git", "uglify-js": "~1.3.4" } }