flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
45
BACK_BACK/node_modules/parcel-bundler/lib/builtins/prelude2.js
generated
vendored
Executable file
45
BACK_BACK/node_modules/parcel-bundler/lib/builtins/prelude2.js
generated
vendored
Executable file
|
|
@ -0,0 +1,45 @@
|
|||
parcelRequire = (function (init) {
|
||||
// Save the require from previous bundle to this closure if any
|
||||
var previousRequire = typeof parcelRequire === 'function' && parcelRequire;
|
||||
var nodeRequire = typeof require === 'function' && require;
|
||||
var modules = {};
|
||||
|
||||
function localRequire(name, jumped) {
|
||||
if (name in modules) {
|
||||
return modules[name];
|
||||
}
|
||||
|
||||
// if we cannot find the module within our internal map or
|
||||
// cache jump to the current global require ie. the last bundle
|
||||
// that was added to the page.
|
||||
var currentRequire = typeof parcelRequire === 'function' && parcelRequire;
|
||||
if (!jumped && currentRequire) {
|
||||
return currentRequire(name, true);
|
||||
}
|
||||
|
||||
// If there are other bundles on this page the require from the
|
||||
// previous one is saved to 'previousRequire'. Repeat this as
|
||||
// many times as there are bundles until the module is found or
|
||||
// we exhaust the require chain.
|
||||
if (previousRequire) {
|
||||
return previousRequire(name, true);
|
||||
}
|
||||
|
||||
// Try the node require function if it exists.
|
||||
if (nodeRequire && typeof name === 'string') {
|
||||
return nodeRequire(name);
|
||||
}
|
||||
|
||||
var err = new Error('Cannot find module \'' + name + '\'');
|
||||
err.code = 'MODULE_NOT_FOUND';
|
||||
throw err;
|
||||
}
|
||||
|
||||
localRequire.register = function register(id, exports) {
|
||||
modules[id] = exports;
|
||||
};
|
||||
|
||||
modules = init(localRequire);
|
||||
localRequire.modules = modules;
|
||||
return localRequire;
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue