ignore templates folder in protect plugin
This commit is contained in:
parent
95d830fde0
commit
a8e23d2eb9
@ -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")]))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user