From a8e23d2eb98b8f27f713d0a7d078fd3e03fe7fdd Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Thu, 25 Jun 2015 14:33:38 +0100 Subject: [PATCH] ignore templates folder in protect plugin --- tools/build-plugins/protect.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/build-plugins/protect.js b/tools/build-plugins/protect.js index 2dc254aa61..cefd25e1f4 100644 --- a/tools/build-plugins/protect.js +++ b/tools/build-plugins/protect.js @@ -5,6 +5,7 @@ module.exports = function (babel) { visitor: { Program: function (node, parent, scope, file) { if (file.opts.filename.indexOf("tools/protect") >= 0) return; + if (file.opts.filename.indexOf("templates") >= 0) return; this.unshiftContainer("body", [ t.expressionStatement(t.callExpression(file.addImport("babel-core/lib/babel/tools/protect"), [t.identifier("module")]))