mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2026-03-08 01:51:34 +00:00
Use ES6 build of web-streams-polyfill in non-compat builds
This commit is contained in:
@@ -47,8 +47,8 @@ module.exports = function(grunt) {
|
||||
transform: [
|
||||
["babelify", {
|
||||
global: true,
|
||||
// Only babelify web-stream-tools, asmcrypto, address-rfc2822 and seek-bzip in node_modules
|
||||
only: /^(?:.*\/node_modules\/web-stream-tools\/|.*\/node_modules\/asmcrypto\.js\/|.*\/node_modules\/address-rfc2822\/|.*\/node_modules\/seek-bzip\/|(?!.*\/node_modules\/)).*$/,
|
||||
// Only babelify web-streams-polyfill, web-stream-tools, asmcrypto, address-rfc2822 and seek-bzip in node_modules
|
||||
only: /^(?:.*\/node_modules\/@mattiasbuelens\/web-streams-polyfill\/|.*\/node_modules\/web-stream-tools\/|.*\/node_modules\/asmcrypto\.js\/|.*\/node_modules\/address-rfc2822\/|.*\/node_modules\/seek-bzip\/|(?!.*\/node_modules\/)).*$/,
|
||||
plugins: compat ? [
|
||||
"transform-async-to-generator",
|
||||
"syntax-async-functions",
|
||||
|
||||
@@ -52,7 +52,7 @@ if (typeof window !== 'undefined') {
|
||||
}
|
||||
|
||||
if (typeof TransformStream === 'undefined') {
|
||||
require('@mattiasbuelens/web-streams-polyfill');
|
||||
require('@mattiasbuelens/web-streams-polyfill/es6');
|
||||
}
|
||||
if (typeof TextEncoder === 'undefined') {
|
||||
const nodeUtil = util.nodeRequire('util') || {};
|
||||
|
||||
Reference in New Issue
Block a user