MCPcopy Create free account

hub / github.com/webpack/stylus-loader / functions

Functions34 in github.com/webpack/stylus-loader

↓ 92 callersFunctiongetCodeFromBundle
* @param {import("webpack").Stats} stats stats * @param {import("webpack").Compiler} compiler compiler * @param {string=} asset asset name * @retur
test/helpers/getCodeFromBundle.js:11
↓ 91 callersFunctiongetCodeFromStylus
* @param {string} testId test fixture identifier * @param {EXPECTED_ANY=} options options * @param {EXPECTED_ANY=} context test context * @returns
test/helpers/getCodeFromStylus.js:155
↓ 8 callersFunctionplugin
* @returns {(style: EXPECTED_ANY) => void} stylus plugin
test/loader.test.js:115
↓ 3 callersFunctionreadFile
* @param {LoaderContext["fs"]} inputFileSystem input file system * @param {string} filepath file path * @returns {Promise<Buffer>} file contents
src/utils.js:348
↓ 2 callersFunctiongetDependencies
* @param {Map<string, Dependency[]>} resolvedDependencies resolved dependencies * @param {LoaderContext} loaderContext loader context * @param {Reso
src/utils.js:382
↓ 2 callersFunctiongetGlobBase
* Extracts the non-glob base directory from a glob pattern. * Replaces fast-glob's generateTasks()[0].base. * @param {string} pattern a glob pattern
src/utils.js:99
↓ 2 callersFunctiongetPossibleRequests
* @param {LoaderContext} loaderContext loader context * @param {string} filename filename * @returns {string[]} possible requests
src/utils.js:237
↓ 2 callersFunctionresolveFilename
* @param {LoaderContext} loaderContext loader context * @param {Resolver} fileResolver file resolver * @param {Resolver} globResolver glob resolver
src/utils.js:289
↓ 2 callersFunctionresolveOnComplete
* @param {(...args: unknown[]) => { on: (event: string, callback: () => void) => void }} fn function returning an emitter that emits "complete" * @re
bench/index.js:18
↓ 2 callersFunctionresolveRequests
* @param {string} context context * @param {string[]} possibleRequests possible requests * @param {Resolver} resolve resolver * @returns {Promise<s
src/utils.js:258
↓ 2 callersMethodvisitImport
* @param {import("stylus").nodes.Import} node import node * @returns {void}
src/utils.js:419
↓ 1 callersFunctionbuildCjsBundle
* Transpile every `.js` file under `src/` to CommonJS in `outDir`, copy * non-JS assets, then drop the `dist/cjs/package.json` type marker and * the
test/cjs.test.js:30
↓ 1 callersFunctioncreateEvaluator
* @param {LoaderContext} loaderContext loader context * @param {string} code code * @param {StylusOptions} options stylus options * @returns {Promi
src/utils.js:642
↓ 1 callersFunctioncreateTestCase
* @param {string} key key * @param {EXPECTED_ANY} value value * @param {string} type type
test/validate-options.test.js:75
↓ 1 callersFunctionevaluator
* @returns {EvaluatorCtor} a custom evaluator class
test/helpers/getCodeFromStylus.js:95
↓ 1 callersFunctionfn
(deferred)
bench/index.js:47
↓ 1 callersFunctiongetStylusImplementation
* This function is not Webpack-specific and can be used by tools wishing to mimic `stylus-loader`'s behaviour, so its signature should not be changed.
src/utils.js:219
↓ 1 callersFunctiongetStylusOptions
* Derives the stylus options from the loader context and normalizes its values with sane defaults. * @param {LoaderContext} loaderContext loader cont
src/utils.js:139
↓ 1 callersFunctiongetURLType
* @param {string} source source * @returns {"absolute" | "scheme-relative" | "path-absolute" | "path-relative"} a type of URL
src/utils.js:1005
↓ 1 callersFunctionisProductionLikeMode
* @param {LoaderContext} loaderContext loader context * @returns {boolean} true when mode is production, otherwise false
src/utils.js:129
↓ 1 callersFunctionmergeBlocks
* @param {import("stylus").nodes.Block[]} blocks blocks * @returns {import("stylus").nodes.Block | undefined} merged block
src/utils.js:619
↓ 1 callersFunctionnormalizeSourceMap
* @param {RawSourceMap} map source map * @param {string} rootContext root context * @returns {RawSourceMap} normalized source map
src/utils.js:1026
↓ 1 callersFunctionremoveCWD
* @param {string} str string to normalize * @returns {string} normalized string with `cwd` removed
test/helpers/normalizeErrors.js:5
↓ 1 callersFunctionstringifyValue
* @param {EXPECTED_ANY} value value * @returns {string} stringified value
test/validate-options.test.js:59
↓ 1 callersFunctionstylRender
* @param {EXPECTED_ANY} styl stylus renderer * @returns {Promise<{ css: string, map: EXPECTED_ANY }>} stylus result
test/helpers/getCodeFromStylus.js:135
↓ 1 callersFunctionurlResolver
* @param {{ nocheck?: boolean, paths?: string[] } | boolean=} options url resolver options * @returns {EXPECTED_ANY} url resolver function
src/utils.js:896
FunctionadditionalData
(content, loaderContext)
test/additionalData-option.test.js:27
FunctionreadAssets
(compiler, stats)
test/helpers/readAssets.js:8
Functionresolver
* @this {import("stylus").Evaluator & { paths: string[], filename: string, includeCSS?: boolean }} * @param {import("stylus").nodes.Expression} url
src/utils.js:905
FunctionstylusLoader
(source)
src/index.js:26
FunctiontestLoader
* @param {string} content content * @param {object=} sourceMap source map * @returns {string} test loader output
test/helpers/testLoader.cjs:8
FunctiontestLoader
* @param {string} content content * @returns {string} test loader output
bench/fixtures/imports/testLoader.js:5
MethodvisitImport
* @param {EXPECTED_ANY} imported imported * @returns {EXPECTED_ANY} visit result
test/helpers/getCodeFromStylus.js:101
MethodvisitImport
* @param {import("stylus").nodes.Import} imported imported * @returns {import("stylus").nodes.Block | import("stylus").nodes.Import | undefined}
src/utils.js:764