mirror of
https://github.com/SamEyeBam/animate.git
synced 2025-09-28 06:55:25 +00:00
larry babby and threejs for glsl
This commit is contained in:
21
webGl/my-threejs-test/node_modules/@parcel/runtime-react-refresh/LICENSE
generated
vendored
Normal file
21
webGl/my-threejs-test/node_modules/@parcel/runtime-react-refresh/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2017-present Devon Govett
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
68
webGl/my-threejs-test/node_modules/@parcel/runtime-react-refresh/lib/ReactRefreshRuntime.js
generated
vendored
Normal file
68
webGl/my-threejs-test/node_modules/@parcel/runtime-react-refresh/lib/ReactRefreshRuntime.js
generated
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
function _plugin() {
|
||||
const data = require("@parcel/plugin");
|
||||
_plugin = function () {
|
||||
return data;
|
||||
};
|
||||
return data;
|
||||
}
|
||||
function _utils() {
|
||||
const data = require("@parcel/utils");
|
||||
_utils = function () {
|
||||
return data;
|
||||
};
|
||||
return data;
|
||||
}
|
||||
const CODE = `
|
||||
var Refresh = require('react-refresh/runtime');
|
||||
var ErrorOverlay = require('react-error-overlay');
|
||||
|
||||
Refresh.injectIntoGlobalHook(window);
|
||||
window.$RefreshReg$ = function() {};
|
||||
window.$RefreshSig$ = function() {
|
||||
return function(type) {
|
||||
return type;
|
||||
};
|
||||
};
|
||||
|
||||
ErrorOverlay.setEditorHandler(function editorHandler(errorLocation) {
|
||||
let file = \`\${errorLocation.fileName}:\${errorLocation.lineNumber || 1}:\${errorLocation.colNumber || 1}\`;
|
||||
fetch(\`/__parcel_launch_editor?file=\${encodeURIComponent(file)}\`);
|
||||
});
|
||||
|
||||
ErrorOverlay.startReportingRuntimeErrors({
|
||||
onError: function () {},
|
||||
});
|
||||
|
||||
window.addEventListener('parcelhmraccept', () => {
|
||||
ErrorOverlay.dismissRuntimeErrors();
|
||||
});
|
||||
`;
|
||||
var _default = exports.default = new (_plugin().Runtime)({
|
||||
async apply({
|
||||
bundle,
|
||||
options
|
||||
}) {
|
||||
if (bundle.type !== 'js' || !options.hmrOptions || !bundle.env.isBrowser() || bundle.env.isLibrary || bundle.env.isWorker() || bundle.env.isWorklet() || options.mode !== 'development' || bundle.env.sourceType !== 'module') {
|
||||
return;
|
||||
}
|
||||
let entries = bundle.getEntryAssets();
|
||||
for (let entry of entries) {
|
||||
var _pkg$config, _pkg$config2, _pkg$config3;
|
||||
// TODO: do this in loadConfig - but it doesn't have access to the bundle...
|
||||
let pkg = await (0, _utils().loadConfig)(options.inputFS, entry.filePath, ['package.json'], options.projectRoot);
|
||||
if (pkg !== null && pkg !== void 0 && (_pkg$config = pkg.config) !== null && _pkg$config !== void 0 && (_pkg$config = _pkg$config.dependencies) !== null && _pkg$config !== void 0 && _pkg$config.react || pkg !== null && pkg !== void 0 && (_pkg$config2 = pkg.config) !== null && _pkg$config2 !== void 0 && (_pkg$config2 = _pkg$config2.devDependencies) !== null && _pkg$config2 !== void 0 && _pkg$config2.react || pkg !== null && pkg !== void 0 && (_pkg$config3 = pkg.config) !== null && _pkg$config3 !== void 0 && (_pkg$config3 = _pkg$config3.peerDependencies) !== null && _pkg$config3 !== void 0 && _pkg$config3.react) {
|
||||
return {
|
||||
filePath: __filename,
|
||||
code: CODE,
|
||||
isEntry: true
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
29
webGl/my-threejs-test/node_modules/@parcel/runtime-react-refresh/package.json
generated
vendored
Normal file
29
webGl/my-threejs-test/node_modules/@parcel/runtime-react-refresh/package.json
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"name": "@parcel/runtime-react-refresh",
|
||||
"version": "2.12.0",
|
||||
"license": "MIT",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/parcel"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/parcel-bundler/parcel.git"
|
||||
},
|
||||
"main": "lib/ReactRefreshRuntime.js",
|
||||
"source": "src/ReactRefreshRuntime.js",
|
||||
"engines": {
|
||||
"node": ">= 12.0.0",
|
||||
"parcel": "^2.12.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@parcel/plugin": "2.12.0",
|
||||
"@parcel/utils": "2.12.0",
|
||||
"react-error-overlay": "6.0.9",
|
||||
"react-refresh": "^0.9.0"
|
||||
},
|
||||
"gitHead": "2059029ee91e5f03a273b0954d3e629d7375f986"
|
||||
}
|
69
webGl/my-threejs-test/node_modules/@parcel/runtime-react-refresh/src/ReactRefreshRuntime.js
generated
vendored
Normal file
69
webGl/my-threejs-test/node_modules/@parcel/runtime-react-refresh/src/ReactRefreshRuntime.js
generated
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
// @flow strict-local
|
||||
|
||||
import {Runtime} from '@parcel/plugin';
|
||||
import {loadConfig} from '@parcel/utils';
|
||||
|
||||
const CODE = `
|
||||
var Refresh = require('react-refresh/runtime');
|
||||
var ErrorOverlay = require('react-error-overlay');
|
||||
|
||||
Refresh.injectIntoGlobalHook(window);
|
||||
window.$RefreshReg$ = function() {};
|
||||
window.$RefreshSig$ = function() {
|
||||
return function(type) {
|
||||
return type;
|
||||
};
|
||||
};
|
||||
|
||||
ErrorOverlay.setEditorHandler(function editorHandler(errorLocation) {
|
||||
let file = \`\${errorLocation.fileName}:\${errorLocation.lineNumber || 1}:\${errorLocation.colNumber || 1}\`;
|
||||
fetch(\`/__parcel_launch_editor?file=\${encodeURIComponent(file)}\`);
|
||||
});
|
||||
|
||||
ErrorOverlay.startReportingRuntimeErrors({
|
||||
onError: function () {},
|
||||
});
|
||||
|
||||
window.addEventListener('parcelhmraccept', () => {
|
||||
ErrorOverlay.dismissRuntimeErrors();
|
||||
});
|
||||
`;
|
||||
|
||||
export default (new Runtime({
|
||||
async apply({bundle, options}) {
|
||||
if (
|
||||
bundle.type !== 'js' ||
|
||||
!options.hmrOptions ||
|
||||
!bundle.env.isBrowser() ||
|
||||
bundle.env.isLibrary ||
|
||||
bundle.env.isWorker() ||
|
||||
bundle.env.isWorklet() ||
|
||||
options.mode !== 'development' ||
|
||||
bundle.env.sourceType !== 'module'
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
let entries = bundle.getEntryAssets();
|
||||
for (let entry of entries) {
|
||||
// TODO: do this in loadConfig - but it doesn't have access to the bundle...
|
||||
let pkg = await loadConfig(
|
||||
options.inputFS,
|
||||
entry.filePath,
|
||||
['package.json'],
|
||||
options.projectRoot,
|
||||
);
|
||||
if (
|
||||
pkg?.config?.dependencies?.react ||
|
||||
pkg?.config?.devDependencies?.react ||
|
||||
pkg?.config?.peerDependencies?.react
|
||||
) {
|
||||
return {
|
||||
filePath: __filename,
|
||||
code: CODE,
|
||||
isEntry: true,
|
||||
};
|
||||
}
|
||||
}
|
||||
},
|
||||
}): Runtime);
|
Reference in New Issue
Block a user