From da966076f9fb9fb5191e0df769f2744a57226b36 Mon Sep 17 00:00:00 2001 From: 10Derozan Date: Mon, 7 Aug 2023 11:49:38 +0800 Subject: [PATCH] chore(libuild): remove unuse dep and temp dir (#4386) --- packages/libuild/libuild-core/.eslintrc.cjs | 3 +- packages/libuild/libuild-core/.gitignore | 1 + packages/libuild/libuild-core/package.json | 4 - .../libuild/libuild-core/scripts/build.ts | 30 - .../libuild-core/temp/libuild.api.json | 10289 ---------------- .../libuild/libuild-core/temp/libuild.api.md | 800 -- packages/libuild/libuild-core/tsconfig.json | 2 +- pnpm-lock.yaml | 31 - tests/integration/libuild/package.json | 1 - 9 files changed, 4 insertions(+), 11157 deletions(-) delete mode 100644 packages/libuild/libuild-core/temp/libuild.api.json delete mode 100644 packages/libuild/libuild-core/temp/libuild.api.md diff --git a/packages/libuild/libuild-core/.eslintrc.cjs b/packages/libuild/libuild-core/.eslintrc.cjs index 414a253db518..115d5e428067 100644 --- a/packages/libuild/libuild-core/.eslintrc.cjs +++ b/packages/libuild/libuild-core/.eslintrc.cjs @@ -1,6 +1,7 @@ module.exports = { root: true, - extends: ['@modern-js'], + extends: ['@modern-js/eslint-config'], + ignorePatterns: ['scripts/*.ts'], parserOptions: { tsconfigRootDir: __dirname, project: ['./tsconfig.json'], diff --git a/packages/libuild/libuild-core/.gitignore b/packages/libuild/libuild-core/.gitignore index 51a7b3876ca9..242b4e6efdda 100644 --- a/packages/libuild/libuild-core/.gitignore +++ b/packages/libuild/libuild-core/.gitignore @@ -1,3 +1,4 @@ dist lib +temp *.cpuprofile diff --git a/packages/libuild/libuild-core/package.json b/packages/libuild/libuild-core/package.json index 9a573600563b..d66d84cf8444 100644 --- a/packages/libuild/libuild-core/package.json +++ b/packages/libuild/libuild-core/package.json @@ -60,7 +60,6 @@ "@types/picomatch": "2.3.0", "@types/rimraf": "3.0.2", "@types/sass": "1.43.1", - "@types/semver": "7.3.9", "@types/source-map-support": "0.5.4", "@types/stack-trace": "0.0.30", "@types/yargs": "17.0.4", @@ -77,7 +76,6 @@ "enhanced-resolve": "5.8.3", "error-stack": "1.0.3", "es-module-lexer": "0.9.3", - "esbuild-plugin-license": "1.2.2", "fs-extra": "10.0.0", "import-lazy": "4.0.0", "mime-types": "2.1.33", @@ -87,7 +85,6 @@ "postcss-load-config": "3.1.4", "postcss-modules": "4.3.0", "rimraf": "3.0.2", - "semver": "7.3.5", "stack-trace": "1.0.0-pre1", "strip-ansi": "7.0.1", "tapable": "2.2.1", @@ -96,7 +93,6 @@ "tsd": "0.19.1", "tsm": "2.3.0", "typescript": "4.4.4", - "utility-types": "3.10.0", "yargs": "17.2.1", "commander": "9.4.0", "magic-string": "0.26.4", diff --git a/packages/libuild/libuild-core/scripts/build.ts b/packages/libuild/libuild-core/scripts/build.ts index 67a41d3705b5..e2d1b0356b08 100644 --- a/packages/libuild/libuild-core/scripts/build.ts +++ b/packages/libuild/libuild-core/scripts/build.ts @@ -7,7 +7,6 @@ import fse from 'fs-extra'; import { resolvePathAndQuery } from '@modern-js/libuild-utils'; import { Extractor, ExtractorConfig } from '@microsoft/api-extractor'; import remapping from '@ampproject/remapping'; -import esbuildPluginLicense from 'esbuild-plugin-license'; let rebuildCnt = 0; @@ -207,35 +206,6 @@ async function run() { workerPlugin(), rawPlugin(), enhancedResolvePlugin(), - !args.watch && - esbuildPluginLicense({ - thirdParty: { - output: { - file: '../LICENSE.md', - template(dependencies, self) { - return ` -# Libuild license - -Libuild is released under the MIT license: - -The MIT License (MIT) - -Copyright (c) 2022 [Libuild](https://github.com/modern-js/libuild) - -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. - -## Licenses of bundled dependencies - -${dependencies.map((dependency) => `- ${dependency.packageJson.name} -- ${dependency.packageJson.license}`).join('\n')} -`.trimStart(); - }, - }, - }, - }), ].filter(Boolean) as Plugin[], }; diff --git a/packages/libuild/libuild-core/temp/libuild.api.json b/packages/libuild/libuild-core/temp/libuild.api.json deleted file mode 100644 index ae09527db09f..000000000000 --- a/packages/libuild/libuild-core/temp/libuild.api.json +++ /dev/null @@ -1,10289 +0,0 @@ -{ - "metadata": { - "toolPackage": "@microsoft/api-extractor", - "toolVersion": "7.19.4", - "schemaVersion": 1004, - "oldestForwardsCompatibleVersion": 1001, - "tsdocConfig": { - "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", - "noStandardTags": true, - "tagDefinitions": [ - { - "tagName": "@alpha", - "syntaxKind": "modifier" - }, - { - "tagName": "@beta", - "syntaxKind": "modifier" - }, - { - "tagName": "@defaultValue", - "syntaxKind": "block" - }, - { - "tagName": "@decorator", - "syntaxKind": "block", - "allowMultiple": true - }, - { - "tagName": "@deprecated", - "syntaxKind": "block" - }, - { - "tagName": "@eventProperty", - "syntaxKind": "modifier" - }, - { - "tagName": "@example", - "syntaxKind": "block", - "allowMultiple": true - }, - { - "tagName": "@experimental", - "syntaxKind": "modifier" - }, - { - "tagName": "@inheritDoc", - "syntaxKind": "inline" - }, - { - "tagName": "@internal", - "syntaxKind": "modifier" - }, - { - "tagName": "@label", - "syntaxKind": "inline" - }, - { - "tagName": "@link", - "syntaxKind": "inline", - "allowMultiple": true - }, - { - "tagName": "@override", - "syntaxKind": "modifier" - }, - { - "tagName": "@packageDocumentation", - "syntaxKind": "modifier" - }, - { - "tagName": "@param", - "syntaxKind": "block", - "allowMultiple": true - }, - { - "tagName": "@privateRemarks", - "syntaxKind": "block" - }, - { - "tagName": "@public", - "syntaxKind": "modifier" - }, - { - "tagName": "@readonly", - "syntaxKind": "modifier" - }, - { - "tagName": "@remarks", - "syntaxKind": "block" - }, - { - "tagName": "@returns", - "syntaxKind": "block" - }, - { - "tagName": "@sealed", - "syntaxKind": "modifier" - }, - { - "tagName": "@see", - "syntaxKind": "block" - }, - { - "tagName": "@throws", - "syntaxKind": "block", - "allowMultiple": true - }, - { - "tagName": "@typeParam", - "syntaxKind": "block", - "allowMultiple": true - }, - { - "tagName": "@virtual", - "syntaxKind": "modifier" - }, - { - "tagName": "@betaDocumentation", - "syntaxKind": "modifier" - }, - { - "tagName": "@internalRemarks", - "syntaxKind": "block" - }, - { - "tagName": "@preapproved", - "syntaxKind": "modifier" - } - ], - "supportForTags": { - "@alpha": true, - "@beta": true, - "@defaultValue": true, - "@decorator": true, - "@deprecated": true, - "@eventProperty": true, - "@example": true, - "@experimental": true, - "@inheritDoc": true, - "@internal": true, - "@label": true, - "@link": true, - "@override": true, - "@packageDocumentation": true, - "@param": true, - "@privateRemarks": true, - "@public": true, - "@readonly": true, - "@remarks": true, - "@returns": true, - "@sealed": true, - "@see": true, - "@throws": true, - "@typeParam": true, - "@virtual": true, - "@betaDocumentation": true, - "@internalRemarks": true, - "@preapproved": true - } - } - }, - "kind": "Package", - "canonicalReference": "@modern-js/libuild!", - "docComment": "", - "name": "@modern-js/libuild", - "members": [ - { - "kind": "EntryPoint", - "canonicalReference": "@modern-js/libuild!", - "name": "", - "members": [ - { - "kind": "TypeAlias", - "canonicalReference": "@modern-js/libuild!Asset:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type Asset = " - }, - { - "kind": "Content", - "text": "{\n outdir?: string;\n rebase?: boolean;\n name?: string | ((filePath: string) => string);\n limit?: number;\n publicPath?: string | ((filePath: string) => string);\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "releaseTag": "Public", - "name": "Asset", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "@modern-js/libuild!AssetChunk:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type AssetChunk = " - }, - { - "kind": "Content", - "text": "{\n type: 'asset';\n contents: string | " - }, - { - "kind": "Reference", - "text": "Buffer", - "canonicalReference": "!Buffer:class" - }, - { - "kind": "Content", - "text": ";\n fileName: string;\n originalFileName?: string;\n entryPoint?: string;\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "releaseTag": "Public", - "name": "AssetChunk", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 4 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "@modern-js/libuild!AssetNormalized:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type AssetNormalized = " - }, - { - "kind": "Reference", - "text": "Required", - "canonicalReference": "!Required:type" - }, - { - "kind": "Content", - "text": "<" - }, - { - "kind": "Reference", - "text": "Asset", - "canonicalReference": "@modern-js/libuild!Asset:type" - }, - { - "kind": "Content", - "text": ">" - }, - { - "kind": "Content", - "text": ";" - } - ], - "releaseTag": "Public", - "name": "AssetNormalized", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 5 - } - }, - { - "kind": "Interface", - "canonicalReference": "@modern-js/libuild!BuildConfig:interface", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface BuildConfig extends " - }, - { - "kind": "Reference", - "text": "Required", - "canonicalReference": "!Required:type" - }, - { - "kind": "Content", - "text": "<" - }, - { - "kind": "Reference", - "text": "Omit", - "canonicalReference": "!Omit:type" - }, - { - "kind": "Content", - "text": "<" - }, - { - "kind": "Reference", - "text": "CLIConfig", - "canonicalReference": "@modern-js/libuild!CLIConfig:interface" - }, - { - "kind": "Content", - "text": ", 'sideEffects' | 'chunkNames'>> " - } - ], - "releaseTag": "Public", - "name": "BuildConfig", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!BuildConfig#asset:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "asset: " - }, - { - "kind": "Reference", - "text": "AssetNormalized", - "canonicalReference": "@modern-js/libuild!AssetNormalized:type" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "asset", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!BuildConfig#chunkNames:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "chunkNames?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "chunkNames", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!BuildConfig#css_resolve:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "css_resolve: " - }, - { - "kind": "Content", - "text": "(id: string, dir: string) => string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "css_resolve", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!BuildConfig#logger:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "logger: " - }, - { - "kind": "Reference", - "text": "ILogger", - "canonicalReference": "@modern-js/libuild!ILogger:class" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "logger", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!BuildConfig#node_resolve:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "node_resolve: " - }, - { - "kind": "Content", - "text": "(id: string, dir: string, kind?: " - }, - { - "kind": "Reference", - "text": "ImportKind", - "canonicalReference": "esbuild!ImportKind:type" - }, - { - "kind": "Content", - "text": ") => string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "node_resolve", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 4 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!BuildConfig#resolve:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "resolve: " - }, - { - "kind": "Reference", - "text": "ResolveNormalized", - "canonicalReference": "@modern-js/libuild!ResolveNormalized:type" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "resolve", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!BuildConfig#sideEffects:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "sideEffects?: " - }, - { - "kind": "Reference", - "text": "SideEffects", - "canonicalReference": "@modern-js/libuild!SideEffects:type" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "sideEffects", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [ - { - "startIndex": 1, - "endIndex": 7 - } - ] - }, - { - "kind": "Interface", - "canonicalReference": "@modern-js/libuild!BuilderResolveOptions:interface", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface BuilderResolveOptions " - } - ], - "releaseTag": "Public", - "name": "BuilderResolveOptions", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!BuilderResolveOptions#importer:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "importer?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "importer", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!BuilderResolveOptions#kind:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "kind?: " - }, - { - "kind": "Reference", - "text": "ImportKind", - "canonicalReference": "esbuild!ImportKind:type" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "kind", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!BuilderResolveOptions#resolveDir:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "resolveDir?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "resolveDir", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!BuilderResolveOptions#skipSideEffects:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "skipSideEffects?: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "skipSideEffects", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "@modern-js/libuild!BuilderResolveResult:interface", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface BuilderResolveResult " - } - ], - "releaseTag": "Public", - "name": "BuilderResolveResult", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!BuilderResolveResult#external:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "external?: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "external", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!BuilderResolveResult#path:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "path: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "path", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!BuilderResolveResult#sideEffects:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "sideEffects?: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "sideEffects", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!BuilderResolveResult#suffix:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "suffix?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "suffix", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "@modern-js/libuild!CacheValue:interface", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface CacheValue extends " - }, - { - "kind": "Reference", - "text": "Source", - "canonicalReference": "@modern-js/libuild!Source:type" - }, - { - "kind": "Content", - "text": " " - } - ], - "releaseTag": "Public", - "name": "CacheValue", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!CacheValue#originCode:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "originCode: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "originCode", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [ - { - "startIndex": 1, - "endIndex": 3 - } - ] - }, - { - "kind": "TypeAlias", - "canonicalReference": "@modern-js/libuild!Callback:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type Callback = " - }, - { - "kind": "Content", - "text": "(err?: any) => void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "releaseTag": "Public", - "name": "Callback", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "@modern-js/libuild!Chunk:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type Chunk = " - }, - { - "kind": "Reference", - "text": "AssetChunk", - "canonicalReference": "@modern-js/libuild!AssetChunk:type" - }, - { - "kind": "Content", - "text": " | " - }, - { - "kind": "Reference", - "text": "JsChunk", - "canonicalReference": "@modern-js/libuild!JsChunk:type" - }, - { - "kind": "Content", - "text": ";" - } - ], - "releaseTag": "Public", - "name": "Chunk", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 4 - } - }, - { - "kind": "Enum", - "canonicalReference": "@modern-js/libuild!ChunkType:enum", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare const enum ChunkType " - } - ], - "releaseTag": "Public", - "name": "ChunkType", - "members": [ - { - "kind": "EnumMember", - "canonicalReference": "@modern-js/libuild!ChunkType.asset:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "asset = " - }, - { - "kind": "Content", - "text": "\"asset\"" - } - ], - "releaseTag": "Public", - "name": "asset", - "initializerTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "EnumMember", - "canonicalReference": "@modern-js/libuild!ChunkType.chunk:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "chunk = " - }, - { - "kind": "Content", - "text": "\"chunk\"" - } - ], - "releaseTag": "Public", - "name": "chunk", - "initializerTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ] - }, - { - "kind": "Interface", - "canonicalReference": "@modern-js/libuild!CLIConfig:interface", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface CLIConfig extends " - }, - { - "kind": "Reference", - "text": "UserConfig", - "canonicalReference": "@modern-js/libuild!UserConfig:interface" - }, - { - "kind": "Content", - "text": " " - } - ], - "releaseTag": "Public", - "name": "CLIConfig", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!CLIConfig#configFile:member", - "docComment": "/**\n * The path of config file, default by `libuild.config.ts`.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "configFile?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "configFile", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!CLIConfig#root:member", - "docComment": "/**\n * project root dir\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "root?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "root", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [ - { - "startIndex": 1, - "endIndex": 3 - } - ] - }, - { - "kind": "Interface", - "canonicalReference": "@modern-js/libuild!CodeFrameFileOption:interface", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface CodeFrameFileOption " - } - ], - "releaseTag": "Public", - "name": "CodeFrameFileOption", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!CodeFrameFileOption#filePath:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "filePath: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "filePath", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "@modern-js/libuild!CodeFrameLineOption:interface", - "docComment": "/**\n * Compatible with esbuild\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface CodeFrameLineOption " - } - ], - "releaseTag": "Public", - "name": "CodeFrameLineOption", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!CodeFrameLineOption#filePath:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "filePath: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "filePath", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!CodeFrameLineOption#length:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "length?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "length", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!CodeFrameLineOption#lineText:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "lineText: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "lineText", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!CodeFrameLineOption#start:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "start?: " - }, - { - "kind": "Reference", - "text": "CodeFramePosition", - "canonicalReference": "@modern-js/libuild!CodeFramePosition:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "start", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "@modern-js/libuild!CodeFrameNormalOption:interface", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface CodeFrameNormalOption " - } - ], - "releaseTag": "Public", - "name": "CodeFrameNormalOption", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!CodeFrameNormalOption#end:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "end?: " - }, - { - "kind": "Reference", - "text": "CodeFramePosition", - "canonicalReference": "@modern-js/libuild!CodeFramePosition:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "end", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!CodeFrameNormalOption#fileContent:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "fileContent: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "fileContent", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!CodeFrameNormalOption#filePath:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "filePath: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "filePath", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!CodeFrameNormalOption#start:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "start?: " - }, - { - "kind": "Reference", - "text": "CodeFramePosition", - "canonicalReference": "@modern-js/libuild!CodeFramePosition:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "start", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "TypeAlias", - "canonicalReference": "@modern-js/libuild!CodeFrameOption:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type CodeFrameOption = " - }, - { - "kind": "Reference", - "text": "CodeFrameFileOption", - "canonicalReference": "@modern-js/libuild!CodeFrameFileOption:interface" - }, - { - "kind": "Content", - "text": " | " - }, - { - "kind": "Reference", - "text": "CodeFrameNormalOption", - "canonicalReference": "@modern-js/libuild!CodeFrameNormalOption:interface" - }, - { - "kind": "Content", - "text": " | " - }, - { - "kind": "Reference", - "text": "CodeFrameLineOption", - "canonicalReference": "@modern-js/libuild!CodeFrameLineOption:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "releaseTag": "Public", - "name": "CodeFrameOption", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 6 - } - }, - { - "kind": "Interface", - "canonicalReference": "@modern-js/libuild!CodeFramePosition:interface", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface CodeFramePosition " - } - ], - "releaseTag": "Public", - "name": "CodeFramePosition", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!CodeFramePosition#column:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "column?: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "column", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!CodeFramePosition#line:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "line: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "line", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Function", - "canonicalReference": "@modern-js/libuild!ConfigLoaderMesaageToLibuildError:function(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare function ConfigLoaderMesaageToLibuildError({ message, location }: " - }, - { - "kind": "Reference", - "text": "IConfigLoaderMessage", - "canonicalReference": "@modern-js/libuild!IConfigLoaderMessage:interface" - }, - { - "kind": "Content", - "text": ", isError?: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "LibuildError", - "canonicalReference": "@modern-js/libuild!LibuildError:class" - }, - { - "kind": "Content", - "text": ";" - } - ], - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "{ message, location }", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "isError", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "ConfigLoaderMesaageToLibuildError" - }, - { - "kind": "Interface", - "canonicalReference": "@modern-js/libuild!ControllerOption:interface", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface ControllerOption " - } - ], - "releaseTag": "Public", - "name": "ControllerOption", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!ControllerOption#noColor:member", - "docComment": "/**\n * No color displayed @default `false`\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "noColor?: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "noColor", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!ControllerOption#noStack:member", - "docComment": "/**\n * No stack displayed @default `true`\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "noStack?: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "noStack", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Function", - "canonicalReference": "@modern-js/libuild!defineConfig:function(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare function defineConfig(config: " - }, - { - "kind": "Reference", - "text": "UserConfig", - "canonicalReference": "@modern-js/libuild!UserConfig:interface" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "UserConfig", - "canonicalReference": "@modern-js/libuild!UserConfig:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "config", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "defineConfig" - }, - { - "kind": "Function", - "canonicalReference": "@modern-js/libuild!defineConfig:function(2)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare function defineConfig(config: " - }, - { - "kind": "Reference", - "text": "UserConfig", - "canonicalReference": "@modern-js/libuild!UserConfig:interface" - }, - { - "kind": "Content", - "text": "[]" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "UserConfig", - "canonicalReference": "@modern-js/libuild!UserConfig:interface" - }, - { - "kind": "Content", - "text": "[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "returnTypeTokenRange": { - "startIndex": 4, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 2, - "parameters": [ - { - "parameterName": "config", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - } - } - ], - "name": "defineConfig" - }, - { - "kind": "Enum", - "canonicalReference": "@modern-js/libuild!ErrorLevel:enum", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare enum ErrorLevel " - } - ], - "releaseTag": "Public", - "name": "ErrorLevel", - "members": [ - { - "kind": "EnumMember", - "canonicalReference": "@modern-js/libuild!ErrorLevel.Error:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "Error = " - }, - { - "kind": "Content", - "text": "2" - } - ], - "releaseTag": "Public", - "name": "Error", - "initializerTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "EnumMember", - "canonicalReference": "@modern-js/libuild!ErrorLevel.Ignore:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "Ignore = " - }, - { - "kind": "Content", - "text": "0" - } - ], - "releaseTag": "Public", - "name": "Ignore", - "initializerTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "EnumMember", - "canonicalReference": "@modern-js/libuild!ErrorLevel.Warn:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "Warn = " - }, - { - "kind": "Content", - "text": "1" - } - ], - "releaseTag": "Public", - "name": "Warn", - "initializerTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ] - }, - { - "kind": "Interface", - "canonicalReference": "@modern-js/libuild!EsbuildResultInfo:interface", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface EsbuildResultInfo " - } - ], - "releaseTag": "Public", - "name": "EsbuildResultInfo", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!EsbuildResultInfo#errors:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "errors: " - }, - { - "kind": "Reference", - "text": "Message", - "canonicalReference": "esbuild!Message:interface" - }, - { - "kind": "Content", - "text": "[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "errors", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!EsbuildResultInfo#warnings:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "warnings: " - }, - { - "kind": "Reference", - "text": "Message", - "canonicalReference": "esbuild!Message:interface" - }, - { - "kind": "Content", - "text": "[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "warnings", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "TypeAlias", - "canonicalReference": "@modern-js/libuild!ExtraContext:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type ExtraContext = " - }, - { - "kind": "Reference", - "text": "Record", - "canonicalReference": "!Record:type" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "releaseTag": "Public", - "name": "ExtraContext", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 3 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "@modern-js/libuild!Format:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type Format = " - }, - { - "kind": "Content", - "text": "'esm' | 'cjs' | 'umd' | 'iife'" - }, - { - "kind": "Content", - "text": ";" - } - ], - "releaseTag": "Public", - "name": "Format", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "Function", - "canonicalReference": "@modern-js/libuild!formatError:function(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare function formatError(err: " - }, - { - "kind": "Reference", - "text": "Error", - "canonicalReference": "!Error:interface" - }, - { - "kind": "Content", - "text": " | " - }, - { - "kind": "Reference", - "text": "LibuildErrorInstance", - "canonicalReference": "@modern-js/libuild!LibuildErrorInstance:interface" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "err", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 4 - } - } - ], - "name": "formatError" - }, - { - "kind": "Interface", - "canonicalReference": "@modern-js/libuild!IBuilderBase:interface", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface IBuilderBase " - } - ], - "releaseTag": "Public", - "name": "IBuilderBase", - "members": [ - { - "kind": "MethodSignature", - "canonicalReference": "@modern-js/libuild!IBuilderBase#build:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "build(): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "build" - }, - { - "kind": "MethodSignature", - "canonicalReference": "@modern-js/libuild!IBuilderBase#close:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "close(callack?: " - }, - { - "kind": "Reference", - "text": "Callback", - "canonicalReference": "@modern-js/libuild!Callback:type" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "callack", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "close" - }, - { - "kind": "MethodSignature", - "canonicalReference": "@modern-js/libuild!IBuilderBase#reBuild:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "reBuild(type: " - }, - { - "kind": "Content", - "text": "'link' | 'change'" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 5 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "type", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "reBuild" - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "@modern-js/libuild!IConfigLoaderMessage:interface", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface IConfigLoaderMessage " - } - ], - "releaseTag": "Public", - "name": "IConfigLoaderMessage", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!IConfigLoaderMessage#location:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "location?: " - }, - { - "kind": "Content", - "text": "{\n file: string;\n source: string;\n line?: number;\n column?: number;\n length?: number;\n }" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "location", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!IConfigLoaderMessage#message:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "message: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "message", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "@modern-js/libuild!IConfigLoaderOptions:interface", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface IConfigLoaderOptions " - } - ], - "releaseTag": "Public", - "name": "IConfigLoaderOptions", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!IConfigLoaderOptions#configFile:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "configFile: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "configFile", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!IConfigLoaderOptions#configKey:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "configKey: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "configKey", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!IConfigLoaderOptions#configSuffix:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "configSuffix?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "configSuffix", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!IConfigLoaderOptions#cwd:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "cwd: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "cwd", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!IConfigLoaderOptions#transformOptions:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "transformOptions?: " - }, - { - "kind": "Reference", - "text": "TransformOptions", - "canonicalReference": "esbuild!TransformOptions:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "transformOptions", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "@modern-js/libuild!IConfigLoaderResult:interface", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface IConfigLoaderResult " - } - ], - "releaseTag": "Public", - "typeParameters": [ - { - "typeParameterName": "T", - "constraintTokenRange": { - "startIndex": 0, - "endIndex": 0 - }, - "defaultTypeTokenRange": { - "startIndex": 0, - "endIndex": 0 - } - } - ], - "name": "IConfigLoaderResult", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!IConfigLoaderResult#data:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "data: " - }, - { - "kind": "Content", - "text": "T" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "data", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!IConfigLoaderResult#errors:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "errors?: " - }, - { - "kind": "Reference", - "text": "IConfigLoaderMessage", - "canonicalReference": "@modern-js/libuild!IConfigLoaderMessage:interface" - }, - { - "kind": "Content", - "text": "[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "errors", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!IConfigLoaderResult#path:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "path?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "path", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!IConfigLoaderResult#warnings:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "warnings?: " - }, - { - "kind": "Reference", - "text": "IConfigLoaderMessage", - "canonicalReference": "@modern-js/libuild!IConfigLoaderMessage:interface" - }, - { - "kind": "Content", - "text": "[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "warnings", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "@modern-js/libuild!ILibuilder:interface", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface ILibuilder " - } - ], - "releaseTag": "Public", - "name": "ILibuilder", - "members": [ - { - "kind": "MethodSignature", - "canonicalReference": "@modern-js/libuild!ILibuilder#addWatchFile:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "addWatchFile(id: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "id", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "addWatchFile" - }, - { - "kind": "MethodSignature", - "canonicalReference": "@modern-js/libuild!ILibuilder#build:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "build(): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "build" - }, - { - "kind": "MethodSignature", - "canonicalReference": "@modern-js/libuild!ILibuilder#clearErrors:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "clearErrors(): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "clearErrors" - }, - { - "kind": "MethodSignature", - "canonicalReference": "@modern-js/libuild!ILibuilder#close:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "close(callBack?: " - }, - { - "kind": "Reference", - "text": "Callback", - "canonicalReference": "@modern-js/libuild!Callback:type" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 5 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "callBack", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "close" - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!ILibuilder#compilation:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "compilation: " - }, - { - "kind": "Reference", - "text": "IBuilderBase", - "canonicalReference": "@modern-js/libuild!IBuilderBase:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "compilation", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!ILibuilder#config:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "config: " - }, - { - "kind": "Reference", - "text": "BuildConfig", - "canonicalReference": "@modern-js/libuild!BuildConfig:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "config", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "MethodSignature", - "canonicalReference": "@modern-js/libuild!ILibuilder#emitAsset:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "emitAsset(name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", chunk: " - }, - { - "kind": "Reference", - "text": "AssetChunk", - "canonicalReference": "@modern-js/libuild!AssetChunk:type" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "chunk", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "emitAsset" - }, - { - "kind": "MethodSignature", - "canonicalReference": "@modern-js/libuild!ILibuilder#emitAsset:member(2)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "emitAsset(name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", chunk: " - }, - { - "kind": "Reference", - "text": "JsChunk", - "canonicalReference": "@modern-js/libuild!JsChunk:type" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 2, - "parameters": [ - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "chunk", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "emitAsset" - }, - { - "kind": "MethodSignature", - "canonicalReference": "@modern-js/libuild!ILibuilder#emitAsset:member(3)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "emitAsset(name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", chunk: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 3, - "parameters": [ - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "chunk", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "emitAsset" - }, - { - "kind": "MethodSignature", - "canonicalReference": "@modern-js/libuild!ILibuilder#getErrors:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "getErrors(): " - }, - { - "kind": "Reference", - "text": "LibuildFailure", - "canonicalReference": "@modern-js/libuild!LibuildFailure:class" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getErrors" - }, - { - "kind": "MethodSignature", - "canonicalReference": "@modern-js/libuild!ILibuilder#getSourcemapContext:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "getSourcemapContext(path: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "ISourcemapContext", - "canonicalReference": "@modern-js/libuild!ISourcemapContext:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "path", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getSourcemapContext" - }, - { - "kind": "MethodSignature", - "canonicalReference": "@modern-js/libuild!ILibuilder#getTransformContext:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "getTransformContext(path: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "ITransformContext", - "canonicalReference": "@modern-js/libuild!ITransformContext:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "path", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getTransformContext" - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!ILibuilder#hooks:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "hooks: " - }, - { - "kind": "Reference", - "text": "ILibuilderHooks", - "canonicalReference": "@modern-js/libuild!ILibuilderHooks:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hooks", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "MethodSignature", - "canonicalReference": "@modern-js/libuild!ILibuilder#init:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "init(config: " - }, - { - "kind": "Reference", - "text": "CLIConfig", - "canonicalReference": "@modern-js/libuild!CLIConfig:interface" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 5 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "config", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "init" - }, - { - "kind": "MethodSignature", - "canonicalReference": "@modern-js/libuild!ILibuilder#loadSvgr:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "loadSvgr(path: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "<" - }, - { - "kind": "Reference", - "text": "LoadSvgrResult", - "canonicalReference": "@modern-js/libuild!~LoadSvgrResult:type" - }, - { - "kind": "Content", - "text": " | void>" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 7 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "path", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "loadSvgr" - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!ILibuilder#name:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "name?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "name", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!ILibuilder#outputChunk:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "outputChunk: " - }, - { - "kind": "Reference", - "text": "Map", - "canonicalReference": "!Map:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "outputChunk", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 5 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!ILibuilder#plugins:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "plugins: " - }, - { - "kind": "Reference", - "text": "LibuildPlugin", - "canonicalReference": "@modern-js/libuild!LibuildPlugin:interface" - }, - { - "kind": "Content", - "text": "[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "plugins", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - } - }, - { - "kind": "MethodSignature", - "canonicalReference": "@modern-js/libuild!ILibuilder#printErrors:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "printErrors(): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "printErrors" - }, - { - "kind": "MethodSignature", - "canonicalReference": "@modern-js/libuild!ILibuilder#removeError:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "removeError(...errors: " - }, - { - "kind": "Reference", - "text": "LibuildErrorInstance", - "canonicalReference": "@modern-js/libuild!LibuildErrorInstance:interface" - }, - { - "kind": "Content", - "text": "[]" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 4, - "endIndex": 5 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "errors", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - } - } - ], - "name": "removeError" - }, - { - "kind": "MethodSignature", - "canonicalReference": "@modern-js/libuild!ILibuilder#report:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "report(error: " - }, - { - "kind": "Content", - "text": "any" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "error", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "report" - }, - { - "kind": "MethodSignature", - "canonicalReference": "@modern-js/libuild!ILibuilder#resolve:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "resolve(source: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", options?: " - }, - { - "kind": "Reference", - "text": "BuilderResolveOptions", - "canonicalReference": "@modern-js/libuild!BuilderResolveOptions:interface" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "<" - }, - { - "kind": "Reference", - "text": "BuilderResolveResult", - "canonicalReference": "@modern-js/libuild!BuilderResolveResult:interface" - }, - { - "kind": "Content", - "text": ">" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 9 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "source", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "options", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "resolve" - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!ILibuilder#STAGE:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "STAGE: " - }, - { - "kind": "Reference", - "text": "ILibuilderStage", - "canonicalReference": "@modern-js/libuild!ILibuilderStage:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "STAGE", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "MethodSignature", - "canonicalReference": "@modern-js/libuild!ILibuilder#throw:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "throw(message: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", option: " - }, - { - "kind": "Reference", - "text": "LibuildErrorParams", - "canonicalReference": "@modern-js/libuild!LibuildErrorParams:type" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "message", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "option", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "throw" - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!ILibuilder#userConfig:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "userConfig: " - }, - { - "kind": "Reference", - "text": "CLIConfig", - "canonicalReference": "@modern-js/libuild!CLIConfig:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "userConfig", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!ILibuilder#version:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "version: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "version", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!ILibuilder#virtualModule:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "virtualModule: " - }, - { - "kind": "Reference", - "text": "Map", - "canonicalReference": "!Map:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "virtualModule", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!ILibuilder#watchedFiles:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "watchedFiles: " - }, - { - "kind": "Reference", - "text": "Set", - "canonicalReference": "!Set:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "watchedFiles", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "@modern-js/libuild!ILibuilderHooks:interface", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface ILibuilderHooks " - } - ], - "releaseTag": "Public", - "name": "ILibuilderHooks", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!ILibuilderHooks#endCompilation:member", - "docComment": "/**\n * After esbuild onEnd, also called by watchChange\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "endCompilation: " - }, - { - "kind": "Reference", - "text": "AsyncSeriesHook", - "canonicalReference": "@modern-js/libuild!AsyncSeriesHook:class" - }, - { - "kind": "Content", - "text": "<[" - }, - { - "kind": "Reference", - "text": "LibuildFailure", - "canonicalReference": "@modern-js/libuild!LibuildFailure:class" - }, - { - "kind": "Content", - "text": "]>" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "endCompilation", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 5 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!ILibuilderHooks#initialize:member", - "docComment": "/**\n * Asynchronous initialization. Executed after normalized `buildConfig` and `plugins`.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "initialize: " - }, - { - "kind": "Reference", - "text": "AsyncSeriesHook", - "canonicalReference": "@modern-js/libuild!AsyncSeriesHook:class" - }, - { - "kind": "Content", - "text": "<[], void>" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "initialize", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!ILibuilderHooks#load:member", - "docComment": "/**\n * Equal to esbuild#onLoad and rollup#load\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "load: " - }, - { - "kind": "Reference", - "text": "AsyncSeriesBailHook", - "canonicalReference": "@modern-js/libuild!AsyncSeriesBailHook:class" - }, - { - "kind": "Content", - "text": "<[" - }, - { - "kind": "Reference", - "text": "LoadArgs", - "canonicalReference": "@modern-js/libuild!LoadArgs:type" - }, - { - "kind": "Content", - "text": "], " - }, - { - "kind": "Reference", - "text": "LoadResult", - "canonicalReference": "@modern-js/libuild!LoadResult:type" - }, - { - "kind": "Content", - "text": " | undefined | void>" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "load", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 7 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!ILibuilderHooks#processAsset:member", - "docComment": "/**\n * Modify the chunk\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "processAsset: " - }, - { - "kind": "Reference", - "text": "AsyncSeriesWaterfallHook", - "canonicalReference": "@modern-js/libuild!AsyncSeriesWaterfallHook:class" - }, - { - "kind": "Content", - "text": "<[" - }, - { - "kind": "Reference", - "text": "Chunk", - "canonicalReference": "@modern-js/libuild!Chunk:type" - }, - { - "kind": "Content", - "text": "]>" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "processAsset", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 5 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!ILibuilderHooks#processAssets:member", - "docComment": "/**\n * Post processing for assets\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "processAssets: " - }, - { - "kind": "Reference", - "text": "AsyncSeriesHook", - "canonicalReference": "@modern-js/libuild!AsyncSeriesHook:class" - }, - { - "kind": "Content", - "text": "<[" - }, - { - "kind": "Reference", - "text": "Map", - "canonicalReference": "!Map:interface" - }, - { - "kind": "Content", - "text": ", " - }, - { - "kind": "Reference", - "text": "LibuildManifest", - "canonicalReference": "@modern-js/libuild!LibuildManifest:type" - }, - { - "kind": "Content", - "text": "]>" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "processAssets", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 9 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!ILibuilderHooks#resolve:member", - "docComment": "/**\n * Equal to esbuild#onResolve and rollup#resolveId\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "resolve: " - }, - { - "kind": "Reference", - "text": "AsyncSeriesBailHook", - "canonicalReference": "@modern-js/libuild!AsyncSeriesBailHook:class" - }, - { - "kind": "Content", - "text": "<[" - }, - { - "kind": "Reference", - "text": "ResolveArgs", - "canonicalReference": "@modern-js/libuild!ResolveArgs:type" - }, - { - "kind": "Content", - "text": "], " - }, - { - "kind": "Reference", - "text": "ResolveResult", - "canonicalReference": "@modern-js/libuild!ResolveResult:type" - }, - { - "kind": "Content", - "text": " | undefined>" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "resolve", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 7 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!ILibuilderHooks#shutdown:member", - "docComment": "/**\n * Before close\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "shutdown: " - }, - { - "kind": "Reference", - "text": "AsyncSeriesHook", - "canonicalReference": "@modern-js/libuild!AsyncSeriesHook:class" - }, - { - "kind": "Content", - "text": "<[]>" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "shutdown", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!ILibuilderHooks#startCompilation:member", - "docComment": "/**\n * After esbuild onStart, also called by watchChange\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "startCompilation: " - }, - { - "kind": "Reference", - "text": "AsyncSeriesHook", - "canonicalReference": "@modern-js/libuild!AsyncSeriesHook:class" - }, - { - "kind": "Content", - "text": "<[]>" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "startCompilation", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!ILibuilderHooks#transform:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "transform: " - }, - { - "kind": "Reference", - "text": "AsyncSeriesWaterfallHook", - "canonicalReference": "@modern-js/libuild!AsyncSeriesWaterfallHook:class" - }, - { - "kind": "Content", - "text": "<" - }, - { - "kind": "Reference", - "text": "Source", - "canonicalReference": "@modern-js/libuild!Source:type" - }, - { - "kind": "Content", - "text": ">" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "transform", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 5 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!ILibuilderHooks#watchChange:member", - "docComment": "/**\n * Watch related hook\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "watchChange: " - }, - { - "kind": "Reference", - "text": "SyncHook", - "canonicalReference": "@modern-js/libuild!SyncHook:class" - }, - { - "kind": "Content", - "text": "<[string[]]>" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "watchChange", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "@modern-js/libuild!ILibuilderStage:interface", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare interface ILibuilderStage " - } - ], - "releaseTag": "Public", - "name": "ILibuilderStage", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!ILibuilderStage#POST_INTERNAL:member", - "docComment": "/**\n * Execute After Internal Plugin\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "POST_INTERNAL: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "POST_INTERNAL", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!ILibuilderStage#PRE_INTERNAL:member", - "docComment": "/**\n * Execute Before Internal Plugin\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "PRE_INTERNAL: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "PRE_INTERNAL", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Class", - "canonicalReference": "@modern-js/libuild!ILogger:class", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare abstract class ILogger " - } - ], - "releaseTag": "Public", - "name": "ILogger", - "members": [ - { - "kind": "Method", - "canonicalReference": "@modern-js/libuild!ILogger#debug:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "abstract debug(...msg: " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "msg", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "debug" - }, - { - "kind": "Method", - "canonicalReference": "@modern-js/libuild!ILogger#error:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "abstract error(...msg: " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "msg", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "error" - }, - { - "kind": "Method", - "canonicalReference": "@modern-js/libuild!ILogger#info:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "abstract info(...msg: " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "msg", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "info" - }, - { - "kind": "Method", - "canonicalReference": "@modern-js/libuild!ILogger#time:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "abstract time(label: " - }, - { - "kind": "Reference", - "text": "Label", - "canonicalReference": "@modern-js/libuild!~Label:type" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "label", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "time" - }, - { - "kind": "Method", - "canonicalReference": "@modern-js/libuild!ILogger#timeEnd:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "abstract timeEnd(label: " - }, - { - "kind": "Reference", - "text": "Label", - "canonicalReference": "@modern-js/libuild!~Label:type" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "label", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "timeEnd" - }, - { - "kind": "Property", - "canonicalReference": "@modern-js/libuild!ILogger#timesLog:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "abstract timesLog: " - }, - { - "kind": "Reference", - "text": "Map", - "canonicalReference": "!Map:interface" - }, - { - "kind": "Content", - "text": "<" - }, - { - "kind": "Reference", - "text": "Label", - "canonicalReference": "@modern-js/libuild!~Label:type" - }, - { - "kind": "Content", - "text": ", number>" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "timesLog", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 5 - }, - "isStatic": false - }, - { - "kind": "Method", - "canonicalReference": "@modern-js/libuild!ILogger#warn:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "abstract warn(...msg: " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "msg", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "warn" - } - ], - "implementsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "@modern-js/libuild!ILoggerOptions:interface", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface ILoggerOptions " - } - ], - "releaseTag": "Public", - "name": "ILoggerOptions", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!ILoggerOptions#level:member", - "docComment": "/**\n * @default 'info'\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "level?: " - }, - { - "kind": "Reference", - "text": "LogLevel", - "canonicalReference": "@modern-js/libuild!LogLevel:type" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "level", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!ILoggerOptions#timestamp:member", - "docComment": "/**\n * @default false\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "timestamp?: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "timestamp", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Function", - "canonicalReference": "@modern-js/libuild!insertSpace:function(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare function insertSpace(rawLines: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", line: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", width: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "returnTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "rawLines", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "line", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "width", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ], - "name": "insertSpace" - }, - { - "kind": "Function", - "canonicalReference": "@modern-js/libuild!isLibuildErrorInstance:function(1)", - "docComment": "/**\n * we can't use instanceof LibuildError, because it may not be an singleton class\n *\n * @param err - \n *\n * @returns \n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare function isLibuildErrorInstance(err: " - }, - { - "kind": "Content", - "text": "unknown" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "err", - "canonicalReference": "@modern-js/libuild!~err" - }, - { - "kind": "Content", - "text": " is " - }, - { - "kind": "Reference", - "text": "LibuildError", - "canonicalReference": "@modern-js/libuild!LibuildError:class" - }, - { - "kind": "Content", - "text": ";" - } - ], - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "err", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "isLibuildErrorInstance" - }, - { - "kind": "Interface", - "canonicalReference": "@modern-js/libuild!ISourcemapContext:interface", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface ISourcemapContext " - } - ], - "releaseTag": "Public", - "name": "ISourcemapContext", - "members": [ - { - "kind": "MethodSignature", - "canonicalReference": "@modern-js/libuild!ISourcemapContext#addSourceMap:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "addSourceMap(pluginId: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", map?: " - }, - { - "kind": "Reference", - "text": "SourceMap", - "canonicalReference": "@modern-js/libuild!SourceMap:interface" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "pluginId", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "map", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "addSourceMap" - }, - { - "kind": "MethodSignature", - "canonicalReference": "@modern-js/libuild!ISourcemapContext#genPluginId:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "genPluginId(id: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "id", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "genPluginId" - }, - { - "kind": "MethodSignature", - "canonicalReference": "@modern-js/libuild!ISourcemapContext#getInlineSourceMap:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "getInlineSourceMap(): " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getInlineSourceMap" - }, - { - "kind": "MethodSignature", - "canonicalReference": "@modern-js/libuild!ISourcemapContext#getSourceMap:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "getSourceMap(): " - }, - { - "kind": "Reference", - "text": "SourceMap", - "canonicalReference": "@modern-js/libuild!SourceMap:interface" - }, - { - "kind": "Content", - "text": " | undefined" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getSourceMap" - }, - { - "kind": "MethodSignature", - "canonicalReference": "@modern-js/libuild!ISourcemapContext#getSourceMapChain:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "getSourceMapChain(): " - }, - { - "kind": "Reference", - "text": "SourceMap", - "canonicalReference": "@modern-js/libuild!SourceMap:interface" - }, - { - "kind": "Content", - "text": "[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getSourceMapChain" - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "@modern-js/libuild!ITransformContext:interface", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface ITransformContext extends " - }, - { - "kind": "Reference", - "text": "ISourcemapContext", - "canonicalReference": "@modern-js/libuild!ISourcemapContext:interface" - }, - { - "kind": "Content", - "text": " " - } - ], - "releaseTag": "Public", - "name": "ITransformContext", - "members": [ - { - "kind": "MethodSignature", - "canonicalReference": "@modern-js/libuild!ITransformContext#addTransformResult:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "addTransformResult(pluginId: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", result: " - }, - { - "kind": "Reference", - "text": "CacheValue", - "canonicalReference": "@modern-js/libuild!CacheValue:interface" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "pluginId", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "result", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "addTransformResult" - }, - { - "kind": "MethodSignature", - "canonicalReference": "@modern-js/libuild!ITransformContext#getValidCache:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "getValidCache(pluginId: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ", code: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "undefined | " - }, - { - "kind": "Reference", - "text": "CacheValue", - "canonicalReference": "@modern-js/libuild!CacheValue:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 7 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "pluginId", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "code", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "getValidCache" - } - ], - "extendsTokenRanges": [ - { - "startIndex": 1, - "endIndex": 3 - } - ] - }, - { - "kind": "TypeAlias", - "canonicalReference": "@modern-js/libuild!JsChunk:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type JsChunk = " - }, - { - "kind": "Content", - "text": "{\n type: 'chunk';\n contents: string;\n fileName: string;\n originalFileName?: string;\n map?: " - }, - { - "kind": "Reference", - "text": "SourceMap", - "canonicalReference": "@modern-js/libuild!SourceMap:interface" - }, - { - "kind": "Content", - "text": ";\n entryPoint?: string;\n modules?: " - }, - { - "kind": "Reference", - "text": "Record", - "canonicalReference": "!Record:type" - }, - { - "kind": "Content", - "text": ";\n isEntry: boolean;\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "releaseTag": "Public", - "name": "JsChunk", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 6 - } - }, - { - "kind": "Class", - "canonicalReference": "@modern-js/libuild!Libuilder:class", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare class Libuilder implements " - }, - { - "kind": "Reference", - "text": "ILibuilder", - "canonicalReference": "@modern-js/libuild!ILibuilder:interface" - }, - { - "kind": "Content", - "text": " " - } - ], - "releaseTag": "Public", - "name": "Libuilder", - "members": [ - { - "kind": "Method", - "canonicalReference": "@modern-js/libuild!Libuilder#addWatchFile:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "addWatchFile(id: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "id", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "addWatchFile" - }, - { - "kind": "Method", - "canonicalReference": "@modern-js/libuild!Libuilder#build:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "build(): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "build" - }, - { - "kind": "Method", - "canonicalReference": "@modern-js/libuild!Libuilder#clearErrors:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "clearErrors(): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "clearErrors" - }, - { - "kind": "Method", - "canonicalReference": "@modern-js/libuild!Libuilder#close:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "close(callback?: " - }, - { - "kind": "Reference", - "text": "Callback", - "canonicalReference": "@modern-js/libuild!Callback:type" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 5 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "callback", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "close" - }, - { - "kind": "Property", - "canonicalReference": "@modern-js/libuild!Libuilder#compilation:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "compilation: " - }, - { - "kind": "Reference", - "text": "IBuilderBase", - "canonicalReference": "@modern-js/libuild!IBuilderBase:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "compilation", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "isStatic": false - }, - { - "kind": "Property", - "canonicalReference": "@modern-js/libuild!Libuilder#config:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "config: " - }, - { - "kind": "Reference", - "text": "BuildConfig", - "canonicalReference": "@modern-js/libuild!BuildConfig:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "config", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "isStatic": false - }, - { - "kind": "Method", - "canonicalReference": "@modern-js/libuild!Libuilder.create:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "static create(config?: " - }, - { - "kind": "Reference", - "text": "CLIConfig", - "canonicalReference": "@modern-js/libuild!CLIConfig:interface" - }, - { - "kind": "Content", - "text": ", name?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "<" - }, - { - "kind": "Reference", - "text": "Libuilder", - "canonicalReference": "@modern-js/libuild!Libuilder:class" - }, - { - "kind": "Content", - "text": ">" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "isStatic": true, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 9 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "config", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "create" - }, - { - "kind": "Method", - "canonicalReference": "@modern-js/libuild!Libuilder#emitAsset:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "emitAsset(name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", chunk: " - }, - { - "kind": "Content", - "text": "string | " - }, - { - "kind": "Reference", - "text": "Chunk", - "canonicalReference": "@modern-js/libuild!Chunk:type" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 6, - "endIndex": 7 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "chunk", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 5 - } - } - ], - "name": "emitAsset" - }, - { - "kind": "Method", - "canonicalReference": "@modern-js/libuild!Libuilder#getErrors:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "getErrors(): " - }, - { - "kind": "Reference", - "text": "LibuildFailure", - "canonicalReference": "@modern-js/libuild!LibuildFailure:class" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "getErrors" - }, - { - "kind": "Method", - "canonicalReference": "@modern-js/libuild!Libuilder#getSourcemapContext:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "getSourcemapContext(path: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "SourcemapContext", - "canonicalReference": "@modern-js/libuild!SourcemapContext:class" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "path", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getSourcemapContext" - }, - { - "kind": "Method", - "canonicalReference": "@modern-js/libuild!Libuilder#getTransformContext:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "getTransformContext(path: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "TransformContext", - "canonicalReference": "@modern-js/libuild!TransformContext:class" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "path", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "getTransformContext" - }, - { - "kind": "Property", - "canonicalReference": "@modern-js/libuild!Libuilder#hooks:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "hooks: " - }, - { - "kind": "Reference", - "text": "ILibuilderHooks", - "canonicalReference": "@modern-js/libuild!ILibuilderHooks:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "hooks", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "isStatic": false - }, - { - "kind": "Method", - "canonicalReference": "@modern-js/libuild!Libuilder#init:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "init(config: " - }, - { - "kind": "Reference", - "text": "CLIConfig", - "canonicalReference": "@modern-js/libuild!CLIConfig:interface" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 5 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "config", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "init" - }, - { - "kind": "Method", - "canonicalReference": "@modern-js/libuild!Libuilder#loadSvgr:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "loadSvgr(path: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 5 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "path", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "loadSvgr" - }, - { - "kind": "Property", - "canonicalReference": "@modern-js/libuild!Libuilder#name:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "name?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "name", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "isStatic": false - }, - { - "kind": "Property", - "canonicalReference": "@modern-js/libuild!Libuilder#outputChunk:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "outputChunk: " - }, - { - "kind": "Reference", - "text": "Map", - "canonicalReference": "!Map:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "outputChunk", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 5 - }, - "isStatic": false - }, - { - "kind": "Property", - "canonicalReference": "@modern-js/libuild!Libuilder#plugins:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "plugins: " - }, - { - "kind": "Reference", - "text": "LibuildPlugin", - "canonicalReference": "@modern-js/libuild!LibuildPlugin:interface" - }, - { - "kind": "Content", - "text": "[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "plugins", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - }, - "isStatic": false - }, - { - "kind": "Method", - "canonicalReference": "@modern-js/libuild!Libuilder#printErrors:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "printErrors(): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "printErrors" - }, - { - "kind": "Method", - "canonicalReference": "@modern-js/libuild!Libuilder#removeError:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "removeError(...errors: " - }, - { - "kind": "Reference", - "text": "LibuildError", - "canonicalReference": "@modern-js/libuild!LibuildError:class" - }, - { - "kind": "Content", - "text": "[]" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 4, - "endIndex": 5 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "errors", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - } - } - ], - "name": "removeError" - }, - { - "kind": "Method", - "canonicalReference": "@modern-js/libuild!Libuilder#report:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "report(err: " - }, - { - "kind": "Content", - "text": "any" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "err", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "report" - }, - { - "kind": "Method", - "canonicalReference": "@modern-js/libuild!Libuilder#resolve:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "resolve(source: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", opt: " - }, - { - "kind": "Reference", - "text": "BuilderResolveOptions", - "canonicalReference": "@modern-js/libuild!BuilderResolveOptions:interface" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "<" - }, - { - "kind": "Reference", - "text": "BuilderResolveResult", - "canonicalReference": "@modern-js/libuild!BuilderResolveResult:interface" - }, - { - "kind": "Content", - "text": ">" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 9 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "source", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "opt", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "resolve" - }, - { - "kind": "Method", - "canonicalReference": "@modern-js/libuild!Libuilder.run:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "static run(config?: " - }, - { - "kind": "Reference", - "text": "CLIConfig", - "canonicalReference": "@modern-js/libuild!CLIConfig:interface" - }, - { - "kind": "Content", - "text": ", name?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "<" - }, - { - "kind": "Reference", - "text": "Libuilder", - "canonicalReference": "@modern-js/libuild!Libuilder:class" - }, - { - "kind": "Content", - "text": " | " - }, - { - "kind": "Reference", - "text": "Libuilder", - "canonicalReference": "@modern-js/libuild!Libuilder:class" - }, - { - "kind": "Content", - "text": "[]>" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "isStatic": true, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 11 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "config", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "name", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "run" - }, - { - "kind": "Property", - "canonicalReference": "@modern-js/libuild!Libuilder#STAGE:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "STAGE: " - }, - { - "kind": "Reference", - "text": "ILibuilderStage", - "canonicalReference": "@modern-js/libuild!ILibuilderStage:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "STAGE", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "isStatic": false - }, - { - "kind": "Method", - "canonicalReference": "@modern-js/libuild!Libuilder#throw:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "throw(message: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", opts?: " - }, - { - "kind": "Reference", - "text": "LibuildErrorParams", - "canonicalReference": "@modern-js/libuild!LibuildErrorParams:type" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "message", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "opts", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "throw" - }, - { - "kind": "Property", - "canonicalReference": "@modern-js/libuild!Libuilder#userConfig:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "userConfig: " - }, - { - "kind": "Reference", - "text": "CLIConfig", - "canonicalReference": "@modern-js/libuild!CLIConfig:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "userConfig", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "isStatic": false - }, - { - "kind": "Property", - "canonicalReference": "@modern-js/libuild!Libuilder#version:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "version: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "version", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "isStatic": false - }, - { - "kind": "Property", - "canonicalReference": "@modern-js/libuild!Libuilder#virtualModule:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "virtualModule: " - }, - { - "kind": "Reference", - "text": "Map", - "canonicalReference": "!Map:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "virtualModule", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - }, - "isStatic": false - }, - { - "kind": "Property", - "canonicalReference": "@modern-js/libuild!Libuilder#watchedFiles:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "watchedFiles: " - }, - { - "kind": "Reference", - "text": "Set", - "canonicalReference": "!Set:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "watchedFiles", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - }, - "isStatic": false - } - ], - "implementsTokenRanges": [ - { - "startIndex": 1, - "endIndex": 3 - } - ] - }, - { - "kind": "Class", - "canonicalReference": "@modern-js/libuild!LibuildError:class", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare class LibuildError extends " - }, - { - "kind": "Reference", - "text": "Error", - "canonicalReference": "!Error:interface" - }, - { - "kind": "Content", - "text": " " - }, - { - "kind": "Content", - "text": "implements " - }, - { - "kind": "Reference", - "text": "LibuildErrorInstance", - "canonicalReference": "@modern-js/libuild!LibuildErrorInstance:interface" - }, - { - "kind": "Content", - "text": " " - } - ], - "releaseTag": "Public", - "name": "LibuildError", - "members": [ - { - "kind": "Constructor", - "canonicalReference": "@modern-js/libuild!LibuildError:constructor(1)", - "docComment": "/**\n * Constructs a new instance of the `LibuildError` class\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "constructor(code: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", message: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ", opts?: " - }, - { - "kind": "Reference", - "text": "LibuildErrorParams", - "canonicalReference": "@modern-js/libuild!LibuildErrorParams:type" - }, - { - "kind": "Content", - "text": ");" - } - ], - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "code", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "message", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - }, - { - "parameterName": "opts", - "parameterTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - } - } - ] - }, - { - "kind": "Property", - "canonicalReference": "@modern-js/libuild!LibuildError#code:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "readonly code: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "code", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "isStatic": false - }, - { - "kind": "Method", - "canonicalReference": "@modern-js/libuild!LibuildError.from:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "static from(err: " - }, - { - "kind": "Content", - "text": "unknown" - }, - { - "kind": "Content", - "text": ", opt?: " - }, - { - "kind": "Reference", - "text": "LibuildErrorParams", - "canonicalReference": "@modern-js/libuild!LibuildErrorParams:type" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "LibuildError", - "canonicalReference": "@modern-js/libuild!LibuildError:class" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "isStatic": true, - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "err", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "opt", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "from" - }, - { - "kind": "Property", - "canonicalReference": "@modern-js/libuild!LibuildError#hint:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "readonly hint?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "hint", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "isStatic": false - }, - { - "kind": "Method", - "canonicalReference": "@modern-js/libuild!LibuildError#isSame:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "isSame(error: " - }, - { - "kind": "Reference", - "text": "LibuildError", - "canonicalReference": "@modern-js/libuild!LibuildError:class" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "error", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "isSame" - }, - { - "kind": "Property", - "canonicalReference": "@modern-js/libuild!LibuildError#level:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "get level(): " - }, - { - "kind": "Content", - "text": "\"Ignore\" | \"Warn\" | \"Error\"" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "level", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "isStatic": false - }, - { - "kind": "Property", - "canonicalReference": "@modern-js/libuild!LibuildError#path:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "get path(): " - }, - { - "kind": "Content", - "text": "string | undefined" - }, - { - "kind": "Content", - "text": ";" - }, - { - "kind": "Content", - "text": "\n\nset path(file: string | undefined);" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "path", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "isStatic": false - }, - { - "kind": "Property", - "canonicalReference": "@modern-js/libuild!LibuildError#prefixCode:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "readonly prefixCode: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "prefixCode", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "isStatic": false - }, - { - "kind": "Property", - "canonicalReference": "@modern-js/libuild!LibuildError#reason:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "readonly reason?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "reason", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "isStatic": false - }, - { - "kind": "Property", - "canonicalReference": "@modern-js/libuild!LibuildError#referenceUrl:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "readonly referenceUrl?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "referenceUrl", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "isStatic": false - }, - { - "kind": "Method", - "canonicalReference": "@modern-js/libuild!LibuildError#setCodeFrame:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "setCodeFrame(opt: " - }, - { - "kind": "Reference", - "text": "CodeFrameOption", - "canonicalReference": "@modern-js/libuild!CodeFrameOption:type" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "opt", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "setCodeFrame" - }, - { - "kind": "Method", - "canonicalReference": "@modern-js/libuild!LibuildError#setControllerOption:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "setControllerOption(opt: " - }, - { - "kind": "Reference", - "text": "ControllerOption", - "canonicalReference": "@modern-js/libuild!ControllerOption:interface" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "opt", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "setControllerOption" - }, - { - "kind": "Method", - "canonicalReference": "@modern-js/libuild!LibuildError#toString:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "toString(): " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "toString" - } - ], - "extendsTokenRange": { - "startIndex": 1, - "endIndex": 3 - }, - "implementsTokenRanges": [ - { - "startIndex": 4, - "endIndex": 6 - } - ] - }, - { - "kind": "Interface", - "canonicalReference": "@modern-js/libuild!LibuildErrorInstance:interface", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface LibuildErrorInstance " - } - ], - "releaseTag": "Public", - "name": "LibuildErrorInstance", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!LibuildErrorInstance#code:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "code: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "code", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!LibuildErrorInstance#hint:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "hint?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "hint", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!LibuildErrorInstance#level:member", - "docComment": "/**\n * @default`'Error'`\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "level?: " - }, - { - "kind": "Content", - "text": "keyof typeof " - }, - { - "kind": "Reference", - "text": "ErrorLevel", - "canonicalReference": "@modern-js/libuild!ErrorLevel:enum" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "level", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!LibuildErrorInstance#message:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "message: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "message", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!LibuildErrorInstance#path:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "path?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "path", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!LibuildErrorInstance#prefixCode:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "prefixCode?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "prefixCode", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!LibuildErrorInstance#reason:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "reason?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "reason", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!LibuildErrorInstance#referenceUrl:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "referenceUrl?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "referenceUrl", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "MethodSignature", - "canonicalReference": "@modern-js/libuild!LibuildErrorInstance#setCodeFrame:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "setCodeFrame(opt: " - }, - { - "kind": "Reference", - "text": "CodeFrameOption", - "canonicalReference": "@modern-js/libuild!CodeFrameOption:type" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "opt", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "setCodeFrame" - }, - { - "kind": "MethodSignature", - "canonicalReference": "@modern-js/libuild!LibuildErrorInstance#setControllerOption:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "setControllerOption(opt: " - }, - { - "kind": "Reference", - "text": "ControllerOption", - "canonicalReference": "@modern-js/libuild!ControllerOption:interface" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "opt", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "setControllerOption" - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!LibuildErrorInstance#stack:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "stack?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "stack", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "TypeAlias", - "canonicalReference": "@modern-js/libuild!LibuildErrorParams:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type LibuildErrorParams = " - }, - { - "kind": "Reference", - "text": "Omit", - "canonicalReference": "!Omit:type" - }, - { - "kind": "Content", - "text": "<" - }, - { - "kind": "Reference", - "text": "LibuildErrorInstance", - "canonicalReference": "@modern-js/libuild!LibuildErrorInstance:interface" - }, - { - "kind": "Content", - "text": ", 'code' | 'message' | 'path' | 'setControllerOption' | 'setCodeFrame' | 'toOverlayPayload'> & {\n code?: string;\n controller?: " - }, - { - "kind": "Reference", - "text": "ControllerOption", - "canonicalReference": "@modern-js/libuild!ControllerOption:interface" - }, - { - "kind": "Content", - "text": ";\n codeFrame?: " - }, - { - "kind": "Reference", - "text": "CodeFrameOption", - "canonicalReference": "@modern-js/libuild!CodeFrameOption:type" - }, - { - "kind": "Content", - "text": ";\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "releaseTag": "Public", - "name": "LibuildErrorParams", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 9 - } - }, - { - "kind": "Class", - "canonicalReference": "@modern-js/libuild!LibuildFailure:class", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare class LibuildFailure extends " - }, - { - "kind": "Reference", - "text": "Error", - "canonicalReference": "!Error:interface" - }, - { - "kind": "Content", - "text": " " - } - ], - "releaseTag": "Public", - "name": "LibuildFailure", - "members": [ - { - "kind": "Constructor", - "canonicalReference": "@modern-js/libuild!LibuildFailure:constructor(1)", - "docComment": "/**\n * Constructs a new instance of the `LibuildFailure` class\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "constructor(errors: " - }, - { - "kind": "Reference", - "text": "LibuildErrorInstance", - "canonicalReference": "@modern-js/libuild!LibuildErrorInstance:interface" - }, - { - "kind": "Content", - "text": "[]" - }, - { - "kind": "Content", - "text": ", warnings: " - }, - { - "kind": "Reference", - "text": "LibuildErrorInstance", - "canonicalReference": "@modern-js/libuild!LibuildErrorInstance:interface" - }, - { - "kind": "Content", - "text": "[]" - }, - { - "kind": "Content", - "text": ", logLevel: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ");" - } - ], - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "errors", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - } - }, - { - "parameterName": "warnings", - "parameterTypeTokenRange": { - "startIndex": 4, - "endIndex": 6 - } - }, - { - "parameterName": "logLevel", - "parameterTypeTokenRange": { - "startIndex": 7, - "endIndex": 8 - } - } - ] - }, - { - "kind": "Property", - "canonicalReference": "@modern-js/libuild!LibuildFailure#errors:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "readonly errors: " - }, - { - "kind": "Reference", - "text": "LibuildErrorInstance", - "canonicalReference": "@modern-js/libuild!LibuildErrorInstance:interface" - }, - { - "kind": "Content", - "text": "[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "errors", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - }, - "isStatic": false - }, - { - "kind": "Property", - "canonicalReference": "@modern-js/libuild!LibuildFailure#logLevel:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "readonly logLevel: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "logLevel", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "isStatic": false - }, - { - "kind": "Method", - "canonicalReference": "@modern-js/libuild!LibuildFailure#toString:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "toString(): " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "isStatic": false, - "returnTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [], - "name": "toString" - }, - { - "kind": "Property", - "canonicalReference": "@modern-js/libuild!LibuildFailure#warnings:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "readonly warnings: " - }, - { - "kind": "Reference", - "text": "LibuildErrorInstance", - "canonicalReference": "@modern-js/libuild!LibuildErrorInstance:interface" - }, - { - "kind": "Content", - "text": "[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "warnings", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - }, - "isStatic": false - } - ], - "extendsTokenRange": { - "startIndex": 1, - "endIndex": 3 - }, - "implementsTokenRanges": [] - }, - { - "kind": "TypeAlias", - "canonicalReference": "@modern-js/libuild!LibuildManifest:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type LibuildManifest = " - }, - { - "kind": "Content", - "text": "{\n metafile: " - }, - { - "kind": "Reference", - "text": "Metafile", - "canonicalReference": "esbuild!Metafile:interface" - }, - { - "kind": "Content", - "text": ";\n config: " - }, - { - "kind": "Reference", - "text": "BuildOptions", - "canonicalReference": "esbuild!BuildOptions:interface" - }, - { - "kind": "Content", - "text": ";\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "releaseTag": "Public", - "name": "LibuildManifest", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 6 - } - }, - { - "kind": "Interface", - "canonicalReference": "@modern-js/libuild!LibuildPlugin:interface", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface LibuildPlugin " - } - ], - "releaseTag": "Public", - "typeParameters": [ - { - "typeParameterName": "T", - "constraintTokenRange": { - "startIndex": 1, - "endIndex": 3 - }, - "defaultTypeTokenRange": { - "startIndex": 4, - "endIndex": 5 - } - } - ], - "name": "LibuildPlugin", - "members": [ - { - "kind": "MethodSignature", - "canonicalReference": "@modern-js/libuild!LibuildPlugin#apply:member(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "apply(compiler: " - }, - { - "kind": "Reference", - "text": "SafeMerge", - "canonicalReference": "@modern-js/libuild!SafeMerge:type" - }, - { - "kind": "Content", - "text": "<" - }, - { - "kind": "Reference", - "text": "ILibuilder", - "canonicalReference": "@modern-js/libuild!ILibuilder:interface" - }, - { - "kind": "Content", - "text": ", T>" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "returnTypeTokenRange": { - "startIndex": 6, - "endIndex": 7 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "compiler", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 5 - } - } - ], - "name": "apply" - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!LibuildPlugin#name:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "name: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "name", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "TypeAlias", - "canonicalReference": "@modern-js/libuild!LoadArgs:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type LoadArgs = " - }, - { - "kind": "Reference", - "text": "Pick", - "canonicalReference": "!Pick:type" - }, - { - "kind": "Content", - "text": "<" - }, - { - "kind": "Reference", - "text": "OnLoadArgs", - "canonicalReference": "esbuild!OnLoadArgs:interface" - }, - { - "kind": "Content", - "text": ", 'path'> & " - }, - { - "kind": "Reference", - "text": "Pick", - "canonicalReference": "!Pick:type" - }, - { - "kind": "Content", - "text": "<" - }, - { - "kind": "Reference", - "text": "OnResolveResult", - "canonicalReference": "esbuild!OnResolveResult:interface" - }, - { - "kind": "Content", - "text": ", 'pluginData'>" - }, - { - "kind": "Content", - "text": ";" - } - ], - "releaseTag": "Public", - "name": "LoadArgs", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 9 - } - }, - { - "kind": "Function", - "canonicalReference": "@modern-js/libuild!loadConfig:function(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare function loadConfig(config: " - }, - { - "kind": "Reference", - "text": "CLIConfig", - "canonicalReference": "@modern-js/libuild!CLIConfig:interface" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "<" - }, - { - "kind": "Reference", - "text": "CLIConfig", - "canonicalReference": "@modern-js/libuild!CLIConfig:interface" - }, - { - "kind": "Content", - "text": " | " - }, - { - "kind": "Reference", - "text": "CLIConfig", - "canonicalReference": "@modern-js/libuild!CLIConfig:interface" - }, - { - "kind": "Content", - "text": "[]>" - }, - { - "kind": "Content", - "text": ";" - } - ], - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 9 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "config", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "loadConfig" - }, - { - "kind": "Function", - "canonicalReference": "@modern-js/libuild!loadRawConfig:function(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare function loadRawConfig" - }, - { - "kind": "Content", - "text": ">(opts: " - }, - { - "kind": "Reference", - "text": "IConfigLoaderOptions", - "canonicalReference": "@modern-js/libuild!IConfigLoaderOptions:interface" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "<" - }, - { - "kind": "Reference", - "text": "IConfigLoaderResult", - "canonicalReference": "@modern-js/libuild!IConfigLoaderResult:interface" - }, - { - "kind": "Content", - "text": ">" - }, - { - "kind": "Content", - "text": ";" - } - ], - "returnTypeTokenRange": { - "startIndex": 6, - "endIndex": 10 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "opts", - "parameterTypeTokenRange": { - "startIndex": 4, - "endIndex": 5 - } - } - ], - "typeParameters": [ - { - "typeParameterName": "T", - "constraintTokenRange": { - "startIndex": 0, - "endIndex": 0 - }, - "defaultTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - } - } - ], - "name": "loadRawConfig" - }, - { - "kind": "TypeAlias", - "canonicalReference": "@modern-js/libuild!LoadResult:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type LoadResult = " - }, - { - "kind": "Reference", - "text": "Pick", - "canonicalReference": "!Pick:type" - }, - { - "kind": "Content", - "text": "<" - }, - { - "kind": "Reference", - "text": "OnLoadResult", - "canonicalReference": "esbuild!OnLoadResult:interface" - }, - { - "kind": "Content", - "text": ", 'contents' | 'loader' | 'resolveDir'> & {\n map?: " - }, - { - "kind": "Reference", - "text": "SourceMap", - "canonicalReference": "@modern-js/libuild!SourceMap:interface" - }, - { - "kind": "Content", - "text": ";\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "releaseTag": "Public", - "name": "LoadResult", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 7 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "@modern-js/libuild!LogLevel:type", - "docComment": "/**\n * Options for log level.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type LogLevel = " - }, - { - "kind": "Content", - "text": "'silent' | 'error' | 'warning' | 'info' | 'debug' | 'verbose'" - }, - { - "kind": "Content", - "text": ";" - } - ], - "releaseTag": "Public", - "name": "LogLevel", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "@modern-js/libuild!PostcssOptions:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type PostcssOptions = " - }, - { - "kind": "Content", - "text": "{\n processOptions?: " - }, - { - "kind": "Reference", - "text": "ProcessOptions", - "canonicalReference": "postcss!ProcessOptions:interface" - }, - { - "kind": "Content", - "text": ";\n plugins?: " - }, - { - "kind": "Reference", - "text": "AcceptedPlugin", - "canonicalReference": "postcss!AcceptedPlugin:type" - }, - { - "kind": "Content", - "text": "[];\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "releaseTag": "Public", - "name": "PostcssOptions", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 6 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "@modern-js/libuild!Redirect:type", - "docComment": "/**\n * @experimental\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type Redirect = " - }, - { - "kind": "Content", - "text": "{\n alias?: boolean;\n style?: boolean;\n asset?: boolean;\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "releaseTag": "Public", - "name": "Redirect", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "@modern-js/libuild!Resolve:type", - "docComment": "/**\n * Options for the resolver.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type Resolve = " - }, - { - "kind": "Content", - "text": "{\n alias?: " - }, - { - "kind": "Reference", - "text": "Record", - "canonicalReference": "!Record:type" - }, - { - "kind": "Content", - "text": ";\n mainFields?: string[];\n mainFiles?: string[];\n preferRelative?: boolean;\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "releaseTag": "Public", - "name": "Resolve", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 4 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "@modern-js/libuild!ResolveArgs:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type ResolveArgs = " - }, - { - "kind": "Reference", - "text": "Pick", - "canonicalReference": "!Pick:type" - }, - { - "kind": "Content", - "text": "<" - }, - { - "kind": "Reference", - "text": "OnResolveArgs", - "canonicalReference": "esbuild!OnResolveArgs:interface" - }, - { - "kind": "Content", - "text": ", 'importer' | 'path' | 'resolveDir' | 'kind'>" - }, - { - "kind": "Content", - "text": ";" - } - ], - "releaseTag": "Public", - "name": "ResolveArgs", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 5 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "@modern-js/libuild!ResolveNormalized:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type ResolveNormalized = " - }, - { - "kind": "Reference", - "text": "Required", - "canonicalReference": "!Required:type" - }, - { - "kind": "Content", - "text": "<" - }, - { - "kind": "Reference", - "text": "Resolve", - "canonicalReference": "@modern-js/libuild!Resolve:type" - }, - { - "kind": "Content", - "text": ">" - }, - { - "kind": "Content", - "text": ";" - } - ], - "releaseTag": "Public", - "name": "ResolveNormalized", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 5 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "@modern-js/libuild!ResolveResult:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type ResolveResult = " - }, - { - "kind": "Reference", - "text": "Pick", - "canonicalReference": "!Pick:type" - }, - { - "kind": "Content", - "text": "<" - }, - { - "kind": "Reference", - "text": "OnResolveResult", - "canonicalReference": "esbuild!OnResolveResult:interface" - }, - { - "kind": "Content", - "text": ", 'path' | 'external' | 'namespace' | 'sideEffects' | 'suffix'>" - }, - { - "kind": "Content", - "text": ";" - } - ], - "releaseTag": "Public", - "name": "ResolveResult", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 5 - } - }, - { - "kind": "Function", - "canonicalReference": "@modern-js/libuild!run_2:function(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare function run(userArgs?: " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 5 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "userArgs", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "run_2" - }, - { - "kind": "TypeAlias", - "canonicalReference": "@modern-js/libuild!SafeMerge:type", - "docComment": "/**\n * Only merge additional fields from U to T.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type SafeMerge = " - }, - { - "kind": "Content", - "text": "T & {\n [K in keyof U as " - }, - { - "kind": "Reference", - "text": "Exclude", - "canonicalReference": "!Exclude:type" - }, - { - "kind": "Content", - "text": "]: U[K];\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "releaseTag": "Public", - "name": "SafeMerge", - "typeParameters": [ - { - "typeParameterName": "T", - "constraintTokenRange": { - "startIndex": 0, - "endIndex": 0 - }, - "defaultTypeTokenRange": { - "startIndex": 0, - "endIndex": 0 - } - }, - { - "typeParameterName": "U", - "constraintTokenRange": { - "startIndex": 0, - "endIndex": 0 - }, - "defaultTypeTokenRange": { - "startIndex": 0, - "endIndex": 0 - } - } - ], - "typeTokenRange": { - "startIndex": 1, - "endIndex": 4 - } - }, - { - "kind": "Interface", - "canonicalReference": "@modern-js/libuild!sassOptions:interface", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface Options " - } - ], - "releaseTag": "Public", - "name": "sassOptions", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!sassOptions#data:member", - "docComment": "/**\n * A string to pass to compile.\n *\n * It is recommended that you use `includePaths` in conjunction with this so that sass can find files when using the @import directive.\n *\n * @default null\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "data?: " - }, - { - "kind": "Content", - "text": "string | undefined" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "data", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!sassOptions#file:member", - "docComment": "/**\n * Path to a file to compile.\n *\n * @default null\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "file?: " - }, - { - "kind": "Content", - "text": "string | undefined" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "file", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!sassOptions#functions:member", - "docComment": "/**\n * Holds a collection of custom functions that may be invoked by the sass files being compiled.\n *\n * @default undefined\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "functions?: " - }, - { - "kind": "Content", - "text": "{ [key: string]: (...args: " - }, - { - "kind": "Reference", - "text": "types.SassType", - "canonicalReference": "@types/sass!types.SassType:class" - }, - { - "kind": "Content", - "text": "[]) => " - }, - { - "kind": "Reference", - "text": "types.SassType", - "canonicalReference": "@types/sass!types.SassType:class" - }, - { - "kind": "Content", - "text": " | void } | undefined" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "functions", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 6 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!sassOptions#importer:member", - "docComment": "/**\n * Handles when the @import directive is encountered.\n *\n * A custom importer allows extension of the sass engine in both a synchronous and asynchronous manner.\n *\n * @default undefined\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "importer?: " - }, - { - "kind": "Reference", - "text": "Importer", - "canonicalReference": "@types/sass!Importer:type" - }, - { - "kind": "Content", - "text": " | " - }, - { - "kind": "Reference", - "text": "Importer", - "canonicalReference": "@types/sass!Importer:type" - }, - { - "kind": "Content", - "text": "[] | undefined" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "importer", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 5 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!sassOptions#includePaths:member", - "docComment": "/**\n * An array of paths that should be looked in to attempt to resolve your @import declarations. When using `data`, it is recommended that you use this.\n *\n * @default []\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "includePaths?: " - }, - { - "kind": "Content", - "text": "string[] | undefined" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "includePaths", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!sassOptions#indentedSyntax:member", - "docComment": "/**\n * Enable Sass Indented Syntax for parsing the data string or file.\n *\n * @default false\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "indentedSyntax?: " - }, - { - "kind": "Content", - "text": "boolean | undefined" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "indentedSyntax", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!sassOptions#indentType:member", - "docComment": "/**\n * Used to determine whether to use space or tab character for indentation.\n *\n * @default 'space'\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "indentType?: " - }, - { - "kind": "Content", - "text": "'space' | 'tab' | undefined" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "indentType", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!sassOptions#indentWidth:member", - "docComment": "/**\n * Used to determine the number of spaces or tabs to be used for indentation.\n *\n * @default 2\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "indentWidth?: " - }, - { - "kind": "Content", - "text": "number | undefined" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "indentWidth", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!sassOptions#linefeed:member", - "docComment": "/**\n * Used to determine which sequence to use for line breaks.\n *\n * @default 'lf'\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "linefeed?: " - }, - { - "kind": "Content", - "text": "'cr' | 'crlf' | 'lf' | 'lfcr' | undefined" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "linefeed", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!sassOptions#logger:member", - "docComment": "/**\n * An object to use to handle warnings and/or debug messages from Sass.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "logger?: " - }, - { - "kind": "Reference", - "text": "Logger", - "canonicalReference": "@types/sass!Logger:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "logger", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!sassOptions#omitSourceMapUrl:member", - "docComment": "/**\n * Disable the inclusion of source map information in the output file.\n *\n * @default false\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "omitSourceMapUrl?: " - }, - { - "kind": "Content", - "text": "boolean | undefined" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "omitSourceMapUrl", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!sassOptions#outFile:member", - "docComment": "/**\n * Specify the intended location of the output file. Strongly recommended when outputting source maps so that they can properly refer back to their intended files.\n *\n * @default null\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "outFile?: " - }, - { - "kind": "Content", - "text": "string | undefined" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "outFile", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!sassOptions#outputStyle:member", - "docComment": "/**\n * Determines the output format of the final CSS style.\n *\n * @default 'expanded'\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "outputStyle?: " - }, - { - "kind": "Content", - "text": "'compressed' | 'expanded' | undefined" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "outputStyle", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!sassOptions#quietDeps:member", - "docComment": "/**\n * If this option is set to `true`, Sass won’t print warnings that are caused by dependencies.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "quietDeps?: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "quietDeps", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!sassOptions#sourceMap:member", - "docComment": "/**\n * Enables the outputting of a source map.\n *\n * @default undefined\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "sourceMap?: " - }, - { - "kind": "Content", - "text": "boolean | string | undefined" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "sourceMap", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!sassOptions#sourceMapContents:member", - "docComment": "/**\n * Includes the contents in the source map information.\n *\n * @default false\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "sourceMapContents?: " - }, - { - "kind": "Content", - "text": "boolean | undefined" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "sourceMapContents", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!sassOptions#sourceMapEmbed:member", - "docComment": "/**\n * Embeds the source map as a data URI.\n *\n * @default false\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "sourceMapEmbed?: " - }, - { - "kind": "Content", - "text": "boolean | undefined" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "sourceMapEmbed", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!sassOptions#sourceMapRoot:member", - "docComment": "/**\n * The value will be emitted as `sourceRoot` in the source map information.\n *\n * @default undefined\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "sourceMapRoot?: " - }, - { - "kind": "Content", - "text": "string | undefined" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "sourceMapRoot", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!sassOptions#verbose:member", - "docComment": "/**\n * By default, Dart Sass will print only five instances of the same deprecation warning per compilation to avoid deluging users in console noise. If you set verbose to `true`, it will instead print every deprecation warning it encounters.\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "verbose?: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "verbose", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "TypeAlias", - "canonicalReference": "@modern-js/libuild!SideEffects:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type SideEffects = " - }, - { - "kind": "Reference", - "text": "RegExp", - "canonicalReference": "!RegExp:interface" - }, - { - "kind": "Content", - "text": "[] | boolean | ((id: string, external: boolean) => boolean)" - }, - { - "kind": "Content", - "text": ";" - } - ], - "releaseTag": "Public", - "name": "SideEffects", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 3 - } - }, - { - "kind": "TypeAlias", - "canonicalReference": "@modern-js/libuild!Source:type", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare type Source = " - }, - { - "kind": "Content", - "text": "{\n code: string;\n map?: " - }, - { - "kind": "Reference", - "text": "SourceMap", - "canonicalReference": "@modern-js/libuild!SourceMap:interface" - }, - { - "kind": "Content", - "text": ";\n path: string;\n loader?: string;\n cache?: boolean;\n}" - }, - { - "kind": "Content", - "text": ";" - } - ], - "releaseTag": "Public", - "name": "Source", - "typeTokenRange": { - "startIndex": 1, - "endIndex": 4 - } - }, - { - "kind": "Interface", - "canonicalReference": "@modern-js/libuild!SourceMap:interface", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface SourceMap " - } - ], - "releaseTag": "Public", - "name": "SourceMap", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!SourceMap#mappings:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "mappings: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "mappings", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!SourceMap#names:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "names: " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "names", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!SourceMap#sources:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "sources: " - }, - { - "kind": "Content", - "text": "(string | null)[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "sources", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!SourceMap#sourcesContent:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "sourcesContent?: " - }, - { - "kind": "Content", - "text": "(string | null)[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "sourcesContent", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!SourceMap#version:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "version: " - }, - { - "kind": "Content", - "text": "number" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": false, - "releaseTag": "Public", - "name": "version", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Interface", - "canonicalReference": "@modern-js/libuild!Style:interface", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface Style " - } - ], - "releaseTag": "Public", - "name": "Style", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!Style#autoModules:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "autoModules?: " - }, - { - "kind": "Content", - "text": "boolean | " - }, - { - "kind": "Reference", - "text": "RegExp", - "canonicalReference": "!RegExp:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "autoModules", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!Style#cleanCss:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "cleanCss?: " - }, - { - "kind": "Reference", - "text": "CleanCss.OptionsOutput", - "canonicalReference": "@types/clean-css!~CleanCSS.OptionsOutput:type" - }, - { - "kind": "Content", - "text": " | boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "cleanCss", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!Style#inject:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "inject?: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "inject", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!Style#less:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "less?: " - }, - { - "kind": "Content", - "text": "{\n additionalData?: " - }, - { - "kind": "Reference", - "text": "AdditionalData", - "canonicalReference": "@modern-js/libuild!~AdditionalData:type" - }, - { - "kind": "Content", - "text": ";\n implementation?: object | string;\n lessOptions?: " - }, - { - "kind": "Reference", - "text": "Less.Options", - "canonicalReference": "!Less.Options:interface" - }, - { - "kind": "Content", - "text": ";\n }" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "less", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 6 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!Style#modules:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "modules?: " - }, - { - "kind": "Content", - "text": "{\n localsConvention?: 'camelCase' | 'camelCaseOnly' | 'dashes' | 'dashesOnly' | " - }, - { - "kind": "Reference", - "text": "LocalsConventionFunction", - "canonicalReference": "@modern-js/libuild!~LocalsConventionFunction:type" - }, - { - "kind": "Content", - "text": ";\n scopeBehaviour?: 'global' | 'local';\n globalModulePaths?: " - }, - { - "kind": "Reference", - "text": "RegExp", - "canonicalReference": "!RegExp:interface" - }, - { - "kind": "Content", - "text": "[];\n generateScopedName?: string | " - }, - { - "kind": "Reference", - "text": "GenerateScopedNameFunction", - "canonicalReference": "@modern-js/libuild!~GenerateScopedNameFunction:type" - }, - { - "kind": "Content", - "text": ";\n hashPrefix?: string;\n exportGlobals?: boolean;\n root?: string;\n resolve?: (file: string) => string | " - }, - { - "kind": "Reference", - "text": "Promise", - "canonicalReference": "!Promise:interface" - }, - { - "kind": "Content", - "text": ";\n Loader?: typeof " - }, - { - "kind": "Reference", - "text": "Loader", - "canonicalReference": "@modern-js/libuild!~Loader:class" - }, - { - "kind": "Content", - "text": ";\n getJSON?(cssFilename: string, json: {\n [name: string]: string;\n }, outputFilename?: string): void;\n }" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "modules", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 12 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!Style#postcss:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "postcss?: " - }, - { - "kind": "Reference", - "text": "PostcssOptions", - "canonicalReference": "@modern-js/libuild!PostcssOptions:type" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "postcss", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!Style#sass:member", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "sass?: " - }, - { - "kind": "Content", - "text": "{\n additionalData?: " - }, - { - "kind": "Reference", - "text": "AdditionalData", - "canonicalReference": "@modern-js/libuild!~AdditionalData:type" - }, - { - "kind": "Content", - "text": ";\n implementation?: object | string;\n sassOptions?: " - }, - { - "kind": "Reference", - "text": "sassOptions", - "canonicalReference": "@types/sass!Options:interface" - }, - { - "kind": "Content", - "text": ";\n }" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "sass", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 6 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Function", - "canonicalReference": "@modern-js/libuild!toLevel:function(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare function toLevel(level: " - }, - { - "kind": "Content", - "text": "keyof typeof " - }, - { - "kind": "Reference", - "text": "ErrorLevel", - "canonicalReference": "@modern-js/libuild!ErrorLevel:enum" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "ErrorLevel", - "canonicalReference": "@modern-js/libuild!ErrorLevel:enum" - }, - { - "kind": "Content", - "text": ";" - } - ], - "returnTypeTokenRange": { - "startIndex": 4, - "endIndex": 5 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "level", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - } - } - ], - "name": "toLevel" - }, - { - "kind": "Function", - "canonicalReference": "@modern-js/libuild!transform:function(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare function transform(err: " - }, - { - "kind": "Content", - "text": "any" - }, - { - "kind": "Content", - "text": ", opt?: " - }, - { - "kind": "Reference", - "text": "LibuildErrorParams", - "canonicalReference": "@modern-js/libuild!LibuildErrorParams:type" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "LibuildError", - "canonicalReference": "@modern-js/libuild!LibuildError:class" - }, - { - "kind": "Content", - "text": ";" - } - ], - "returnTypeTokenRange": { - "startIndex": 5, - "endIndex": 6 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "err", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "parameterName": "opt", - "parameterTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - } - } - ], - "name": "transform" - }, - { - "kind": "Interface", - "canonicalReference": "@modern-js/libuild!UserConfig:interface", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export interface UserConfig " - } - ], - "releaseTag": "Public", - "name": "UserConfig", - "members": [ - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!UserConfig#asset:member", - "docComment": "/**\n * Options for asset\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "asset?: " - }, - { - "kind": "Reference", - "text": "Asset", - "canonicalReference": "@modern-js/libuild!Asset:type" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "asset", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!UserConfig#autoExternal:member", - "docComment": "/**\n * @default true\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "autoExternal?: " - }, - { - "kind": "Content", - "text": "boolean | {\n dependencies?: boolean;\n peerDependencies?: boolean;\n }" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "autoExternal", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!UserConfig#bundle:member", - "docComment": "/**\n * @default true\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "bundle?: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "bundle", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!UserConfig#chunkNames:member", - "docComment": "/**\n * @see\n *\n * https://esbuild.github.io/api/#chunk-names\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "chunkNames?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "chunkNames", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!UserConfig#clean:member", - "docComment": "/**\n * Clean output directory before build @default false\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "clean?: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "clean", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!UserConfig#define:member", - "docComment": "/**\n * @see\n *\n * https://esbuild.github.io/api/#define\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "define?: " - }, - { - "kind": "Reference", - "text": "Define", - "canonicalReference": "@modern-js/libuild!~Define:type" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "define", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!UserConfig#entryNames:member", - "docComment": "/**\n * @see\n *\n * https://esbuild.github.io/api/#entry-names\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "entryNames?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "entryNames", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!UserConfig#esbuildOptions:member", - "docComment": "/**\n * Options for esbuild, it may disable some of the functions of libuild\n *\n * @experimental\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "esbuildOptions?: " - }, - { - "kind": "Content", - "text": "(options: " - }, - { - "kind": "Reference", - "text": "BuildOptions", - "canonicalReference": "esbuild!BuildOptions:interface" - }, - { - "kind": "Content", - "text": ") => " - }, - { - "kind": "Reference", - "text": "BuildOptions", - "canonicalReference": "esbuild!BuildOptions:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "esbuildOptions", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 5 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!UserConfig#external:member", - "docComment": "/**\n * Exclude it from your build Default Excluded your dependencies and peerDependencies\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "external?: " - }, - { - "kind": "Reference", - "text": "External", - "canonicalReference": "@modern-js/libuild!~External:type" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "external", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!UserConfig#format:member", - "docComment": "/**\n * Module format @default 'esm'\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "format?: " - }, - { - "kind": "Reference", - "text": "Format", - "canonicalReference": "@modern-js/libuild!Format:type" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "format", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!UserConfig#globals:member", - "docComment": "/**\n * Global variables, only used in umd format @default {}\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "globals?: " - }, - { - "kind": "Reference", - "text": "Globals", - "canonicalReference": "@modern-js/libuild!~Globals:type" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "globals", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!UserConfig#inject:member", - "docComment": "/**\n * @see\n *\n * https://esbuild.github.io/api/#inject\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "inject?: " - }, - { - "kind": "Content", - "text": "string[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "inject", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!UserConfig#input:member", - "docComment": "/**\n * Input to the bundling algorithm.\n *\n * Only valid when bundle is 'true' @default { index: './src/index.ts '}\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "input?: " - }, - { - "kind": "Reference", - "text": "Input", - "canonicalReference": "@modern-js/libuild!~Input:type" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "input", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!UserConfig#jsx:member", - "docComment": "/**\n * @see\n *\n * https://esbuild.github.io/api/#jsx @default 'automatic'\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "jsx?: " - }, - { - "kind": "Content", - "text": "'automatic' | 'preserve' | 'transform'" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "jsx", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!UserConfig#loader:member", - "docComment": "/**\n * @see\n *\n * https://esbuild.github.io/api/#loader\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "loader?: " - }, - { - "kind": "Reference", - "text": "Record", - "canonicalReference": "!Record:type" - }, - { - "kind": "Content", - "text": "" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "loader", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 5 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!UserConfig#logLevel:member", - "docComment": "/**\n * The level of the console log @default 'info'\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "logLevel?: " - }, - { - "kind": "Reference", - "text": "LogLevel", - "canonicalReference": "@modern-js/libuild!LogLevel:type" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "logLevel", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!UserConfig#metafile:member", - "docComment": "/**\n * Emit esbuild metafile\n *\n * @see\n *\n * https://esbuild.github.io/api/#metafile @default false\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "metafile?: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "metafile", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!UserConfig#minify:member", - "docComment": "/**\n * Minify JS @default false\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "minify?: " - }, - { - "kind": "Reference", - "text": "Minify", - "canonicalReference": "@modern-js/libuild!~Minify:type" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "minify", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!UserConfig#outbase:member", - "docComment": "/**\n * @see\n *\n * https://esbuild.github.io/api/#outbase @default 'src'\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "outbase?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "outbase", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!UserConfig#outdir:member", - "docComment": "/**\n * The directory for output @default 'dist'\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "outdir?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "outdir", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!UserConfig#platform:member", - "docComment": "/**\n * @see\n *\n * https://esbuild.github.io/api/#platform @default 'node'\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "platform?: " - }, - { - "kind": "Reference", - "text": "Platform", - "canonicalReference": "@modern-js/libuild!~Platform:type" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "platform", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!UserConfig#plugins:member", - "docComment": "/**\n * Plugins for libuild\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "plugins?: " - }, - { - "kind": "Reference", - "text": "LibuildPlugin", - "canonicalReference": "@modern-js/libuild!LibuildPlugin:interface" - }, - { - "kind": "Content", - "text": "[]" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "plugins", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!UserConfig#redirect:member", - "docComment": "/**\n * Redirect id when bundle is false\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "redirect?: " - }, - { - "kind": "Reference", - "text": "Redirect", - "canonicalReference": "@modern-js/libuild!Redirect:type" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "redirect", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!UserConfig#resolve:member", - "docComment": "/**\n * Options for enhanced-resolve\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "resolve?: " - }, - { - "kind": "Reference", - "text": "Resolve", - "canonicalReference": "@modern-js/libuild!Resolve:type" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "resolve", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!UserConfig#sideEffects:member", - "docComment": "/**\n * Module sideEffects, it will invalidate the sideEffects field in package.json\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "sideEffects?: " - }, - { - "kind": "Reference", - "text": "SideEffects", - "canonicalReference": "@modern-js/libuild!SideEffects:type" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "sideEffects", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!UserConfig#sourceDir:member", - "docComment": "/**\n * The directory for source.\n *\n * Only valid when bundle is 'false', it will transform all files in sourceDir @default 'src'\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "sourceDir?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "sourceDir", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!UserConfig#sourceMap:member", - "docComment": "/**\n * The mode of sourcemap @default false\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "sourceMap?: " - }, - { - "kind": "Reference", - "text": "SourceMap", - "canonicalReference": "@modern-js/libuild!~SourceMap:type" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "sourceMap", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!UserConfig#splitting:member", - "docComment": "/**\n * Code splitting @default false\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "splitting?: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "splitting", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!UserConfig#style:member", - "docComment": "/**\n * Options for style\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "style?: " - }, - { - "kind": "Reference", - "text": "Style", - "canonicalReference": "@modern-js/libuild!Style:interface" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "style", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!UserConfig#target:member", - "docComment": "/**\n * Compile target\n *\n * @see\n *\n * https://esbuild.github.io/api/#target @default 'es2015'\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "target?: " - }, - { - "kind": "Content", - "text": "string" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "target", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!UserConfig#transformCache:member", - "docComment": "/**\n * Cache for transform hooks, accelerate incremental build @default true\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "transformCache?: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "transformCache", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - }, - { - "kind": "PropertySignature", - "canonicalReference": "@modern-js/libuild!UserConfig#watch:member", - "docComment": "/**\n * When file changed builder will rebuild under watch mode. @default false\n */\n", - "excerptTokens": [ - { - "kind": "Content", - "text": "watch?: " - }, - { - "kind": "Content", - "text": "boolean" - }, - { - "kind": "Content", - "text": ";" - } - ], - "isOptional": true, - "releaseTag": "Public", - "name": "watch", - "propertyTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "extendsTokenRanges": [] - }, - { - "kind": "Function", - "canonicalReference": "@modern-js/libuild!validateUserConfig:function(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare function validateUserConfig(config: " - }, - { - "kind": "Reference", - "text": "UserConfig", - "canonicalReference": "@modern-js/libuild!UserConfig:interface" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Content", - "text": "void" - }, - { - "kind": "Content", - "text": ";" - } - ], - "returnTypeTokenRange": { - "startIndex": 3, - "endIndex": 4 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "config", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 2 - } - } - ], - "name": "validateUserConfig" - }, - { - "kind": "Function", - "canonicalReference": "@modern-js/libuild!warpErrors:function(1)", - "docComment": "", - "excerptTokens": [ - { - "kind": "Content", - "text": "export declare function warpErrors(libuildErrors: " - }, - { - "kind": "Reference", - "text": "LibuildError", - "canonicalReference": "@modern-js/libuild!LibuildError:class" - }, - { - "kind": "Content", - "text": "[]" - }, - { - "kind": "Content", - "text": ", logLevel?: " - }, - { - "kind": "Reference", - "text": "LogLevel", - "canonicalReference": "@modern-js/libuild!LogLevel:type" - }, - { - "kind": "Content", - "text": "): " - }, - { - "kind": "Reference", - "text": "LibuildFailure", - "canonicalReference": "@modern-js/libuild!LibuildFailure:class" - }, - { - "kind": "Content", - "text": ";" - } - ], - "returnTypeTokenRange": { - "startIndex": 6, - "endIndex": 7 - }, - "releaseTag": "Public", - "overloadIndex": 1, - "parameters": [ - { - "parameterName": "libuildErrors", - "parameterTypeTokenRange": { - "startIndex": 1, - "endIndex": 3 - } - }, - { - "parameterName": "logLevel", - "parameterTypeTokenRange": { - "startIndex": 4, - "endIndex": 5 - } - } - ], - "name": "warpErrors" - } - ] - } - ] -} diff --git a/packages/libuild/libuild-core/temp/libuild.api.md b/packages/libuild/libuild-core/temp/libuild.api.md deleted file mode 100644 index da4b95d7bade..000000000000 --- a/packages/libuild/libuild-core/temp/libuild.api.md +++ /dev/null @@ -1,800 +0,0 @@ -## API Report File for "@modern-js/libuild" - -> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). - -```ts - -/// -/// - -import type { AcceptedPlugin } from 'postcss'; -import type { BuildOptions } from 'esbuild'; -import type CleanCss from 'clean-css'; -import { Message as EsbuildError } from 'esbuild'; -import { ImportKind } from 'esbuild'; -import type { Loader as Loader_2 } from 'esbuild'; -import type { Metafile } from 'esbuild'; -import type { MinifyOptions } from 'terser'; -import type { OnLoadArgs } from 'esbuild'; -import type { OnLoadResult } from 'esbuild'; -import type { OnResolveArgs } from 'esbuild'; -import type { OnResolveResult } from 'esbuild'; -import type { Plugin as Plugin_2 } from 'postcss'; -import type { ProcessOptions } from 'postcss'; -import { TransformOptions } from 'esbuild'; -import { URL as URL_2 } from 'url'; - -// @public (undocumented) -export type Asset = { - outdir?: string; - rebase?: boolean; - name?: string | ((filePath: string) => string); - limit?: number; - publicPath?: string | ((filePath: string) => string); -}; - -// @public (undocumented) -export type AssetChunk = { - type: 'asset'; - contents: string | Buffer; - fileName: string; - originalFileName?: string; - entryPoint?: string; -}; - -// @public (undocumented) -export type AssetNormalized = Required; - -// @public (undocumented) -export interface BuildConfig extends Required> { - // (undocumented) - asset: AssetNormalized; - // (undocumented) - chunkNames?: string; - // (undocumented) - css_resolve: (id: string, dir: string) => string; - // (undocumented) - logger: ILogger; - // (undocumented) - node_resolve: (id: string, dir: string, kind?: ImportKind) => string; - // (undocumented) - resolve: ResolveNormalized; - // (undocumented) - sideEffects?: SideEffects; -} - -// @public (undocumented) -export interface BuilderResolveOptions { - // (undocumented) - importer?: string; - // (undocumented) - kind?: ImportKind; - // (undocumented) - resolveDir?: string; - // (undocumented) - skipSideEffects?: boolean; -} - -// @public (undocumented) -export interface BuilderResolveResult { - // (undocumented) - external?: boolean; - // (undocumented) - path: string; - // (undocumented) - sideEffects?: boolean; - // (undocumented) - suffix?: string; -} - -// @public (undocumented) -export interface CacheValue extends Source { - // (undocumented) - originCode: string; -} - -// @public (undocumented) -export type Callback = (err?: any) => void; - -// @public (undocumented) -export type Chunk = AssetChunk | JsChunk; - -// @public (undocumented) -export const enum ChunkType { - // (undocumented) - asset = "asset", - // (undocumented) - chunk = "chunk" -} - -// @public (undocumented) -export interface CLIConfig extends UserConfig { - configFile?: string; - root?: string; -} - -// @public (undocumented) -export interface CodeFrameFileOption { - // (undocumented) - filePath: string; -} - -// @public -export interface CodeFrameLineOption { - // (undocumented) - filePath: string; - // (undocumented) - length?: number; - // (undocumented) - lineText: string; - // (undocumented) - start?: CodeFramePosition; -} - -// @public (undocumented) -export interface CodeFrameNormalOption { - // (undocumented) - end?: CodeFramePosition; - // (undocumented) - fileContent: string; - // (undocumented) - filePath: string; - // (undocumented) - start?: CodeFramePosition; -} - -// @public (undocumented) -export type CodeFrameOption = CodeFrameFileOption | CodeFrameNormalOption | CodeFrameLineOption; - -// @public (undocumented) -export interface CodeFramePosition { - // (undocumented) - column?: number; - // (undocumented) - line: number; -} - -// @public (undocumented) -export function ConfigLoaderMesaageToLibuildError({ message, location }: IConfigLoaderMessage, isError?: boolean): LibuildError; - -// @public (undocumented) -export interface ControllerOption { - noColor?: boolean; - noStack?: boolean; -} - -// @public (undocumented) -export function defineConfig(config: UserConfig): UserConfig; - -// @public (undocumented) -export function defineConfig(config: UserConfig[]): UserConfig[]; - -// @public (undocumented) -export enum ErrorLevel { - // (undocumented) - Error = 2, - // (undocumented) - Ignore = 0, - // (undocumented) - Warn = 1 -} - -export { EsbuildError } - -// @public (undocumented) -export interface EsbuildResultInfo { - // (undocumented) - errors: EsbuildError[]; - // (undocumented) - warnings: EsbuildError[]; -} - -// @public (undocumented) -export type ExtraContext = Record; - -// @public (undocumented) -export type Format = 'esm' | 'cjs' | 'umd' | 'iife'; - -// @public (undocumented) -export function formatError(err: Error | LibuildErrorInstance): string; - -// @public (undocumented) -export interface IBuilderBase { - // (undocumented) - build(): Promise; - // (undocumented) - close(callack?: Callback): void; - // (undocumented) - reBuild(type: 'link' | 'change'): Promise; -} - -// @public (undocumented) -export interface IConfigLoaderMessage { - // (undocumented) - location?: { - file: string; - source: string; - line?: number; - column?: number; - length?: number; - }; - // (undocumented) - message: string; -} - -// @public (undocumented) -export interface IConfigLoaderOptions { - // (undocumented) - configFile: string; - // (undocumented) - configKey: string; - // (undocumented) - configSuffix?: string; - // (undocumented) - cwd: string; - // (undocumented) - transformOptions?: TransformOptions; -} - -// @public (undocumented) -export interface IConfigLoaderResult { - // (undocumented) - data: T; - // (undocumented) - errors?: IConfigLoaderMessage[]; - // (undocumented) - path?: string; - // (undocumented) - warnings?: IConfigLoaderMessage[]; -} - -// @public (undocumented) -export interface ILibuilder { - // (undocumented) - addWatchFile(id: string): void; - // (undocumented) - build(): Promise; - // (undocumented) - clearErrors(): void; - // (undocumented) - close(callBack?: Callback): Promise; - // (undocumented) - compilation: IBuilderBase; - // (undocumented) - config: BuildConfig; - // (undocumented) - emitAsset(name: string, chunk: AssetChunk): void; - // (undocumented) - emitAsset(name: string, chunk: JsChunk): void; - // (undocumented) - emitAsset(name: string, chunk: string): void; - // (undocumented) - getErrors(): LibuildFailure; - // (undocumented) - getSourcemapContext(path: string): ISourcemapContext; - // (undocumented) - getTransformContext(path: string): ITransformContext; - // (undocumented) - hooks: ILibuilderHooks; - // (undocumented) - init(config: CLIConfig): Promise; - // Warning: (ae-forgotten-export) The symbol "LoadSvgrResult" needs to be exported by the entry point index.d.ts - // - // (undocumented) - loadSvgr(path: string): Promise; - // (undocumented) - name?: string; - // (undocumented) - outputChunk: Map; - // (undocumented) - plugins: LibuildPlugin[]; - // (undocumented) - printErrors(): void; - // (undocumented) - removeError(...errors: LibuildErrorInstance[]): void; - // (undocumented) - report(error: any): void; - // (undocumented) - resolve(source: string, options?: BuilderResolveOptions): Promise; - // (undocumented) - STAGE: ILibuilderStage; - // (undocumented) - throw(message: string, option: LibuildErrorParams): void; - // (undocumented) - userConfig: CLIConfig; - // (undocumented) - version: string; - // (undocumented) - virtualModule: Map; - // (undocumented) - watchedFiles: Set; -} - -// @public (undocumented) -export interface ILibuilderHooks { - endCompilation: AsyncSeriesHook<[LibuildFailure]>; - // Warning: (ae-forgotten-export) The symbol "AsyncSeriesHook" needs to be exported by the entry point index.d.ts - initialize: AsyncSeriesHook<[], void>; - load: AsyncSeriesBailHook<[LoadArgs], LoadResult | undefined | void>; - processAsset: AsyncSeriesWaterfallHook<[Chunk]>; - processAssets: AsyncSeriesHook<[Map, LibuildManifest]>; - // Warning: (ae-forgotten-export) The symbol "AsyncSeriesBailHook" needs to be exported by the entry point index.d.ts - resolve: AsyncSeriesBailHook<[ResolveArgs], ResolveResult | undefined>; - shutdown: AsyncSeriesHook<[]>; - startCompilation: AsyncSeriesHook<[]>; - // Warning: (ae-forgotten-export) The symbol "AsyncSeriesWaterfallHook" needs to be exported by the entry point index.d.ts - // - // (undocumented) - transform: AsyncSeriesWaterfallHook; - // Warning: (ae-forgotten-export) The symbol "SyncHook" needs to be exported by the entry point index.d.ts - watchChange: SyncHook<[string[]]>; -} - -// @public (undocumented) -export interface ILibuilderStage { - POST_INTERNAL: number; - PRE_INTERNAL: number; -} - -// @public (undocumented) -export abstract class ILogger { - // (undocumented) - abstract debug(...msg: string[]): void; - // (undocumented) - abstract error(...msg: string[]): void; - // (undocumented) - abstract info(...msg: string[]): void; - // (undocumented) - abstract time(label: Label): void; - // (undocumented) - abstract timeEnd(label: Label): void; - // Warning: (ae-forgotten-export) The symbol "Label" needs to be exported by the entry point index.d.ts - // - // (undocumented) - abstract timesLog: Map; - // (undocumented) - abstract warn(...msg: string[]): void; -} - -// @public (undocumented) -export interface ILoggerOptions { - level?: LogLevel; - timestamp?: boolean; -} - -// @public (undocumented) -export function insertSpace(rawLines: string, line: number, width: number): string; - -// @public -export function isLibuildErrorInstance(err: unknown): err is LibuildError; - -// @public (undocumented) -export interface ISourcemapContext { - // (undocumented) - addSourceMap(pluginId: number, map?: SourceMap): void; - // (undocumented) - genPluginId(id: string): number; - // (undocumented) - getInlineSourceMap(): string; - // (undocumented) - getSourceMap(): SourceMap | undefined; - // (undocumented) - getSourceMapChain(): SourceMap[]; -} - -// @public (undocumented) -export interface ITransformContext extends ISourcemapContext { - // (undocumented) - addTransformResult(pluginId: number, result: CacheValue): void; - // (undocumented) - getValidCache(pluginId: number, code: string): undefined | CacheValue; -} - -// @public (undocumented) -export type JsChunk = { - type: 'chunk'; - contents: string; - fileName: string; - originalFileName?: string; - map?: SourceMap; - entryPoint?: string; - modules?: Record; - isEntry: boolean; -}; - -// @public (undocumented) -export class Libuilder implements ILibuilder { - // (undocumented) - addWatchFile(id: string): void; - // (undocumented) - build(): Promise; - // (undocumented) - clearErrors(): void; - // (undocumented) - close(callback?: Callback): Promise; - // (undocumented) - compilation: IBuilderBase; - // (undocumented) - config: BuildConfig; - // (undocumented) - static create(config?: CLIConfig, name?: string): Promise; - // (undocumented) - emitAsset(name: string, chunk: string | Chunk): void; - // (undocumented) - getErrors(): LibuildFailure; - // Warning: (ae-forgotten-export) The symbol "SourcemapContext" needs to be exported by the entry point index.d.ts - // - // (undocumented) - getSourcemapContext(path: string): SourcemapContext; - // Warning: (ae-forgotten-export) The symbol "TransformContext" needs to be exported by the entry point index.d.ts - // - // (undocumented) - getTransformContext(path: string): TransformContext; - // (undocumented) - hooks: ILibuilderHooks; - // (undocumented) - init(config: CLIConfig): Promise; - // (undocumented) - loadSvgr(path: string): Promise; - // (undocumented) - name?: string; - // (undocumented) - outputChunk: Map; - // (undocumented) - plugins: LibuildPlugin[]; - // (undocumented) - printErrors(): void; - // (undocumented) - removeError(...errors: LibuildError[]): void; - // (undocumented) - report(err: any): void; - // (undocumented) - resolve(source: string, opt: BuilderResolveOptions): Promise; - // (undocumented) - static run(config?: CLIConfig, name?: string): Promise; - // (undocumented) - STAGE: ILibuilderStage; - // (undocumented) - throw(message: string, opts?: LibuildErrorParams): void; - // (undocumented) - userConfig: CLIConfig; - // (undocumented) - version: string; - // (undocumented) - virtualModule: Map; - // (undocumented) - watchedFiles: Set; -} - -// @public (undocumented) -export class LibuildError extends Error implements LibuildErrorInstance { - constructor(code: string, message: string, opts?: LibuildErrorParams); - // (undocumented) - readonly code: string; - // (undocumented) - static from(err: unknown, opt?: LibuildErrorParams): LibuildError; - // (undocumented) - readonly hint?: string; - // (undocumented) - isSame(error: LibuildError): boolean; - // (undocumented) - get level(): "Ignore" | "Warn" | "Error"; - // (undocumented) - get path(): string | undefined; - set path(file: string | undefined); - // (undocumented) - readonly prefixCode: string; - // (undocumented) - readonly reason?: string; - // (undocumented) - readonly referenceUrl?: string; - // (undocumented) - setCodeFrame(opt: CodeFrameOption): void; - // (undocumented) - setControllerOption(opt: ControllerOption): void; - // (undocumented) - toString(): string; -} - -// @public (undocumented) -export interface LibuildErrorInstance { - // (undocumented) - code: string; - // (undocumented) - hint?: string; - level?: keyof typeof ErrorLevel; - // (undocumented) - message: string; - // (undocumented) - path?: string; - // (undocumented) - prefixCode?: string; - // (undocumented) - reason?: string; - // (undocumented) - referenceUrl?: string; - // (undocumented) - setCodeFrame(opt: CodeFrameOption): void; - // (undocumented) - setControllerOption(opt: ControllerOption): void; - // (undocumented) - stack?: string; -} - -// @public (undocumented) -export type LibuildErrorParams = Omit & { - code?: string; - controller?: ControllerOption; - codeFrame?: CodeFrameOption; -}; - -// @public (undocumented) -export class LibuildFailure extends Error { - constructor(errors: LibuildErrorInstance[], warnings: LibuildErrorInstance[], logLevel: string); - // (undocumented) - readonly errors: LibuildErrorInstance[]; - // (undocumented) - readonly logLevel: string; - // (undocumented) - toString(): string; - // (undocumented) - readonly warnings: LibuildErrorInstance[]; -} - -// @public (undocumented) -export type LibuildManifest = { - metafile: Metafile; - config: BuildOptions; -}; - -// @public (undocumented) -export interface LibuildPlugin { - // (undocumented) - apply(compiler: SafeMerge): void; - // (undocumented) - name: string; -} - -// @public (undocumented) -export type LoadArgs = Pick & Pick; - -// @public (undocumented) -export function loadConfig(config: CLIConfig): Promise; - -// @public (undocumented) -export function loadRawConfig>(opts: IConfigLoaderOptions): Promise>; - -// @public (undocumented) -export type LoadResult = Pick & { - map?: SourceMap; -}; - -// @public -export type LogLevel = 'silent' | 'error' | 'warning' | 'info' | 'debug' | 'verbose'; - -// @public (undocumented) -export type PostcssOptions = { - processOptions?: ProcessOptions; - plugins?: AcceptedPlugin[]; -}; - -// @public (undocumented) -export type Redirect = { - alias?: boolean; - style?: boolean; - asset?: boolean; -}; - -// @public -export type Resolve = { - alias?: Record; - mainFields?: string[]; - mainFiles?: string[]; - preferRelative?: boolean; -}; - -// @public (undocumented) -export type ResolveArgs = Pick; - -// @public (undocumented) -export type ResolveNormalized = Required; - -// @public (undocumented) -export type ResolveResult = Pick; - -// @public (undocumented) -function run_2(userArgs?: string[]): Promise; -export { run_2 as run } - -// @public -export type SafeMerge = T & { - [K in keyof U as Exclude]: U[K]; -}; - -// @public (undocumented) -export interface sassOptions { - data?: string | undefined; - - file?: string | undefined; - - functions?: { [key: string]: (...args: types.SassType[]) => types.SassType | void } | undefined; - - // Warning: (ae-forgotten-export) The symbol "Importer" needs to be exported by the entry point index.d.ts - importer?: Importer | Importer[] | undefined; - - includePaths?: string[] | undefined; - - indentedSyntax?: boolean | undefined; - - indentType?: 'space' | 'tab' | undefined; - - indentWidth?: number | undefined; - - linefeed?: 'cr' | 'crlf' | 'lf' | 'lfcr' | undefined; - - // Warning: (ae-forgotten-export) The symbol "Logger" needs to be exported by the entry point index.d.ts - logger?: Logger; - - omitSourceMapUrl?: boolean | undefined; - - outFile?: string | undefined; - - outputStyle?: 'compressed' | 'expanded' | undefined; - - quietDeps?: boolean; - - sourceMap?: boolean | string | undefined; - - sourceMapContents?: boolean | undefined; - - sourceMapEmbed?: boolean | undefined; - - sourceMapRoot?: string | undefined; - - verbose?: boolean; -} - -// @public (undocumented) -export type SideEffects = RegExp[] | boolean | ((id: string, external: boolean) => boolean); - -// @public (undocumented) -export type Source = { - code: string; - map?: SourceMap; - path: string; - loader?: string; - cache?: boolean; -}; - -// @public (undocumented) -export interface SourceMap { - // (undocumented) - mappings: string; - // (undocumented) - names: string[]; - // (undocumented) - sources: (string | null)[]; - // (undocumented) - sourcesContent?: (string | null)[]; - // (undocumented) - version: number; -} - -// @public (undocumented) -export interface Style { - // (undocumented) - autoModules?: boolean | RegExp; - // (undocumented) - cleanCss?: CleanCss.OptionsOutput | boolean; - // (undocumented) - inject?: boolean; - // (undocumented) - less?: { - additionalData?: AdditionalData; - implementation?: object | string; - lessOptions?: Less.Options; - }; - // (undocumented) - modules?: { - localsConvention?: 'camelCase' | 'camelCaseOnly' | 'dashes' | 'dashesOnly' | LocalsConventionFunction; - scopeBehaviour?: 'global' | 'local'; - globalModulePaths?: RegExp[]; - generateScopedName?: string | GenerateScopedNameFunction; - hashPrefix?: string; - exportGlobals?: boolean; - root?: string; - resolve?: (file: string) => string | Promise; - Loader?: typeof Loader; - getJSON?(cssFilename: string, json: { - [name: string]: string; - }, outputFilename?: string): void; - }; - // (undocumented) - postcss?: PostcssOptions; - // (undocumented) - sass?: { - additionalData?: AdditionalData; - implementation?: object | string; - sassOptions?: sassOptions; - }; -} - -// @public (undocumented) -export function toLevel(level: keyof typeof ErrorLevel): ErrorLevel; - -// @public (undocumented) -export function transform(err: any, opt?: LibuildErrorParams): LibuildError; - -// @public (undocumented) -export interface UserConfig { - asset?: Asset; - autoExternal?: boolean | { - dependencies?: boolean; - peerDependencies?: boolean; - }; - bundle?: boolean; - // (undocumented) - chunkNames?: string; - clean?: boolean; - // Warning: (ae-forgotten-export) The symbol "Define" needs to be exported by the entry point index.d.ts - // - // (undocumented) - define?: Define; - // (undocumented) - entryNames?: string; - esbuildOptions?: (options: BuildOptions) => BuildOptions; - // Warning: (ae-forgotten-export) The symbol "External" needs to be exported by the entry point index.d.ts - external?: External_2; - format?: Format; - // Warning: (ae-forgotten-export) The symbol "Globals" needs to be exported by the entry point index.d.ts - globals?: Globals; - // (undocumented) - inject?: string[]; - // Warning: (ae-forgotten-export) The symbol "Input" needs to be exported by the entry point index.d.ts - input?: Input; - // (undocumented) - jsx?: 'automatic' | 'preserve' | 'transform'; - // (undocumented) - loader?: Record; - logLevel?: LogLevel; - metafile?: boolean; - // Warning: (ae-forgotten-export) The symbol "Minify" needs to be exported by the entry point index.d.ts - minify?: Minify; - // (undocumented) - outbase?: string; - outdir?: string; - // Warning: (ae-forgotten-export) The symbol "Platform" needs to be exported by the entry point index.d.ts - // - // (undocumented) - platform?: Platform; - plugins?: LibuildPlugin[]; - redirect?: Redirect; - resolve?: Resolve; - sideEffects?: SideEffects; - sourceDir?: string; - // Warning: (ae-forgotten-export) The symbol "SourceMap" needs to be exported by the entry point index.d.ts - sourceMap?: SourceMap_2; - splitting?: boolean; - style?: Style; - target?: string; - transformCache?: boolean; - watch?: boolean; -} - -// @public (undocumented) -export function validateUserConfig(config: UserConfig): void; - -// @public (undocumented) -export function warpErrors(libuildErrors: LibuildError[], logLevel?: LogLevel): LibuildFailure; - -// Warnings were encountered during analysis: -// -// /Users/bytedance/modern.js/node_modules/.pnpm/@types+sass@1.43.1/node_modules/@types/sass/index.d.ts:53:19 - (ae-forgotten-export) The symbol "types" needs to be exported by the entry point index.d.ts -// src/types/config/style.ts:29:5 - (ae-forgotten-export) The symbol "AdditionalData" needs to be exported by the entry point index.d.ts -// src/types/config/style.ts:41:5 - (ae-forgotten-export) The symbol "LocalsConventionFunction" needs to be exported by the entry point index.d.ts -// src/types/config/style.ts:44:5 - (ae-forgotten-export) The symbol "GenerateScopedNameFunction" needs to be exported by the entry point index.d.ts -// src/types/config/style.ts:49:5 - (ae-forgotten-export) The symbol "Loader" needs to be exported by the entry point index.d.ts - -// (No @packageDocumentation comment for this package) - -``` diff --git a/packages/libuild/libuild-core/tsconfig.json b/packages/libuild/libuild-core/tsconfig.json index 8ebb42c875fb..4ab28802840b 100644 --- a/packages/libuild/libuild-core/tsconfig.json +++ b/packages/libuild/libuild-core/tsconfig.json @@ -7,5 +7,5 @@ "module": "CommonJS", "types": ["mocha", "less"] }, - "include": ["src", "test"] + "include": ["src", "test", "scripts"] } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e2a9d95b16a5..6a9b4b7852d3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -3497,9 +3497,6 @@ importers: '@types/sass': specifier: 1.43.1 version: 1.43.1 - '@types/semver': - specifier: 7.3.9 - version: 7.3.9 '@types/source-map-support': specifier: 0.5.4 version: 0.5.4 @@ -3551,9 +3548,6 @@ importers: es-module-lexer: specifier: 0.9.3 version: 0.9.3 - esbuild-plugin-license: - specifier: 1.2.2 - version: 1.2.2(esbuild@0.17.19) fs-extra: specifier: 10.0.0 version: 10.0.0 @@ -3596,9 +3590,6 @@ importers: safe-identifier: specifier: 0.4.2 version: 0.4.2 - semver: - specifier: 7.3.5 - version: 7.3.5 stack-trace: specifier: 1.0.0-pre1 version: 1.0.0-pre1 @@ -3623,9 +3614,6 @@ importers: typescript: specifier: 4.4.4 version: 4.4.4 - utility-types: - specifier: 3.10.0 - version: 3.10.0 yargs: specifier: 17.2.1 version: 17.2.1 @@ -8060,9 +8048,6 @@ importers: react-dom: specifier: 17.0.2 version: 17.0.2(react@17.0.2) - regenerator-runtime: - specifier: 0.13.9 - version: 0.13.9 sass: specifier: 1.54.5 version: 1.54.5 @@ -21818,14 +21803,6 @@ packages: dev: true optional: true - /esbuild-plugin-license@1.2.2(esbuild@0.17.19): - resolution: {integrity: sha512-sqa8V1pB6wr6L8lPQ+lD73ARTfi824H/smyUd4eBwvc+yGK0ZvfupXDqgmrFpP5zu6aTj8pMlnoowuDOjKGX5A==} - peerDependencies: - esbuild: '*' - dependencies: - esbuild: 0.17.19 - dev: true - /esbuild-sunos-64@0.13.15: resolution: {integrity: sha512-lbivT9Bx3t1iWWrSnGyBP9ODriEvWDRiweAs69vI+miJoeKwHWOComSRukttbuzjZ8r1q0mQJ8Z7yUsDJ3hKdw==} cpu: [x64] @@ -33107,14 +33084,6 @@ packages: resolution: {integrity: sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==} hasBin: true - /semver@7.3.5: - resolution: {integrity: sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==} - engines: {node: '>=10'} - hasBin: true - dependencies: - lru-cache: 6.0.0 - dev: true - /semver@7.3.7: resolution: {integrity: sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==} engines: {node: '>=10'} diff --git a/tests/integration/libuild/package.json b/tests/integration/libuild/package.json index dbc6d4684e81..5acc8e42b8bd 100644 --- a/tests/integration/libuild/package.json +++ b/tests/integration/libuild/package.json @@ -43,7 +43,6 @@ "object-inspect": "1.12.0", "react": "17.0.2", "react-dom": "17.0.2", - "regenerator-runtime": "0.13.9", "sass": "1.54.5", "source-map": "0.7.4", "the-answer": "1.0.0",