diff --git a/index.js b/index.js index 9462a4c..a938817 100644 --- a/index.js +++ b/index.js @@ -85,7 +85,7 @@ class CachePugTemplates { fs.readFile(filename, 'utf8', (err, str) => { if (err) return fn(err); try { - const options = { cache: true, filename }; + const options = { cache: true, basedir: this.config.basedir, filename }; if (pug.cache[filename]) return fn(); pug.cache[filename] = pug.compile(str, options); fn(); diff --git a/package.json b/package.json index afc5d56..ed64056 100644 --- a/package.json +++ b/package.json @@ -83,9 +83,6 @@ } }, "main": "index.js", - "os": [ - "!win32" - ], "peerDependencies": { "pug": "*" },