UNPKG

st-bundle

Version:

CLI for watching and bundling SpringType projects.

64 lines (63 loc) 1.06 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const SERVER_POLYFILL = new Set([ 'assert', 'buffer', 'child_process', 'crypto', 'events', 'fs', 'http', 'http2', 'https', 'module', 'net', 'os', 'path', 'process', 'querystring', 'stream', 'timers', 'tls', 'tty', 'url', 'util', 'zlib', 'constants', 'worker_threads', 'v8', 'vm', ]); const ELECTRON_POLYFILL = new Set([ 'electron', 'assert', 'buffer', 'child_process', 'crypto', 'fs', 'http', 'http2', 'https', 'module', 'net', 'os', 'path', 'process', 'querystring', 'stream', 'timers', 'tls', 'tty', 'url', 'util', 'zlib', 'constants', ]); function isServerPolyfill(name) { return SERVER_POLYFILL.has(name); } exports.isServerPolyfill = isServerPolyfill; function isElectronPolyfill(name) { return ELECTRON_POLYFILL.has(name); } exports.isElectronPolyfill = isElectronPolyfill;