From 05c95e04f728c797e0f65446547fe4490895ed7c Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Thu, 25 Jun 2015 23:26:24 +0100 Subject: [PATCH] don't add protect to polyfill --- 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 b0b5f1de99..13662968b4 100644 --- a/tools/build-plugins/protect.js +++ b/tools/build-plugins/protect.js @@ -8,6 +8,7 @@ module.exports = function (babel) { Program: function (node, parent, scope, file) { if (file.opts.filename.indexOf("tools/protect") >= 0) return; if (file.opts.filename.indexOf("templates") >= 0) return; + if (file.opts.filename.indexOf("polyfill") >= 0) return; var from = "/" + path.dirname(file.opts.filename.replace(/^src/, "lib")); var to = "/lib/babel/tools";