split-require
Advanced tools
Comparing version 2.1.3 to 3.0.0
{ | ||
"name": "split-require", | ||
"description": "Bundle splitting for CommonJS and ES modules (dynamic `import()`) in browserify", | ||
"version": "2.1.3", | ||
"version": "3.0.0", | ||
"bugs": { | ||
@@ -10,3 +10,2 @@ "url": "https://github.com/goto-bus-stop/split-require/issues" | ||
"acorn-node": "^1.1.0", | ||
"babylon": "^6.18.0", | ||
"browser-pack": "^6.0.2", | ||
@@ -17,2 +16,3 @@ "caller-path": "^2.0.0", | ||
"estree-is-require": "^1.0.0", | ||
"estree-walk": "^2.2.0", | ||
"flush-write-stream": "^1.0.2", | ||
@@ -25,8 +25,9 @@ "labeled-stream-splicer": "^2.0.0", | ||
"run-parallel": "^1.1.6", | ||
"scope-analyzer": "^1.3.0", | ||
"through2": "^2.0.3", | ||
"transform-ast": "^2.2.1" | ||
"transform-ast": "^2.3.0" | ||
}, | ||
"devDependencies": { | ||
"browser-pack-flat": "^2.5.0", | ||
"browserify": "^15.2.0", | ||
"browserify": "^16.0.0", | ||
"concat-stream": "^1.6.0", | ||
@@ -33,0 +34,0 @@ "factor-bundle": "^2.5.0", |
@@ -16,10 +16,7 @@ var path = require('path') | ||
var outpipe = require('outpipe') | ||
var walk = require('estree-walk') | ||
var scan = require('scope-analyzer') | ||
var acorn = require('acorn-node') | ||
var parseOpts = { | ||
parser: require('acorn-node') | ||
} | ||
var runtimePath = require.resolve('./browser') | ||
// Used to tag nodes that are splitRequire() calls. | ||
var kIsSplitRequireCall = Symbol('is split-require call') | ||
@@ -30,34 +27,21 @@ function mayContainSplitRequire (str) { | ||
function createSplitRequireDetector () { | ||
var splitVariables = [] | ||
return { | ||
visit: visit, | ||
check: check | ||
} | ||
function visit (node) { | ||
function detectSplitRequireCalls (ast, cb) { | ||
scan.crawl(ast) | ||
walk(ast, function (node) { | ||
var binding | ||
if (isRequire(node, 'split-require')) { | ||
if (node.parent.type === 'VariableDeclarator') { | ||
splitVariables.push(node.parent.id.name) | ||
// var sr = require('split-require') | ||
binding = scan.getBinding(node.parent.id) | ||
if (binding) binding.getReferences().slice(1).forEach(cb) | ||
} else if (node.parent.type === 'AssignmentExpression') { | ||
// sr = require('split-require') | ||
binding = scan.getBinding(node.parent.left) | ||
if (binding) binding.getReferences().slice(1).forEach(cb) | ||
} else { | ||
// require('split-require')(...args) | ||
cb(node) | ||
} | ||
if (node.parent.type === 'AssignmentExpression') { | ||
splitVariables.push(node.parent.left.name) | ||
} | ||
// require('split-require')(...args) | ||
if (node.parent.type === 'CallExpression') { | ||
node.parent[kIsSplitRequireCall] = true | ||
} | ||
return true | ||
} | ||
// var sr = require('split-require'); sr(...args) | ||
if (node.type === 'CallExpression' && node.callee.type === 'Identifier' && check(node.callee.name)) { | ||
node[kIsSplitRequireCall] = true | ||
} | ||
return false | ||
} | ||
function check (name) { | ||
return splitVariables.indexOf(name) !== -1 | ||
} | ||
}) | ||
} | ||
@@ -74,32 +58,24 @@ | ||
source += chunk | ||
cb(null) | ||
cb(null, chunk) | ||
} | ||
function onend (cb) { | ||
if (!mayContainSplitRequire(source)) { | ||
cb(null, source) | ||
cb() | ||
return | ||
} | ||
var splitVariables = createSplitRequireDetector() | ||
var hasSplitRequireCall = false | ||
var result = transformAst(source, parseOpts, function (node) { | ||
splitVariables.visit(node) | ||
if (this.listenerCount('dep') === 0) { | ||
throw new Error('split-require requires browserify v16 or up') | ||
} | ||
if (node[kIsSplitRequireCall]) { | ||
var arg = node.arguments[0] | ||
arg.edit.prepend('require(').append(')') | ||
hasSplitRequireCall = true | ||
var self = this | ||
var ast = acorn.parse(source) | ||
detectSplitRequireCalls(ast, function (node) { | ||
if (node.parent.type === 'CallExpression') { | ||
var arg = node.parent.arguments[0] | ||
self.emit('dep', arg.value) | ||
} | ||
}) | ||
// Pass through unchanged. | ||
if (!hasSplitRequireCall) { | ||
return cb(null, source) | ||
} | ||
var text = result.toString() | ||
if (opts && opts._flags && opts._flags.debug) { | ||
text += '\n' + convert.fromObject(result.map).toComment() | ||
} | ||
cb(null, text) | ||
cb() | ||
} | ||
@@ -149,12 +125,9 @@ } | ||
if (mayContainSplitRequire(row.source)) { | ||
var splitVariables = createSplitRequireDetector() | ||
var result = transformAst(row.source, parseOpts, function (node) { | ||
splitVariables.visit(node) | ||
if (node[kIsSplitRequireCall]) { | ||
processSplitRequire(row, node) | ||
var ast = acorn.parse(row.source) | ||
row.transformable = transformAst(row.source, { ast: ast }) | ||
detectSplitRequireCalls(ast, function (node) { | ||
if (node.parent.type === 'CallExpression' && node.parent.callee === node) { | ||
processSplitRequire(row, node.parent) | ||
} | ||
}) | ||
row.transformable = result | ||
} | ||
@@ -358,3 +331,3 @@ | ||
// `splitRequire(require('xyz'))` | ||
var requirePath = node.arguments[0].arguments[0].value | ||
var requirePath = node.arguments[0].value | ||
var resolved = row.deps[requirePath] | ||
@@ -361,0 +334,0 @@ // If `requirePath` was already a resolved dependency index (eg. thanks to bundle-collapser) |
@@ -11,2 +11,5 @@ # split-require | ||
> NOTE: split-require v3+ works with browserify 16 and newer. If you are using | ||
> an older browserify version and can't upgrade, use split-require v2. | ||
[What?](#what) - | ||
@@ -85,3 +88,2 @@ [Install](#install) - | ||
`split-require` also comes with a transform for ES modules `import()` syntax: | ||
You can use `split-require` with ES modules `import()` syntax using the | ||
@@ -88,0 +90,0 @@ [Babel plugin](https://github.com/goto-bus-stop/babel-plugin-dynamic-import-split-require). |
@@ -1,2 +0,2 @@ | ||
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({"split_require_mappings":[function(require,module,exports){ | ||
require=(function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e})()({"split_require_mappings":[function(require,module,exports){ | ||
require("split-require").b = {}; | ||
@@ -3,0 +3,0 @@ },{"split-require":1}],2:[function(require,module,exports){ |
@@ -1,2 +0,2 @@ | ||
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({"entry3":[function(require,module,exports){ | ||
(function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e})()({"entry3":[function(require,module,exports){ | ||
require("split-require").l(3, require("a")); | ||
@@ -3,0 +3,0 @@ },{"a":3,"split-require":1}],3:[function(require,module,exports){ |
@@ -1,2 +0,2 @@ | ||
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({"split_require_mappings":[function(require,module,exports){ | ||
require=(function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e})()({"split_require_mappings":[function(require,module,exports){ | ||
require("split-require").b = {"3":"bundle.3.js"}; | ||
@@ -3,0 +3,0 @@ },{"split-require":1}],2:[function(require,module,exports){ |
@@ -1,2 +0,2 @@ | ||
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({"entry2":[function(require,module,exports){ | ||
(function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e})()({"entry2":[function(require,module,exports){ | ||
require("split-require").l(2, require("a")); | ||
@@ -3,0 +3,0 @@ },{"a":2,"split-require":1}],2:[function(require,module,exports){ |
@@ -1,2 +0,2 @@ | ||
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({"entry4":[function(require,module,exports){ | ||
(function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e})()({"entry4":[function(require,module,exports){ | ||
require("split-require").l(4, require("a")); | ||
@@ -3,0 +3,0 @@ },{"a":4,"split-require":1}],4:[function(require,module,exports){ |
@@ -1,2 +0,2 @@ | ||
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({"entry5":[function(require,module,exports){ | ||
(function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e})()({"entry5":[function(require,module,exports){ | ||
require("split-require").l(5, require("a")); | ||
@@ -3,0 +3,0 @@ },{"a":5,"split-require":1}],5:[function(require,module,exports){ |
@@ -1,2 +0,2 @@ | ||
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({"entry6":[function(require,module,exports){ | ||
(function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e})()({"entry6":[function(require,module,exports){ | ||
require("split-require").l(6, require("a")); | ||
@@ -3,0 +3,0 @@ },{"a":6,"split-require":1}],6:[function(require,module,exports){ |
@@ -1,2 +0,2 @@ | ||
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({"split_require_mappings":[function(require,module,exports){ | ||
require=(function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e})()({"split_require_mappings":[function(require,module,exports){ | ||
require("split-require").b = {"2":"bundle.2.js","4":"bundle.4.js","5":"bundle.5.js","6":"bundle.6.js"}; | ||
@@ -3,0 +3,0 @@ },{"split-require":1}],3:[function(require,module,exports){ |
@@ -1,2 +0,2 @@ | ||
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({"entry4":[function(require,module,exports){ | ||
(function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e})()({"entry4":[function(require,module,exports){ | ||
require("split-require").l(4, require("a")); | ||
@@ -3,0 +3,0 @@ },{"a":4,"split-require":1}],4:[function(require,module,exports){ |
@@ -1,2 +0,2 @@ | ||
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({3:[function(require,module,exports){ | ||
require=(function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e})()({3:[function(require,module,exports){ | ||
module.exports = function () { | ||
@@ -3,0 +3,0 @@ console.log.apply(console, ['logged: '].concat([].slice.call(arguments))) |
@@ -1,3 +0,3 @@ | ||
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({"split_require_mappings":[function(require,module,exports){ | ||
require("split-require").b = {"3":"72ebf6c90f.js","4":"af567d0203.js"}; | ||
require=(function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e})()({"split_require_mappings":[function(require,module,exports){ | ||
require("split-require").b = {"3":"681b690693.js","4":"219582ef11.js"}; | ||
},{"split-require":1}],2:[function(require,module,exports){ | ||
@@ -4,0 +4,0 @@ var splitRequire = require('split-require') |
@@ -1,4 +0,4 @@ | ||
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | ||
(function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e})()({1:[function(require,module,exports){ | ||
module.exports = 'this does not call import() and generates a single bundle' | ||
},{}]},{},[1]); |
@@ -1,2 +0,2 @@ | ||
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({"entry2":[function(require,module,exports){ | ||
(function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e})()({"entry2":[function(require,module,exports){ | ||
require("split-require").l(2, require("a")); | ||
@@ -3,0 +3,0 @@ },{"a":2,"split-require":1}],2:[function(require,module,exports){ |
@@ -1,2 +0,2 @@ | ||
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({"entry4":[function(require,module,exports){ | ||
(function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e})()({"entry4":[function(require,module,exports){ | ||
require("split-require").l(4, require("a")); | ||
@@ -3,0 +3,0 @@ },{"a":4,"split-require":1}],4:[function(require,module,exports){ |
@@ -1,2 +0,2 @@ | ||
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({"split_require_mappings":[function(require,module,exports){ | ||
require=(function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e})()({"split_require_mappings":[function(require,module,exports){ | ||
require("split-require").b = {"2":"bundle.2.js","4":"bundle.4.js"}; | ||
@@ -3,0 +3,0 @@ },{"split-require":1}],3:[function(require,module,exports){ |
@@ -1,2 +0,2 @@ | ||
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({"entry3":[function(require,module,exports){ | ||
(function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e})()({"entry3":[function(require,module,exports){ | ||
require("split-require").l(3, require("a")); | ||
@@ -3,0 +3,0 @@ },{"a":3,"split-require":1}],3:[function(require,module,exports){ |
@@ -1,2 +0,2 @@ | ||
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({"split_require_mappings":[function(require,module,exports){ | ||
require=(function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e})()({"split_require_mappings":[function(require,module,exports){ | ||
require("split-require").b = {"3":"http:/localhost:9966/build/bundle.3.js"}; | ||
@@ -3,0 +3,0 @@ },{"split-require":1}],2:[function(require,module,exports){ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
264
69908
17
63
1574
1
+ Addedestree-walk@^2.2.0
+ Addedscope-analyzer@^1.3.0
+ Addedestree-is-function@1.0.0(transitive)
+ Addedestree-walk@2.2.0(transitive)
+ Addedget-assigned-identifiers@1.2.0(transitive)
+ Addedscope-analyzer@1.3.0(transitive)
- Removedbabylon@^6.18.0
- Removedbabylon@6.18.0(transitive)
Updatedtransform-ast@^2.3.0