babelify asmcrypto.js

This commit is contained in:
Bart Butler 2018-02-21 20:02:50 -08:00 committed by Mahrud Sayrafi
parent 1b66b9cf60
commit 8c4fa07dd5
No known key found for this signature in database
GPG Key ID: C24071B956C3245F

View File

@ -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",