From 8c4fa07dd529c3c89df6f7b686b333d939401c54 Mon Sep 17 00:00:00 2001 From: Bart Butler Date: Wed, 21 Feb 2018 20:02:50 -0800 Subject: [PATCH] babelify asmcrypto.js --- Gruntfile.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Gruntfile.js b/Gruntfile.js index 091ef0a6..ca6abf05 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -52,6 +52,8 @@ module.exports = function(grunt) { external: ['crypto', 'zlib', 'node-localstorage', 'node-fetch', 'asn1.js', 'jwk-to-pem'], transform: [ ["babelify", { + global: true, + only: /^(?:.*\/node_modules\/asmcrypto\.js\/|(?!.*\/node_modules\/)).*$/, // Only babelify asmcrypto in node_modules plugins: ["transform-async-to-generator", "syntax-async-functions", "transform-regenerator", @@ -76,6 +78,8 @@ module.exports = function(grunt) { external: ['crypto', 'zlib', 'node-localstorage', 'node-fetch', 'asn1.js', 'jwk-to-pem'], transform: [ ["babelify", { + global: true, + only: /^(?:.*\/node_modules\/asmcrypto\.js\/|(?!.*\/node_modules\/)).*$/, // Only babelify asmcrypto in node_modules plugins: ["transform-async-to-generator", "syntax-async-functions", "transform-regenerator",