angular/packages/bazel/test/ng_package/example_package.golden
Alan Agius 7de7c52769 build: remove usages of useDefineForClassFields: false (#58297)
When setting `"useDefineForClassFields": false`, static fields are compiled within a block that relies on the `this` context. This output makes it more difficult for bundlers to treeshake and eliminate unused code.

PR Close #58297
2024-10-28 12:26:05 -07:00

355 lines
9.3 KiB
Text

LICENSE
README.md
_index.scss
a11y
a11y/index.d.ts
arbitrary-npm-package-main.js
arbitrary_bin.txt
arbitrary_genfiles.txt
extra-styles.css
fesm2022
fesm2022/a11y.mjs
fesm2022/a11y.mjs.map
fesm2022/imports.mjs
fesm2022/imports.mjs.map
fesm2022/secondary.mjs
fesm2022/secondary.mjs.map
fesm2022/waffels.mjs
fesm2022/waffels.mjs.map
imports
imports/index.d.ts
index.d.ts
logo.png
package.json
secondary
secondary/index.d.ts
some-file.txt
--- LICENSE ---
The MIT License
Copyright (c) 2010-2024 Google LLC. https://angular.dev/license
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.
--- README.md ---
Angular
=======
The sources for this package are in the main [Angular](https://github.com/angular/angular) repo. Please file issues and pull requests against that repo.
Usage information and reference details can be found in [Angular documentation](https://angular.dev/overview).
License: MIT
--- _index.scss ---
/// test file which should ship as part of the NPM package.
--- a11y/index.d.ts ---
/**
* @license Angular v0.0.0
* (c) 2010-2024 Google LLC. https://angular.io/
* License: MIT
*/
import * as i0 from '@angular/core';
export declare class A11yModule {
static ɵfac: i0.ɵɵFactoryDeclaration<A11yModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<A11yModule, never, never, never>;
static ɵinj: i0.ɵɵInjectorDeclaration<A11yModule>;
}
export { }
--- arbitrary-npm-package-main.js ---
/**
* @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
*/
const x = 1;
--- arbitrary_bin.txt ---
World
--- arbitrary_genfiles.txt ---
Hello
--- extra-styles.css ---
.special {
color: goldenrod;
}
--- fesm2022/a11y.mjs ---
/**
* @license Angular v0.0.0
* (c) 2010-2024 Google LLC. https://angular.io/
* License: MIT
*/
import * as i0 from '@angular/core';
import { NgModule } from '@angular/core';
class A11yModule {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0", ngImport: i0, type: A11yModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0", ngImport: i0, type: A11yModule });
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0", ngImport: i0, type: A11yModule });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0", ngImport: i0, type: A11yModule, decorators: [{
type: NgModule,
args: [{}]
}] });
/**
* Generated bundle index. Do not edit.
*/
export { A11yModule };
//# sourceMappingURL=a11y.mjs.map
--- fesm2022/imports.mjs ---
/**
* @license Angular v0.0.0
* (c) 2010-2024 Google LLC. https://angular.io/
* License: MIT
*/
import * as i0 from '@angular/core';
import { Injectable } from '@angular/core';
class MySecondService {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0", ngImport: i0, type: MySecondService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "0.0.0", ngImport: i0, type: MySecondService, providedIn: 'root' });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0", ngImport: i0, type: MySecondService, decorators: [{
type: Injectable,
args: [{ providedIn: 'root' }]
}] });
class MyService {
secondService;
constructor(secondService) {
this.secondService = secondService;
}
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0", ngImport: i0, type: MyService, deps: [{ token: MySecondService }], target: i0.ɵɵFactoryTarget.Injectable });
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "0.0.0", ngImport: i0, type: MyService, providedIn: 'root' });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0", ngImport: i0, type: MyService, decorators: [{
type: Injectable,
args: [{ providedIn: 'root' }]
}], ctorParameters: () => [{ type: MySecondService }] });
/**
* Generated bundle index. Do not edit.
*/
export { MyService };
//# sourceMappingURL=imports.mjs.map
--- fesm2022/secondary.mjs ---
/**
* @license Angular v0.0.0
* (c) 2010-2024 Google LLC. https://angular.io/
* License: MIT
*/
import * as i0 from '@angular/core';
import { NgModule } from '@angular/core';
class SecondaryModule {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0", ngImport: i0, type: SecondaryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0", ngImport: i0, type: SecondaryModule });
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0", ngImport: i0, type: SecondaryModule });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0", ngImport: i0, type: SecondaryModule, decorators: [{
type: NgModule,
args: [{}]
}] });
const a = 1;
/**
* Generated bundle index. Do not edit.
*/
export { SecondaryModule, a };
//# sourceMappingURL=secondary.mjs.map
--- fesm2022/waffels.mjs ---
/**
* @license Angular v0.0.0
* (c) 2010-2024 Google LLC. https://angular.io/
* License: MIT
*/
import * as i0 from '@angular/core';
import { NgModule } from '@angular/core';
class MyModule {
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "0.0.0", ngImport: i0, type: MyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "0.0.0", ngImport: i0, type: MyModule });
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0", ngImport: i0, type: MyModule });
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0", ngImport: i0, type: MyModule, decorators: [{
type: NgModule,
args: [{}]
}] });
/**
* Generated bundle index. Do not edit.
*/
export { MyModule };
//# sourceMappingURL=waffels.mjs.map
--- imports/index.d.ts ---
/**
* @license Angular v0.0.0
* (c) 2010-2024 Google LLC. https://angular.io/
* License: MIT
*/
import * as i0 from '@angular/core';
declare class MySecondService {
static ɵfac: i0.ɵɵFactoryDeclaration<MySecondService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<MySecondService>;
}
export declare class MyService {
secondService: MySecondService;
constructor(secondService: MySecondService);
static ɵfac: i0.ɵɵFactoryDeclaration<MyService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<MyService>;
}
export { }
--- index.d.ts ---
/**
* @license Angular v0.0.0
* (c) 2010-2024 Google LLC. https://angular.io/
* License: MIT
*/
import * as i0 from '@angular/core';
export declare class MyModule {
static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, never, never, never>;
static ɵinj: i0.ɵɵInjectorDeclaration<MyModule>;
}
export { }
--- logo.png ---
611871c1f492a69a8a5f57e01096b145
--- package.json ---
{
"name": "example",
"version": "0.0.0",
"exports": {
".": {
"sass": "./_index.scss",
"types": "./index.d.ts",
"default": "./fesm2022/waffels.mjs"
},
"./package.json": {
"default": "./package.json"
},
"./a11y": {
"types": "./a11y/index.d.ts",
"default": "./fesm2022/a11y.mjs"
},
"./imports": {
"types": "./imports/index.d.ts",
"default": "./fesm2022/imports.mjs"
},
"./secondary": {
"types": "./secondary/index.d.ts",
"default": "./fesm2022/secondary.mjs"
}
},
"module": "./fesm2022/waffels.mjs",
"typings": "./index.d.ts",
"type": "module"
}
--- secondary/index.d.ts ---
/**
* @license Angular v0.0.0
* (c) 2010-2024 Google LLC. https://angular.io/
* License: MIT
*/
import * as i0 from '@angular/core';
export declare const a = 1;
export declare class SecondaryModule {
static ɵfac: i0.ɵɵFactoryDeclaration<SecondaryModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<SecondaryModule, never, never, never>;
static ɵinj: i0.ɵɵInjectorDeclaration<SecondaryModule>;
}
export { }
--- some-file.txt ---
This file is just copied into the package.