_id stringlengths 21 254 | text stringlengths 1 93.7k | metadata dict |
|---|---|---|
angular-cli/packages/angular/build/src/tools/angular/compilation/aot-compilation.ts_0_8699 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type ng from '@angular/compiler-cli';
import assert from 'node:assert';
import { relative } from 'node:path';... | {
"end_byte": 8699,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/angular/compilation/aot-compilation.ts"
} |
angular-cli/packages/angular/build/src/tools/angular/compilation/aot-compilation.ts_8703_16007 | emitAffectedFiles(): Iterable<EmitFileResult> {
assert(this.#state, 'Angular compilation must be initialized prior to emitting files.');
const { affectedFiles, angularCompiler, compilerHost, typeScriptProgram, webWorkerTransform } =
this.#state;
const compilerOptions = typeScriptProgram.getCompilerOpt... | {
"end_byte": 16007,
"start_byte": 8703,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/angular/compilation/aot-compilation.ts"
} |
angular-cli/packages/angular/build/src/tools/angular/compilation/angular-compilation.ts_0_3929 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type ng from '@angular/compiler-cli';
import type { PartialMessage } from 'esbuild';
import type ts from 'typ... | {
"end_byte": 3929,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/angular/compilation/angular-compilation.ts"
} |
angular-cli/packages/angular/build/src/tools/angular/compilation/jit-compilation.ts_0_5892 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type ng from '@angular/compiler-cli';
import assert from 'node:assert';
import ts from 'typescript';
import {... | {
"end_byte": 5892,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/angular/compilation/jit-compilation.ts"
} |
angular-cli/packages/angular/build/src/tools/angular/compilation/index.ts_0_389 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
export { AngularCompilation, DiagnosticModes } from './angular-compilation';
export { createAngularCompilation } fro... | {
"end_byte": 389,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/angular/compilation/index.ts"
} |
angular-cli/packages/angular/build/src/tools/angular/compilation/noop-compilation.ts_0_1340 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type ng from '@angular/compiler-cli';
import type ts from 'typescript';
import { AngularHostOptions } from '.... | {
"end_byte": 1340,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/angular/compilation/noop-compilation.ts"
} |
angular-cli/packages/angular/build/src/tools/babel/typings.d.ts_0_632 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
declare module '@babel/helper-annotate-as-pure' {
export default function annotateAsPure(
pathOrNode: import('... | {
"end_byte": 632,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/babel/typings.d.ts"
} |
angular-cli/packages/angular/build/src/tools/babel/plugins/elide-angular-metadata.ts_0_4229 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type { NodePath, PluginObj } from '@babel/core';
/**
* The name of the Angular class metadata function crea... | {
"end_byte": 4229,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/babel/plugins/elide-angular-metadata.ts"
} |
angular-cli/packages/angular/build/src/tools/babel/plugins/pure-toplevel-functions_spec.ts_0_4092 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { transformSync } from '@babel/core';
// eslint-disable-next-line import/no-extraneous-dependencies
import { ... | {
"end_byte": 4092,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/babel/plugins/pure-toplevel-functions_spec.ts"
} |
angular-cli/packages/angular/build/src/tools/babel/plugins/adjust-typescript-enums_spec.ts_0_1390 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { transformSync } from '@babel/core';
// eslint-disable-next-line import/no-extraneous-dependencies
import { ... | {
"end_byte": 1390,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/babel/plugins/adjust-typescript-enums_spec.ts"
} |
angular-cli/packages/angular/build/src/tools/babel/plugins/adjust-typescript-enums_spec.ts_1391_10334 | describe('adjust-typescript-enums Babel plugin', () => {
it(
'wraps unexported TypeScript enums',
testCase({
input: `
var ChangeDetectionStrategy;
(function (ChangeDetectionStrategy) {
ChangeDetectionStrategy[ChangeDetectionStrategy["OnPush"] = 0] = "OnPush";
Chan... | {
"end_byte": 10334,
"start_byte": 1391,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/babel/plugins/adjust-typescript-enums_spec.ts"
} |
angular-cli/packages/angular/build/src/tools/babel/plugins/adjust-typescript-enums_spec.ts_10338_11214 | it(
'should wrap TypeScript enums if the declaration identifier has been renamed to avoid collisions',
testCase({
input: `
var ChangeDetectionStrategy$1;
(function (ChangeDetectionStrategy) {
ChangeDetectionStrategy[ChangeDetectionStrategy["OnPush"] = 0] = "OnPush";
... | {
"end_byte": 11214,
"start_byte": 10338,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/babel/plugins/adjust-typescript-enums_spec.ts"
} |
angular-cli/packages/angular/build/src/tools/babel/plugins/adjust-static-class-members_spec.ts_0_1098 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { transformSync } from '@babel/core';
// eslint-disable-next-line import/no-extraneous-dependencies
import { ... | {
"end_byte": 1098,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/babel/plugins/adjust-static-class-members_spec.ts"
} |
angular-cli/packages/angular/build/src/tools/babel/plugins/adjust-static-class-members_spec.ts_1100_9955 | describe('adjust-static-class-members Babel plugin', () => {
it(
'elides empty ctorParameters function expression static field',
testCase({
input: `
export class SomeClass {}
SomeClass.ctorParameters = function () { return []; };
`,
expected: 'export class SomeClass {}',
... | {
"end_byte": 9955,
"start_byte": 1100,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/babel/plugins/adjust-static-class-members_spec.ts"
} |
angular-cli/packages/angular/build/src/tools/babel/plugins/adjust-static-class-members_spec.ts_9959_19098 | it(
'wraps class with closure pure annotated side effect fields',
testCase({
input: `
class CustomComponentEffects {
constructor(_actions) {
this._actions = _actions;
this.doThis = this._actions;
}
}
CustomComponentEffects.someFieldWithSi... | {
"end_byte": 19098,
"start_byte": 9959,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/babel/plugins/adjust-static-class-members_spec.ts"
} |
angular-cli/packages/angular/build/src/tools/babel/plugins/adjust-static-class-members_spec.ts_19102_26148 |
'does not wrap class with field decorators when wrapDecorators is false',
testCase({
input: `
class SomeClass {
constructor() {
this.foo = 42;
}
}
__decorate([
SomeDecorator
], SomeClass.prototype, "foo", void 0);
`,
... | {
"end_byte": 26148,
"start_byte": 19102,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/babel/plugins/adjust-static-class-members_spec.ts"
} |
angular-cli/packages/angular/build/src/tools/babel/plugins/types.d.ts_0_590 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
declare module 'istanbul-lib-instrument' {
export interface Visitor {
enter(path: import('@babel/core').NodePa... | {
"end_byte": 590,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/babel/plugins/types.d.ts"
} |
angular-cli/packages/angular/build/src/tools/babel/plugins/add-code-coverage.ts_0_1268 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { NodePath, PluginObj, types } from '@babel/core';
import { Visitor, programVisitor } from 'istanbul-lib-inst... | {
"end_byte": 1268,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/babel/plugins/add-code-coverage.ts"
} |
angular-cli/packages/angular/build/src/tools/babel/plugins/pure-toplevel-functions.ts_0_2173 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type { PluginObj } from '@babel/core';
import annotateAsPure from '@babel/helper-annotate-as-pure';
import * ... | {
"end_byte": 2173,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/babel/plugins/pure-toplevel-functions.ts"
} |
angular-cli/packages/angular/build/src/tools/babel/plugins/elide-angular-metadata_spec.ts_0_6421 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { transformSync } from '@babel/core';
// eslint-disable-next-line import/no-extraneous-dependencies
import { ... | {
"end_byte": 6421,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/babel/plugins/elide-angular-metadata_spec.ts"
} |
angular-cli/packages/angular/build/src/tools/babel/plugins/adjust-typescript-enums.ts_0_4239 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { NodePath, PluginObj, types } from '@babel/core';
import annotateAsPure from '@babel/helper-annotate-as-pure... | {
"end_byte": 4239,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/babel/plugins/adjust-typescript-enums.ts"
} |
angular-cli/packages/angular/build/src/tools/babel/plugins/index.ts_0_511 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
export { default as adjustStaticMembers } from './adjust-static-class-members';
export { default as adjustTypeScript... | {
"end_byte": 511,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/babel/plugins/index.ts"
} |
angular-cli/packages/angular/build/src/tools/babel/plugins/adjust-static-class-members.ts_0_7463 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { NodePath, PluginObj, PluginPass, types } from '@babel/core';
import annotateAsPure from '@babel/helper-anno... | {
"end_byte": 7463,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/babel/plugins/adjust-static-class-members.ts"
} |
angular-cli/packages/angular/build/src/tools/babel/plugins/adjust-static-class-members.ts_7464_14914 | default function (): PluginObj {
return {
visitor: {
// When a class is converted to a variable declaration, the default export must be moved
// to a subsequent statement to prevent a JavaScript syntax error.
ExportDefaultDeclaration(path: NodePath<types.ExportDefaultDeclaration>, state: PluginP... | {
"end_byte": 14914,
"start_byte": 7464,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/babel/plugins/adjust-static-class-members.ts"
} |
angular-cli/packages/angular/build/src/tools/vite/utils.ts_0_1026 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { lookup as lookupMimeType } from 'mrmime';
import { extname } from 'node:path';
export type AngularMemoryOu... | {
"end_byte": 1026,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/vite/utils.ts"
} |
angular-cli/packages/angular/build/src/tools/vite/plugins/setup-middlewares-plugin.ts_0_3458 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type { Connect, Plugin } from 'vite';
import {
angularHtmlFallbackMiddleware,
createAngularAssetsMiddlewa... | {
"end_byte": 3458,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/vite/plugins/setup-middlewares-plugin.ts"
} |
angular-cli/packages/angular/build/src/tools/vite/plugins/i18n-locale-plugin.ts_0_1858 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type { Plugin } from 'vite';
/**
* The base module location used to search for locale specific data.
*/
co... | {
"end_byte": 1858,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/vite/plugins/i18n-locale-plugin.ts"
} |
angular-cli/packages/angular/build/src/tools/vite/plugins/ssr-transform-plugin.ts_0_1383 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import remapping, { SourceMapInput } from '@ampproject/remapping';
import type { Plugin } from 'vite';
import { load... | {
"end_byte": 1383,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/vite/plugins/ssr-transform-plugin.ts"
} |
angular-cli/packages/angular/build/src/tools/vite/plugins/index.ts_0_579 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
export { createAngularMemoryPlugin } from './angular-memory-plugin';
export { createAngularLocaleDataPlugin } from '... | {
"end_byte": 579,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/vite/plugins/index.ts"
} |
angular-cli/packages/angular/build/src/tools/vite/plugins/id-prefix-plugin.ts_0_1847 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type { Plugin } from 'vite';
// NOTE: the implementation for this Vite plugin is roughly based on:
// https:... | {
"end_byte": 1847,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/vite/plugins/id-prefix-plugin.ts"
} |
angular-cli/packages/angular/build/src/tools/vite/plugins/angular-memory-plugin.ts_0_4203 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import assert from 'node:assert';
import { readFile } from 'node:fs/promises';
import { basename, dirname, join, rel... | {
"end_byte": 4203,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/vite/plugins/angular-memory-plugin.ts"
} |
angular-cli/packages/angular/build/src/tools/vite/middlewares/component-middleware.ts_0_1063 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type { Connect } from 'vite';
const ANGULAR_COMPONENT_PREFIX = '/@ng/component';
export function createAngu... | {
"end_byte": 1063,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/vite/middlewares/component-middleware.ts"
} |
angular-cli/packages/angular/build/src/tools/vite/middlewares/html-fallback-middleware.ts_0_1540 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type { ServerResponse } from 'node:http';
import type { Connect } from 'vite';
import { lookupMimeTypeFromReq... | {
"end_byte": 1540,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/vite/middlewares/html-fallback-middleware.ts"
} |
angular-cli/packages/angular/build/src/tools/vite/middlewares/index-html-middleware.ts_0_1547 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { extname } from 'node:path';
import type { Connect, ViteDevServer } from 'vite';
import { AngularMemoryOutpu... | {
"end_byte": 1547,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/vite/middlewares/index-html-middleware.ts"
} |
angular-cli/packages/angular/build/src/tools/vite/middlewares/assets-middleware.ts_0_6887 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { lookup as lookupMimeType } from 'mrmime';
import { extname } from 'node:path';
import type { Connect, ViteD... | {
"end_byte": 6887,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/vite/middlewares/assets-middleware.ts"
} |
angular-cli/packages/angular/build/src/tools/vite/middlewares/headers-middleware.ts_0_1343 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type { ServerResponse } from 'node:http';
import type { Connect, ViteDevServer } from 'vite';
/**
* Creates... | {
"end_byte": 1343,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/vite/middlewares/headers-middleware.ts"
} |
angular-cli/packages/angular/build/src/tools/vite/middlewares/ssr-middleware.ts_0_5075 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type {
AngularAppEngine as SSRAngularAppEngine,
ɵgetOrCreateAngularServerApp as getOrCreateAngularServerA... | {
"end_byte": 5075,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/vite/middlewares/ssr-middleware.ts"
} |
angular-cli/packages/angular/build/src/tools/vite/middlewares/index.ts_0_683 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
export { createAngularAssetsMiddleware } from './assets-middleware';
export { angularHtmlFallbackMiddleware } from '... | {
"end_byte": 683,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/vite/middlewares/index.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/bundler-execution-result.ts_0_5921 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type { Message, PartialMessage } from 'esbuild';
import { normalize } from 'node:path';
import type { Changed... | {
"end_byte": 5921,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/bundler-execution-result.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/profiling.ts_0_2276 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { debugPerformance } from '../../utils/environment-options';
let cumulativeDurations: Map<string, number[]> ... | {
"end_byte": 2276,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/profiling.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/rxjs-esm-resolution-plugin.ts_0_1433 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type { Plugin } from 'esbuild';
const RXJS_ESM_RESOLUTION = Symbol('RXJS_ESM_RESOLUTION');
/**
* Creates a... | {
"end_byte": 1433,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/rxjs-esm-resolution-plugin.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/global-styles.ts_0_3277 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import assert from 'node:assert';
import { NormalizedApplicationBuildOptions } from '../../builders/application/opti... | {
"end_byte": 3277,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/global-styles.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/server-bundle-metadata-plugin.ts_0_1276 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type { Plugin } from 'esbuild';
/**
* Generates an esbuild plugin that appends metadata to the output bundl... | {
"end_byte": 1276,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/server-bundle-metadata-plugin.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/compiler-plugin-options.ts_0_1350 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { NormalizedApplicationBuildOptions } from '../../builders/application/options';
import type { createCompiler... | {
"end_byte": 1350,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/compiler-plugin-options.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/external-packages-plugin.ts_0_2906 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type { Plugin } from 'esbuild';
import { extname } from 'node:path';
const EXTERNAL_PACKAGE_RESOLUTION = Sym... | {
"end_byte": 2906,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/external-packages-plugin.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/load-result-cache.ts_0_2718 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type { OnLoadResult, PluginBuild } from 'esbuild';
import { normalize } from 'node:path';
export interface L... | {
"end_byte": 2718,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/load-result-cache.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/javascript-transformer-worker.ts_0_6107 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { type PluginItem, transformAsync } from '@babel/core';
import fs from 'node:fs';
import path from 'node:path... | {
"end_byte": 6107,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/javascript-transformer-worker.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/watcher.ts_0_3268 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import WatchPack from 'watchpack';
export class ChangedFiles {
readonly added = new Set<string>();
readonly mod... | {
"end_byte": 3268,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/watcher.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/lmdb-cache-store.ts_0_1323 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { RootDatabase, open } from 'lmdb';
import { Cache, CacheStore } from './cache';
export class LmbdCacheStore... | {
"end_byte": 1323,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/lmdb-cache-store.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/wasm.d.ts_0_831 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
/** @fileoverview
* TypeScript does not provide a separate lib for WASM types and the Node.js
* types (`@types/nod... | {
"end_byte": 831,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/wasm.d.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/i18n-inliner-worker.ts_0_6616 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import remapping, { SourceMapInput } from '@ampproject/remapping';
import { PluginObj, parseSync, transformFromAstAs... | {
"end_byte": 6616,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/i18n-inliner-worker.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/utils.ts_0_7341 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { BuilderContext } from '@angular-devkit/architect';
import { BuildOptions, Metafile, OutputFile, formatMessa... | {
"end_byte": 7341,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/utils.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/utils.ts_7343_15188 | export function createOutputFile(
path: string,
data: string | Uint8Array,
type: BuildOutputFileType,
): BuildOutputFile {
if (typeof data === 'string') {
let cachedContents: Uint8Array | null = null;
let cachedText: string | null = data;
let cachedHash: string | null = null;
return {
pat... | {
"end_byte": 15188,
"start_byte": 7343,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/utils.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/i18n-locale-plugin.ts_0_4893 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type { Plugin } from 'esbuild';
/**
* The internal namespace used by generated locale import statements and... | {
"end_byte": 4893,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/i18n-locale-plugin.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/global-scripts.ts_0_5061 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import MagicString, { Bundle } from 'magic-string';
import assert from 'node:assert';
import { readFile } from 'node... | {
"end_byte": 5061,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/global-scripts.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/loader-import-attribute-plugin.ts_0_1163 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type { Loader, Plugin } from 'esbuild';
import { readFile } from 'node:fs/promises';
const SUPPORTED_LOADERS... | {
"end_byte": 1163,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/loader-import-attribute-plugin.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/budget-stats.ts_0_2404 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type { Metafile } from 'esbuild';
import type { BudgetStats } from '../../utils/bundle-calculator';
import {
... | {
"end_byte": 2404,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/budget-stats.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/cache.ts_0_4022 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
/**
* @fileoverview
* Provides infrastructure for common caching functionality within the build system.
*/
/**
... | {
"end_byte": 4022,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/cache.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/i18n-inliner.ts_0_6062 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import assert from 'node:assert';
import { WorkerPool } from '../../utils/worker-pool';
import { BuildOutputFile, Bu... | {
"end_byte": 6062,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/i18n-inliner.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/bundler-context.ts_0_6164 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import {
BuildContext,
BuildFailure,
BuildOptions,
BuildResult,
Message,
Metafile,
OutputFile,
build... | {
"end_byte": 6164,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/bundler-context.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/bundler-context.ts_6167_15103 | async #performBundle(): Promise<BundleContextResult> {
// Create esbuild options if not present
if (this.#esbuildOptions === undefined) {
if (this.incremental) {
this.#loadCache = new MemoryLoadResultCache();
}
this.#esbuildOptions = this.#optionsFactory(this.#loadCache);
}
if... | {
"end_byte": 15103,
"start_byte": 6167,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/bundler-context.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/bundler-context.ts_15105_15191 | function isInternalAngularFile(file: string) {
return file.startsWith('angular:');
} | {
"end_byte": 15191,
"start_byte": 15105,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/bundler-context.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/index-html-generator.ts_0_4108 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import assert from 'node:assert';
import path from 'node:path';
import { NormalizedApplicationBuildOptions } from '.... | {
"end_byte": 4108,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/index-html-generator.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/commonjs-checker.ts_0_6123 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type { Metafile, PartialMessage } from 'esbuild';
/**
* Checks the input files of a build to determine if a... | {
"end_byte": 6123,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/commonjs-checker.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/sourcemap-ignorelist-plugin.ts_0_2947 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type { Plugin } from 'esbuild';
/**
* The field identifier for the sourcemap Chrome Devtools ignore list ex... | {
"end_byte": 2947,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/sourcemap-ignorelist-plugin.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/javascript-transformer.ts_0_6146 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { createHash } from 'node:crypto';
import { readFile } from 'node:fs/promises';
import { WorkerPool } from '.... | {
"end_byte": 6146,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/javascript-transformer.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/application-code-bundle.ts_0_8014 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type { BuildOptions, PartialMessage } from 'esbuild';
import assert from 'node:assert';
import { createHash }... | {
"end_byte": 8014,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/application-code-bundle.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/application-code-bundle.ts_8016_12696 | export function createServerMainCodeBundleOptions(
options: NormalizedApplicationBuildOptions,
target: string[],
sourceFileCache: SourceFileCache,
stylesheetBundler: ComponentStylesheetBundler,
): BuildOptions {
const {
serverEntryPoint: mainServerEntryPoint,
workspaceRoot,
outputMode,
externa... | {
"end_byte": 12696,
"start_byte": 8016,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/application-code-bundle.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/application-code-bundle.ts_12698_20749 | t function createSsrEntryCodeBundleOptions(
options: NormalizedApplicationBuildOptions,
target: string[],
sourceFileCache: SourceFileCache,
stylesheetBundler: ComponentStylesheetBundler,
): BuildOptions {
const { workspaceRoot, ssrOptions, externalPackages } = options;
const serverEntryPoint = ssrOptions?.e... | {
"end_byte": 20749,
"start_byte": 12698,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/application-code-bundle.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/application-code-bundle.ts_20751_24523 | n getEsBuildCommonPolyfillsOptions(
options: NormalizedApplicationBuildOptions,
namespace: string,
tryToResolvePolyfillsAsRelative: boolean,
sourceFileCache: SourceFileCache | undefined,
): BuildOptions | undefined {
const { jit, workspaceRoot, i18nOptions } = options;
const buildOptions: BuildOptions = {
... | {
"end_byte": 24523,
"start_byte": 20751,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/application-code-bundle.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/license-extractor.ts_0_6042 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type { Metafile } from 'esbuild';
import { readFile } from 'node:fs/promises';
import path from 'node:path';
... | {
"end_byte": 6042,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/license-extractor.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/virtual-module-plugin.ts_0_2081 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type { OnLoadArgs, Plugin, PluginBuild } from 'esbuild';
import { LoadResultCache, createCachedLoad } from '.... | {
"end_byte": 2081,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/virtual-module-plugin.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/wasm-plugin.ts_0_8736 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type { Plugin, ResolveOptions } from 'esbuild';
import assert from 'node:assert';
import { createHash } from ... | {
"end_byte": 8736,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/wasm-plugin.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/wasm-plugin.ts_8737_9508 | function generateInitHelper(streaming: boolean, wasmContents: Uint8Array) {
let resultContents;
if (streaming) {
const fetchOptions = {
integrity: 'sha256-' + createHash('sha-256').update(wasmContents).digest('base64'),
};
const fetchContents = `fetch(new URL(wasmPath, import.meta.url), ${JSON.str... | {
"end_byte": 9508,
"start_byte": 8737,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/wasm-plugin.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/angular/compiler-plugin.ts_0_5611 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type {
BuildFailure,
Loader,
Metafile,
OnStartResult,
OutputFile,
PartialMessage,
Plugin,
Plu... | {
"end_byte": 5611,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/angular/compiler-plugin.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/angular/compiler-plugin.ts_5618_16574 | build.onStart(async () => {
sharedTSCompilationState = getSharedCompilationState();
if (!(compilation instanceof NoopCompilation)) {
sharedTSCompilationState.markAsInProgress();
}
const result: OnStartResult = {
warnings: setupWarnings,
};
// Reset d... | {
"end_byte": 16574,
"start_byte": 5618,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/angular/compiler-plugin.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/angular/compiler-plugin.ts_16582_22664 | build.onLoad({ filter: /\.[cm]?[jt]sx?$/ }, async (args) => {
const request = path.normalize(
pluginOptions.fileReplacements?.[path.normalize(args.path)] ?? args.path,
);
const isJS = /\.[cm]?js$/.test(request);
// Skip TS load attempt if JS TypeScript compilation not enabled ... | {
"end_byte": 22664,
"start_byte": 16582,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/angular/compiler-plugin.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/angular/compiler-plugin.ts_22666_27552 | function createCompilerOptionsTransformer(
setupWarnings: PartialMessage[] | undefined,
pluginOptions: CompilerPluginOptions,
preserveSymlinks: boolean | undefined,
customConditions: string[] | undefined,
): Parameters<AngularCompilation['initialize']>[2] {
return (compilerOptions) => {
// target of 9 is ... | {
"end_byte": 27552,
"start_byte": 22666,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/angular/compiler-plugin.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/angular/compilation-state.ts_0_1332 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
export class SharedTSCompilationState {
#pendingCompilation = true;
#resolveCompilationReady: ((value: boolean) ... | {
"end_byte": 1332,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/angular/compilation-state.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/angular/jit-plugin-callbacks.ts_0_5492 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type { Metafile, OutputFile, PluginBuild } from 'esbuild';
import { readFile } from 'node:fs/promises';
impor... | {
"end_byte": 5492,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/angular/jit-plugin-callbacks.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/angular/source-file-cache.ts_0_1324 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { platform } from 'node:os';
import * as path from 'node:path';
import type ts from 'typescript';
import { Me... | {
"end_byte": 1324,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/angular/source-file-cache.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/angular/diagnostics.ts_0_3264 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type { PartialMessage, PartialNote } from 'esbuild';
import { platform } from 'node:os';
import type ts from ... | {
"end_byte": 3264,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/angular/diagnostics.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/angular/file-reference-tracker.ts_0_2016 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { normalize } from 'node:path';
export class FileReferenceTracker {
#referencingFiles = new Map<string, Se... | {
"end_byte": 2016,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/angular/file-reference-tracker.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/angular/component-stylesheets.ts_0_7841 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { OutputFile } from 'esbuild';
import assert from 'node:assert';
import { createHash } from 'node:crypto';
im... | {
"end_byte": 7841,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/angular/component-stylesheets.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/stylesheets/bundle-options.ts_0_3387 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type { BuildOptions, Plugin } from 'esbuild';
import path from 'node:path';
import { NormalizedCachedOptions ... | {
"end_byte": 3387,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/stylesheets/bundle-options.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/stylesheets/sass-language.ts_0_8386 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type { OnLoadResult, PartialMessage, PartialNote, ResolveResult } from 'esbuild';
import { dirname, join, rel... | {
"end_byte": 8386,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/stylesheets/sass-language.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/stylesheets/css-inline-fonts-plugin.ts_0_2321 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type { Plugin, PluginBuild } from 'esbuild';
import { InlineFontsProcessor } from '../../../utils/index-file/... | {
"end_byte": 2321,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/stylesheets/css-inline-fonts-plugin.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/stylesheets/css-resource-plugin.ts_0_4626 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type { Plugin, PluginBuild } from 'esbuild';
import { readFile } from 'node:fs/promises';
import { extname, j... | {
"end_byte": 4626,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/stylesheets/css-resource-plugin.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/stylesheets/css-language.ts_0_415 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { StylesheetLanguage } from './stylesheet-plugin-factory';
export const CssStylesheetLanguage = Object.freez... | {
"end_byte": 415,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/stylesheets/css-language.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/stylesheets/less-language.ts_0_5565 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type { Location, OnLoadResult, PluginBuild } from 'esbuild';
import { readFile } from 'node:fs/promises';
imp... | {
"end_byte": 5565,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/stylesheets/less-language.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/stylesheets/stylesheet-plugin-factory.ts_0_8206 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import type { OnLoadResult, Plugin, PluginBuild } from 'esbuild';
import glob from 'fast-glob';
import assert from '... | {
"end_byte": 8206,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/stylesheets/stylesheet-plugin-factory.ts"
} |
angular-cli/packages/angular/build/src/tools/esbuild/stylesheets/stylesheet-plugin-factory.ts_8208_13639 | async function processStylesheet(
language: Readonly<StylesheetLanguage>,
data: string,
filename: string,
format: string,
options: StylesheetPluginOptions,
build: PluginBuild,
postcssProcessor: PostcssProcessor | undefined,
) {
let result: OnLoadResult;
// Process the input data if the language requi... | {
"end_byte": 13639,
"start_byte": 8208,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/esbuild/stylesheets/stylesheet-plugin-factory.ts"
} |
angular-cli/packages/angular/build/src/tools/sass/lexer.ts_0_5113 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
// TODO: Combine everything into a single pass lexer
/**
* Determines if a unicode code point is a CSS whitespace ... | {
"end_byte": 5113,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/sass/lexer.ts"
} |
angular-cli/packages/angular/build/src/tools/sass/sass-service.ts_0_7719 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import assert from 'node:assert';
import { fileURLToPath, pathToFileURL } from 'node:url';
import { MessageChannel }... | {
"end_byte": 7719,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/sass/sass-service.ts"
} |
angular-cli/packages/angular/build/src/tools/sass/rebasing-importer.ts_0_4904 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { RawSourceMap } from '@ampproject/remapping';
import MagicString from 'magic-string';
import { readFileSync,... | {
"end_byte": 4904,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/sass/rebasing-importer.ts"
} |
angular-cli/packages/angular/build/src/tools/sass/rebasing-importer.ts_4905_13184 | export class RelativeUrlRebasingImporter extends UrlRebasingImporter {
constructor(
entryDirectory: string,
private directoryCache = new Map<string, DirectoryEntry>(),
rebaseSourceMaps?: Map<string, RawSourceMap>,
) {
super(entryDirectory, rebaseSourceMaps);
}
canonicalize(url: string, options:... | {
"end_byte": 13184,
"start_byte": 4905,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/sass/rebasing-importer.ts"
} |
angular-cli/packages/angular/build/src/tools/sass/rebasing-importer.ts_13185_14383 | export class LoadPathsUrlRebasingImporter extends RelativeUrlRebasingImporter {
constructor(
entryDirectory: string,
directoryCache: Map<string, DirectoryEntry>,
rebaseSourceMaps: Map<string, RawSourceMap> | undefined,
private loadPaths: Iterable<string>,
) {
super(entryDirectory, directoryCache... | {
"end_byte": 14383,
"start_byte": 13185,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/sass/rebasing-importer.ts"
} |
angular-cli/packages/angular/build/src/tools/sass/lexer_spec.ts_0_912 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import { findUrls } from './lexer';
describe('Sass URL lexer', () => {
it('should find url immediately after a co... | {
"end_byte": 912,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/sass/lexer_spec.ts"
} |
angular-cli/packages/angular/build/src/tools/sass/worker.ts_0_8674 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
import mergeSourceMaps, { RawSourceMap } from '@ampproject/remapping';
import { dirname } from 'node:path';
import {... | {
"end_byte": 8674,
"start_byte": 0,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/sass/worker.ts"
} |
angular-cli/packages/angular/build/src/tools/sass/worker.ts_8675_9906 | function convertSourceSpan(span: SourceSpan): Omit<SourceSpan, 'url'> & { url?: string } {
return {
text: span.text,
context: span.context,
end: {
column: span.end.column,
offset: span.end.offset,
line: span.end.line,
},
start: {
column: span.start.column,
offset: spa... | {
"end_byte": 9906,
"start_byte": 8675,
"url": "https://github.com/angular/angular-cli/blob/main/packages/angular/build/src/tools/sass/worker.ts"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.