diff --git a/index.js b/index.js index 86e2de1..d09565b 100644 --- a/index.js +++ b/index.js @@ -36,7 +36,7 @@ module.exports = function (source) { return; } loaded[fileName] = true; - data.imports[index] = readProto(fs.readFileSync(fileName).toString('utf8')); + data.imports[index] = readProto(fs.readFileSync(fileName).toString('utf8'), options, loaded); return; } throw Error('File not found: ' + imp);