Website Structure
This commit is contained in:
parent
62812f2090
commit
71f0676a62
22365 changed files with 4265753 additions and 791 deletions
27
Frontend-Learner/node_modules/unplugin/dist/rspack/loaders/load.cjs
generated
vendored
Normal file
27
Frontend-Learner/node_modules/unplugin/dist/rspack/loaders/load.cjs
generated
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
const require_context = require('../../context-CQfDPcdE.cjs');
|
||||
const require_webpack_like = require('../../webpack-like-DDVwPJ4e.cjs');
|
||||
const require_context$1 = require('../../context-CrbHoDid.cjs');
|
||||
const require_utils = require('../../utils-CJMEEaD7.cjs');
|
||||
|
||||
//#region src/rspack/loaders/load.ts
|
||||
async function load(source, map) {
|
||||
const callback = this.async();
|
||||
const { plugin } = this.query;
|
||||
let id = this.resource;
|
||||
if (!plugin?.load || !id) return callback(null, source, map);
|
||||
if (require_utils.isVirtualModuleId(id, plugin)) id = require_utils.decodeVirtualModuleId(id, plugin);
|
||||
const context = require_context$1.createContext(this);
|
||||
const { handler } = require_context.normalizeObjectHook("load", plugin.load);
|
||||
try {
|
||||
const res = await handler.call(Object.assign({}, this._compilation && require_context$1.createBuildContext(this._compiler, this._compilation, this), context), require_webpack_like.normalizeAbsolutePath(id));
|
||||
if (res == null) callback(null, source, map);
|
||||
else if (typeof res !== "string") callback(null, res.code, res.map ?? map);
|
||||
else callback(null, res, map);
|
||||
} catch (error) {
|
||||
if (error instanceof Error) callback(error);
|
||||
else callback(new Error(String(error)));
|
||||
}
|
||||
}
|
||||
|
||||
//#endregion
|
||||
module.exports = load;
|
||||
5
Frontend-Learner/node_modules/unplugin/dist/rspack/loaders/load.d.cts
generated
vendored
Normal file
5
Frontend-Learner/node_modules/unplugin/dist/rspack/loaders/load.d.cts
generated
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import { LoaderContext } from "@rspack/core";
|
||||
|
||||
//#region src/rspack/loaders/load.d.ts
|
||||
declare function load(this: LoaderContext, source: string, map: any): Promise<void>;
|
||||
export = load;
|
||||
6
Frontend-Learner/node_modules/unplugin/dist/rspack/loaders/load.d.ts
generated
vendored
Normal file
6
Frontend-Learner/node_modules/unplugin/dist/rspack/loaders/load.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import { LoaderContext } from "@rspack/core";
|
||||
|
||||
//#region src/rspack/loaders/load.d.ts
|
||||
declare function load(this: LoaderContext, source: string, map: any): Promise<void>;
|
||||
//#endregion
|
||||
export { load as default };
|
||||
27
Frontend-Learner/node_modules/unplugin/dist/rspack/loaders/load.js
generated
vendored
Normal file
27
Frontend-Learner/node_modules/unplugin/dist/rspack/loaders/load.js
generated
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
import { n as normalizeObjectHook } from "../../context-Csj9j3eN.js";
|
||||
import { t as normalizeAbsolutePath } from "../../webpack-like-DFGTNSuV.js";
|
||||
import { n as createContext, t as createBuildContext } from "../../context-DkYlx1xL.js";
|
||||
import { i as isVirtualModuleId, n as decodeVirtualModuleId } from "../../utils-BosfZ0pB.js";
|
||||
|
||||
//#region src/rspack/loaders/load.ts
|
||||
async function load(source, map) {
|
||||
const callback = this.async();
|
||||
const { plugin } = this.query;
|
||||
let id = this.resource;
|
||||
if (!plugin?.load || !id) return callback(null, source, map);
|
||||
if (isVirtualModuleId(id, plugin)) id = decodeVirtualModuleId(id, plugin);
|
||||
const context = createContext(this);
|
||||
const { handler } = normalizeObjectHook("load", plugin.load);
|
||||
try {
|
||||
const res = await handler.call(Object.assign({}, this._compilation && createBuildContext(this._compiler, this._compilation, this), context), normalizeAbsolutePath(id));
|
||||
if (res == null) callback(null, source, map);
|
||||
else if (typeof res !== "string") callback(null, res.code, res.map ?? map);
|
||||
else callback(null, res, map);
|
||||
} catch (error) {
|
||||
if (error instanceof Error) callback(error);
|
||||
else callback(new Error(String(error)));
|
||||
}
|
||||
}
|
||||
|
||||
//#endregion
|
||||
export { load as default };
|
||||
25
Frontend-Learner/node_modules/unplugin/dist/rspack/loaders/transform.cjs
generated
vendored
Normal file
25
Frontend-Learner/node_modules/unplugin/dist/rspack/loaders/transform.cjs
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
const require_context = require('../../context-CQfDPcdE.cjs');
|
||||
const require_context$1 = require('../../context-CrbHoDid.cjs');
|
||||
|
||||
//#region src/rspack/loaders/transform.ts
|
||||
async function transform(source, map) {
|
||||
const callback = this.async();
|
||||
const { plugin } = this.query;
|
||||
if (!plugin?.transform) return callback(null, source, map);
|
||||
const id = this.resource;
|
||||
const context = require_context$1.createContext(this);
|
||||
const { handler, filter } = require_context.normalizeObjectHook("transform", plugin.transform);
|
||||
if (!filter(this.resource, source)) return callback(null, source, map);
|
||||
try {
|
||||
const res = await handler.call(Object.assign({}, this._compilation && require_context$1.createBuildContext(this._compiler, this._compilation, this, map), context), source, id);
|
||||
if (res == null) callback(null, source, map);
|
||||
else if (typeof res !== "string") callback(null, res.code, map == null ? map : res.map || map);
|
||||
else callback(null, res, map);
|
||||
} catch (error) {
|
||||
if (error instanceof Error) callback(error);
|
||||
else callback(new Error(String(error)));
|
||||
}
|
||||
}
|
||||
|
||||
//#endregion
|
||||
module.exports = transform;
|
||||
5
Frontend-Learner/node_modules/unplugin/dist/rspack/loaders/transform.d.cts
generated
vendored
Normal file
5
Frontend-Learner/node_modules/unplugin/dist/rspack/loaders/transform.d.cts
generated
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import { LoaderContext } from "@rspack/core";
|
||||
|
||||
//#region src/rspack/loaders/transform.d.ts
|
||||
declare function transform(this: LoaderContext, source: string, map: any): Promise<void>;
|
||||
export = transform;
|
||||
6
Frontend-Learner/node_modules/unplugin/dist/rspack/loaders/transform.d.ts
generated
vendored
Normal file
6
Frontend-Learner/node_modules/unplugin/dist/rspack/loaders/transform.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import { LoaderContext } from "@rspack/core";
|
||||
|
||||
//#region src/rspack/loaders/transform.d.ts
|
||||
declare function transform(this: LoaderContext, source: string, map: any): Promise<void>;
|
||||
//#endregion
|
||||
export { transform as default };
|
||||
25
Frontend-Learner/node_modules/unplugin/dist/rspack/loaders/transform.js
generated
vendored
Normal file
25
Frontend-Learner/node_modules/unplugin/dist/rspack/loaders/transform.js
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
import { n as normalizeObjectHook } from "../../context-Csj9j3eN.js";
|
||||
import { n as createContext, t as createBuildContext } from "../../context-DkYlx1xL.js";
|
||||
|
||||
//#region src/rspack/loaders/transform.ts
|
||||
async function transform(source, map) {
|
||||
const callback = this.async();
|
||||
const { plugin } = this.query;
|
||||
if (!plugin?.transform) return callback(null, source, map);
|
||||
const id = this.resource;
|
||||
const context = createContext(this);
|
||||
const { handler, filter } = normalizeObjectHook("transform", plugin.transform);
|
||||
if (!filter(this.resource, source)) return callback(null, source, map);
|
||||
try {
|
||||
const res = await handler.call(Object.assign({}, this._compilation && createBuildContext(this._compiler, this._compilation, this, map), context), source, id);
|
||||
if (res == null) callback(null, source, map);
|
||||
else if (typeof res !== "string") callback(null, res.code, map == null ? map : res.map || map);
|
||||
else callback(null, res, map);
|
||||
} catch (error) {
|
||||
if (error instanceof Error) callback(error);
|
||||
else callback(new Error(String(error)));
|
||||
}
|
||||
}
|
||||
|
||||
//#endregion
|
||||
export { transform as default };
|
||||
Loading…
Add table
Add a link
Reference in a new issue