2018-12-25 17:16:56 -05:00
README.md
2020-03-02 05:19:59 -05:00
a11y
a11y/a11y.d.ts
a11y/a11y.metadata.json
a11y/package.json
a11y.d.ts
a11y.metadata.json
2018-03-23 18:32:10 -04:00
arbitrary-npm-package-main.js
2018-03-21 19:18:06 -04:00
arbitrary_bin.txt
arbitrary_genfiles.txt
2018-03-15 21:04:34 -04:00
bundles
2020-03-02 05:19:59 -05:00
bundles/waffels-a11y.umd.js
bundles/waffels-a11y.umd.js.map
2020-03-03 14:23:55 -05:00
bundles/waffels-imports.umd.js
bundles/waffels-imports.umd.js.map
2018-04-02 19:52:13 -04:00
bundles/waffels-secondary.umd.js
bundles/waffels-secondary.umd.js.map
bundles/waffels.umd.js
bundles/waffels.umd.js.map
2018-03-15 21:04:34 -04:00
esm2015
2020-03-02 05:19:59 -05:00
esm2015/a11y
esm2015/a11y/a11y.externs.js
esm2015/a11y/a11y.js
esm2015/a11y/index.js
esm2015/a11y/public-api.js
2018-03-15 21:04:34 -04:00
esm2015/example.externs.js
2018-12-25 14:50:54 -05:00
esm2015/example.js
2020-03-03 14:23:55 -05:00
esm2015/imports
esm2015/imports/imports.externs.js
esm2015/imports/imports.js
esm2015/imports/index.js
esm2015/imports/public-api.js
esm2015/imports/second.js
2018-03-15 21:04:34 -04:00
esm2015/index.js
esm2015/mymodule.js
esm2015/secondary
esm2015/secondary/index.js
esm2015/secondary/secondary.externs.js
2018-12-25 14:50:54 -05:00
esm2015/secondary/secondary.js
2018-03-15 21:04:34 -04:00
esm2015/secondary/secondarymodule.js
2018-12-25 14:50:54 -05:00
example.d.ts
example.metadata.json
2018-03-21 19:18:06 -04:00
extra-styles.css
2018-03-20 12:58:05 -04:00
fesm2015
2020-03-02 05:19:59 -05:00
fesm2015/a11y.js
fesm2015/a11y.js.map
2020-03-03 14:23:55 -05:00
fesm2015/imports.js
fesm2015/imports.js.map
2018-03-20 12:58:05 -04:00
fesm2015/secondary.js
fesm2015/secondary.js.map
2018-04-02 19:52:13 -04:00
fesm2015/waffels.js
fesm2015/waffels.js.map
2020-03-03 14:23:55 -05:00
imports
imports/imports.d.ts
imports/imports.metadata.json
imports/package.json
imports.d.ts
imports.metadata.json
2019-09-17 12:30:27 -04:00
logo.png
2018-03-15 21:04:34 -04:00
package.json
secondary
secondary/package.json
2018-12-25 14:50:54 -05:00
secondary/secondary.d.ts
secondary/secondary.metadata.json
2018-03-15 21:04:34 -04:00
secondary.d.ts
secondary.metadata.json
some-file.txt
2018-12-25 17:16:56 -05:00
--- 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.
2019-11-18 17:22:25 -05:00
Usage information and reference details can be found in [Angular documentation](https://angular.io/docs).
2018-12-25 17:16:56 -05:00
License: MIT
2020-03-02 05:19:59 -05:00
--- a11y/a11y.d.ts ---
/**
* @license Angular v0.0.0
2021-02-19 16:17:11 -05:00
* (c) 2010-2021 Google LLC. https://angular.io/
2020-03-02 05:19:59 -05:00
* License: MIT
*/
export declare class A11yModule {
}
export { }
--- a11y/a11y.metadata.json ---
{"__symbolic":"module","version":4,"metadata":{"A11yModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":10,"character":1},"arguments":[{}]}],"members":{}}},"origins":{"A11yModule":"./a11y"},"importAs":"example/a11y"}
--- a11y/package.json ---
{
"name": "example/a11y",
"main": "../bundles/example-a11y.umd.js",
"fesm2015": "../fesm2015/a11y.js",
"esm2015": "../esm2015/a11y/a11y.js",
"typings": "./a11y.d.ts",
2020-05-06 00:35:44 -04:00
"module": "../fesm2015/a11y.js",
2020-03-02 05:19:59 -05:00
"es2015": "../fesm2015/a11y.js"
}
--- a11y.d.ts ---
/**
* @license Angular v0.0.0
2021-02-19 16:17:11 -05:00
* (c) 2010-2021 Google LLC. https://angular.io/
2020-03-02 05:19:59 -05:00
* License: MIT
*/
export * from './a11y/a11y';
--- a11y.metadata.json ---
{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./a11y/a11y"}],"flatModuleIndexRedirect":true,"importAs":"example/a11y"}
2018-03-23 18:32:10 -04:00
--- arbitrary-npm-package-main.js ---
2018-03-29 19:24:59 -04:00
/**
* @license
2020-05-19 15:08:49 -04:00
* Copyright Google LLC All Rights Reserved.
2018-03-29 19:24:59 -04:00
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
2018-03-23 18:32:10 -04:00
const x = 1;
2018-03-21 19:18:06 -04:00
--- arbitrary_bin.txt ---
World
--- arbitrary_genfiles.txt ---
Hello
2020-03-02 05:19:59 -05:00
--- bundles/waffels-a11y.umd.js ---
/**
* @license Angular v0.0.0
2021-02-19 16:17:11 -05:00
* (c) 2010-2021 Google LLC. https://angular.io/
2020-03-02 05:19:59 -05:00
* License: MIT
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core')) :
typeof define === 'function' && define.amd ? define('example/a11y', ['exports', '@angular/core'], factory) :
2020-03-02 05:28:18 -05:00
(global = global || self, factory((global.example = global.example || {}, global.example.a11y = {}), global.ng.core));
2020-03-02 05:19:59 -05:00
}(this, (function (exports, core) { 'use strict';
/**
* @license
2020-05-19 15:08:49 -04:00
* Copyright Google LLC All Rights Reserved.
2020-03-02 05:19:59 -05:00
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var A11yModule = /** @class */ (function () {
function A11yModule() {
}
return A11yModule;
}());
2020-06-16 17:17:22 -04:00
A11yModule.decorators = [
{ type: core.NgModule, args: [{},] }
];
2020-03-02 05:19:59 -05:00
/**
* @license
2020-05-19 15:08:49 -04:00
* Copyright Google LLC All Rights Reserved.
2020-03-02 05:19:59 -05:00
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Generated bundle index. Do not edit.
*/
exports.A11yModule = A11yModule;
Object.defineProperty(exports, '__esModule', { value: true });
})));
//# sourceMappingURL=waffels-a11y.umd.js.map
2020-03-03 14:23:55 -05:00
--- bundles/waffels-imports.umd.js ---
/**
* @license Angular v0.0.0
2021-02-19 16:17:11 -05:00
* (c) 2010-2021 Google LLC. https://angular.io/
2020-03-03 14:23:55 -05:00
* License: MIT
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core')) :
typeof define === 'function' && define.amd ? define('example/imports', ['exports', '@angular/core'], factory) :
(global = global || self, factory((global.example = global.example || {}, global.example.imports = {}), global.ng.core));
}(this, (function (exports, i0) { 'use strict';
2020-05-27 17:09:01 -04:00
/**
* @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.io/license
*/
2020-03-03 14:23:55 -05:00
var MySecondService = /** @class */ (function () {
function MySecondService() {
}
return MySecondService;
}());
2020-06-16 17:17:22 -04:00
MySecondService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MySecondService_Factory() { return new MySecondService(); }, token: MySecondService, providedIn: "root" });
MySecondService.decorators = [
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
];
2020-03-03 14:23:55 -05:00
2020-05-27 17:09:01 -04:00
/**
* @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.io/license
*/
2020-03-03 14:23:55 -05:00
var MyService = /** @class */ (function () {
function MyService(secondService) {
this.secondService = secondService;
}
return MyService;
}());
2020-06-16 17:17:22 -04:00
MyService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MyService_Factory() { return new MyService(i0.ɵɵinject(MySecondService)); }, token: MyService, providedIn: "root" });
MyService.decorators = [
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
];
MyService.ctorParameters = function () { return [
{ type: MySecondService }
]; };
2020-03-03 14:23:55 -05:00
/**
* @license
2020-05-19 15:08:49 -04:00
* Copyright Google LLC All Rights Reserved.
2020-03-03 14:23:55 -05:00
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Generated bundle index. Do not edit.
*/
exports.MyService = MyService;
exports.ɵangular_packages_bazel_test_ng_package_example_imports_imports_a = MySecondService;
Object.defineProperty(exports, '__esModule', { value: true });
})));
//# sourceMappingURL=waffels-imports.umd.js.map
2018-04-02 19:52:13 -04:00
--- bundles/waffels-secondary.umd.js ---
2018-03-15 21:04:34 -04:00
2018-12-25 14:50:54 -05:00
/**
* @license Angular v0.0.0
2021-02-19 16:17:11 -05:00
* (c) 2010-2021 Google LLC. https://angular.io/
2018-12-25 14:50:54 -05:00
* License: MIT
*/
2018-03-15 21:04:34 -04:00
(function (global, factory) {
2018-12-25 14:50:54 -05:00
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core')) :
typeof define === 'function' && define.amd ? define('example/secondary', ['exports', '@angular/core'], factory) :
2019-01-09 19:22:06 -05:00
(global = global || self, factory((global.example = global.example || {}, global.example.secondary = {}), global.ng.core));
2019-10-29 17:21:30 -04:00
}(this, (function (exports, core) { 'use strict';
2018-03-15 21:04:34 -04:00
2018-12-25 14:50:54 -05:00
/**
* @license
2020-05-19 15:08:49 -04:00
* Copyright Google LLC All Rights Reserved.
2018-12-25 14:50:54 -05:00
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var SecondaryModule = /** @class */ (function () {
function SecondaryModule() {
}
return SecondaryModule;
}());
2020-06-16 17:17:22 -04:00
SecondaryModule.decorators = [
{ type: core.NgModule, args: [{},] }
];
2018-12-25 14:50:54 -05:00
var a = 1;
2018-03-15 21:04:34 -04:00
2018-12-25 14:50:54 -05:00
/**
* @license
2020-05-19 15:08:49 -04:00
* Copyright Google LLC All Rights Reserved.
2018-12-25 14:50:54 -05:00
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Generated bundle index. Do not edit.
*/
2018-03-29 19:24:59 -04:00
2018-12-25 14:50:54 -05:00
exports.SecondaryModule = SecondaryModule;
exports.a = a;
2018-03-15 21:04:34 -04:00
2018-12-25 14:50:54 -05:00
Object.defineProperty(exports, '__esModule', { value: true });
2018-03-15 21:04:34 -04:00
2019-10-29 17:21:30 -04:00
})));
2018-04-02 19:52:13 -04:00
//# sourceMappingURL=waffels-secondary.umd.js.map
2018-03-15 21:04:34 -04:00
2018-04-02 19:52:13 -04:00
--- bundles/waffels.umd.js ---
2018-03-15 21:04:34 -04:00
2018-12-25 14:50:54 -05:00
/**
* @license Angular v0.0.0
2021-02-19 16:17:11 -05:00
* (c) 2010-2021 Google LLC. https://angular.io/
2018-12-25 14:50:54 -05:00
* License: MIT
*/
2018-03-15 21:04:34 -04:00
(function (global, factory) {
2018-12-25 14:50:54 -05:00
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core')) :
typeof define === 'function' && define.amd ? define('example', ['exports', '@angular/core'], factory) :
2019-01-09 19:22:06 -05:00
(global = global || self, factory(global.example = {}, global.ng.core));
2019-10-29 17:21:30 -04:00
}(this, (function (exports, core) { 'use strict';
2018-03-15 21:04:34 -04:00
2018-12-25 14:50:54 -05:00
/**
* @license
2020-05-19 15:08:49 -04:00
* Copyright Google LLC All Rights Reserved.
2018-12-25 14:50:54 -05:00
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var MyModule = /** @class */ (function () {
function MyModule() {
}
return MyModule;
}());
2020-06-16 17:17:22 -04:00
MyModule.decorators = [
{ type: core.NgModule, args: [{},] }
];
2018-03-15 21:04:34 -04:00
2018-12-25 14:50:54 -05:00
/**
* @license
2020-05-19 15:08:49 -04:00
* Copyright Google LLC All Rights Reserved.
2018-12-25 14:50:54 -05:00
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/**
* Generated bundle index. Do not edit.
*/
2018-03-29 19:24:59 -04:00
2018-12-25 14:50:54 -05:00
exports.MyModule = MyModule;
2018-03-15 21:04:34 -04:00
2018-12-25 14:50:54 -05:00
Object.defineProperty(exports, '__esModule', { value: true });
2018-03-15 21:04:34 -04:00
2019-10-29 17:21:30 -04:00
})));
2018-04-02 19:52:13 -04:00
//# sourceMappingURL=waffels.umd.js.map
2018-03-15 21:04:34 -04:00
2020-03-02 05:19:59 -05:00
--- esm2015/a11y/a11y.externs.js ---
/** @externs */
/**
* @externs
* @suppress {duplicate,checkTypes}
*/
// NOTE: generated by tsickle, do not edit.
--- esm2015/a11y/a11y.js ---
/**
* Generated bundle index. Do not edit.
*/
export * from './index';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYTExeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2JhemVsL3Rlc3QvbmdfcGFja2FnZS9leGFtcGxlL2ExMXkvYTExeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
--- esm2015/a11y/index.js ---
/**
* @license
2020-05-19 15:08:49 -04:00
* Copyright Google LLC All Rights Reserved.
2020-03-02 05:19:59 -05:00
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
2020-05-19 21:11:37 -04:00
export * from './public-api';
2020-05-19 15:08:49 -04:00
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9iYXplbC90ZXN0L25nX3BhY2thZ2UvZXhhbXBsZS9hMTF5L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZVxuICogQ29weXJpZ2h0IEdvb2dsZSBMTEMgQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2FuZ3VsYXIuaW8vbGljZW5zZVxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG4iXX0=
2020-03-02 05:19:59 -05:00
--- esm2015/a11y/public-api.js ---
/**
* @license
2020-05-19 15:08:49 -04:00
* Copyright Google LLC All Rights Reserved.
2020-03-02 05:19:59 -05:00
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { NgModule } from '@angular/core';
2020-06-05 06:46:47 -04:00
export class A11yModule {
}
A11yModule.decorators = [
{ type: NgModule, args: [{},] }
];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2JhemVsL3Rlc3QvbmdfcGFja2FnZS9leGFtcGxlL2ExMXkvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSCxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBR3ZDLE1BQU0sT0FBTyxVQUFVOzs7WUFEdEIsUUFBUSxTQUFDLEVBQUUiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBsaWNlbnNlXG4gKiBDb3B5cmlnaHQgR29vZ2xlIExMQyBBbGwgUmlnaHRzIFJlc2VydmVkLlxuICpcbiAqIFVzZSBvZiB0aGlzIHNvdXJjZSBjb2RlIGlzIGdvdmVybmVkIGJ5IGFuIE1JVC1zdHlsZSBsaWNlbnNlIHRoYXQgY2FuIGJlXG4gKiBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlIGF0IGh0dHBzOi8vYW5ndWxhci5pby9saWNlbnNlXG4gKi9cblxuaW1wb3J0IHtOZ01vZHVsZX0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBOZ01vZHVsZSh7fSlcbmV4cG9ydCBjbGFzcyBBMTF5TW9kdWxlIHtcbn1cbiJdfQ==
2020-03-02 05:19:59 -05:00
2018-03-15 21:04:34 -04:00
--- esm2015/example.externs.js ---
/** @externs */
/**
* @externs
* @suppress {duplicate,checkTypes}
*/
// NOTE: generated by tsickle, do not edit.
2018-12-25 14:50:54 -05:00
--- esm2015/example.js ---
2018-03-15 21:04:34 -04:00
/**
* Generated bundle index. Do not edit.
*/
export * from './index';
2019-01-09 19:22:06 -05:00
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhhbXBsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2JhemVsL3Rlc3QvbmdfcGFja2FnZS9leGFtcGxlL2V4YW1wbGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLFNBQVMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9pbmRleCc7XG4iXX0=
2018-03-15 21:04:34 -04:00
2020-03-03 14:23:55 -05:00
--- esm2015/imports/imports.externs.js ---
/** @externs */
/**
* @externs
* @suppress {duplicate,checkTypes}
*/
// NOTE: generated by tsickle, do not edit.
--- esm2015/imports/imports.js ---
/**
* Generated bundle index. Do not edit.
*/
export * from './index';
export { MySecondService as ɵangular_packages_bazel_test_ng_package_example_imports_imports_a } from './second';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW1wb3J0cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2JhemVsL3Rlc3QvbmdfcGFja2FnZS9leGFtcGxlL2ltcG9ydHMvaW1wb3J0cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDO0FBRXhCLE9BQU8sRUFBQyxlQUFlLElBQUksaUVBQWlFLEVBQUMsTUFBTSxVQUFVLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuXG5leHBvcnQge015U2Vjb25kU2VydmljZSBhcyDJtWFuZ3VsYXJfcGFja2FnZXNfYmF6ZWxfdGVzdF9uZ19wYWNrYWdlX2V4YW1wbGVfaW1wb3J0c19pbXBvcnRzX2F9IGZyb20gJy4vc2Vjb25kJzsiXX0=
--- esm2015/imports/index.js ---
/**
* @license
2020-05-19 15:08:49 -04:00
* Copyright Google LLC All Rights Reserved.
2020-03-03 14:23:55 -05:00
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
2020-05-19 21:11:37 -04:00
export * from './public-api';
2020-05-19 15:08:49 -04:00
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9iYXplbC90ZXN0L25nX3BhY2thZ2UvZXhhbXBsZS9pbXBvcnRzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRztBQUVILGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZVxuICogQ29weXJpZ2h0IEdvb2dsZSBMTEMgQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2FuZ3VsYXIuaW8vbGljZW5zZVxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG4iXX0=
2020-03-03 14:23:55 -05:00
--- esm2015/imports/public-api.js ---
/**
* @license
2020-05-19 15:08:49 -04:00
* Copyright Google LLC All Rights Reserved.
2020-03-03 14:23:55 -05:00
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { Injectable } from '@angular/core';
import { MySecondService } from './second';
import * as i0 from "@angular/core";
2020-03-05 14:42:58 -05:00
import * as i1 from "./second";
2020-06-05 06:46:47 -04:00
export class MyService {
constructor(secondService) {
this.secondService = secondService;
2020-05-27 17:09:01 -04:00
}
2020-06-05 06:46:47 -04:00
}
MyService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MyService_Factory() { return new MyService(i0.ɵɵinject(i1.MySecondService)); }, token: MyService, providedIn: "root" });
MyService.decorators = [
{ type: Injectable, args: [{ providedIn: 'root' },] }
];
MyService.ctorParameters = () => [
{ type: MySecondService }
];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2JhemVsL3Rlc3QvbmdfcGFja2FnZS9leGFtcGxlL2ltcG9ydHMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSCxPQUFPLEVBQUMsVUFBVSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBQyxlQUFlLEVBQUMsTUFBTSxVQUFVLENBQUM7OztBQUd6QyxNQUFNLE9BQU8sU0FBUztJQUNwQixZQUFtQixhQUE4QjtRQUE5QixrQkFBYSxHQUFiLGFBQWEsQ0FBaUI7SUFBRyxDQUFDOzs7O1lBRnRELFVBQVUsU0FBQyxFQUFDLFVBQVUsRUFBRSxNQUFNLEVBQUM7OztZQUZ4QixlQUFlIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZVxuICogQ29weXJpZ2h0IEdvb2dsZSBMTEMgQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2FuZ3VsYXIuaW8vbGljZW5zZVxuICovXG5cbmltcG9ydCB7SW5qZWN0YWJsZX0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQge015U2Vjb25kU2VydmljZX0gZnJvbSAnLi9zZWNvbmQnO1xuXG5ASW5qZWN0YWJsZSh7cHJvdmlkZWRJbjogJ3Jvb3QnfSlcbmV4cG9ydCBjbGFzcyBNeVNlcnZpY2Uge1xuICBjb25zdHJ1Y3RvcihwdWJsaWMgc2Vjb25kU2VydmljZTogTXlTZWNvbmRTZXJ2aWNlKSB7fVxufVxuIl19
2020-03-03 14:23:55 -05:00
--- esm2015/imports/second.js ---
/**
* @license
2020-05-19 15:08:49 -04:00
* Copyright Google LLC All Rights Reserved.
2020-03-03 14:23:55 -05:00
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { Injectable } from '@angular/core';
import * as i0 from "@angular/core";
2020-06-05 06:46:47 -04:00
export class MySecondService {
}
MySecondService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MySecondService_Factory() { return new MySecondService(); }, token: MySecondService, providedIn: "root" });
MySecondService.decorators = [
{ type: Injectable, args: [{ providedIn: 'root' },] }
];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Vjb25kLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvYmF6ZWwvdGVzdC9uZ19wYWNrYWdlL2V4YW1wbGUvaW1wb3J0cy9zZWNvbmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUgsT0FBTyxFQUFDLFVBQVUsRUFBQyxNQUFNLGVBQWUsQ0FBQzs7QUFHekMsTUFBTSxPQUFPLGVBQWU7Ozs7WUFEM0IsVUFBVSxTQUFDLEVBQUMsVUFBVSxFQUFFLE1BQU0sRUFBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQGxpY2Vuc2VcbiAqIENvcHlyaWdodCBHb29nbGUgTExDIEFsbCBSaWdodHMgUmVzZXJ2ZWQuXG4gKlxuICogVXNlIG9mIHRoaXMgc291cmNlIGNvZGUgaXMgZ292ZXJuZWQgYnkgYW4gTUlULXN0eWxlIGxpY2Vuc2UgdGhhdCBjYW4gYmVcbiAqIGZvdW5kIGluIHRoZSBMSUNFTlNFIGZpbGUgYXQgaHR0cHM6Ly9hbmd1bGFyLmlvL2xpY2Vuc2VcbiAqL1xuXG5pbXBvcnQge0luamVjdGFibGV9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5ASW5qZWN0YWJsZSh7cHJvdmlkZWRJbjogJ3Jvb3QnfSlcbmV4cG9ydCBjbGFzcyBNeVNlY29uZFNlcnZpY2Uge1xufVxuIl19
2020-03-03 14:23:55 -05:00
2018-03-15 21:04:34 -04:00
--- esm2015/index.js ---
/**
* @license
2020-05-19 15:08:49 -04:00
* Copyright Google LLC All Rights Reserved.
2018-03-15 21:04:34 -04:00
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
2020-05-19 21:11:37 -04:00
export * from './mymodule';
2020-05-19 15:08:49 -04:00
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9iYXplbC90ZXN0L25nX3BhY2thZ2UvZXhhbXBsZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSCxjQUFjLFlBQVksQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQGxpY2Vuc2VcbiAqIENvcHlyaWdodCBHb29nbGUgTExDIEFsbCBSaWdodHMgUmVzZXJ2ZWQuXG4gKlxuICogVXNlIG9mIHRoaXMgc291cmNlIGNvZGUgaXMgZ292ZXJuZWQgYnkgYW4gTUlULXN0eWxlIGxpY2Vuc2UgdGhhdCBjYW4gYmVcbiAqIGZvdW5kIGluIHRoZSBMSUNFTlNFIGZpbGUgYXQgaHR0cHM6Ly9hbmd1bGFyLmlvL2xpY2Vuc2VcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL215bW9kdWxlJztcbiJdfQ==
2018-03-15 21:04:34 -04:00
--- esm2015/mymodule.js ---
/**
* @license
2020-05-19 15:08:49 -04:00
* Copyright Google LLC All Rights Reserved.
2018-03-15 21:04:34 -04:00
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { NgModule } from '@angular/core';
2020-06-05 06:46:47 -04:00
export class MyModule {
}
MyModule.decorators = [
{ type: NgModule, args: [{},] }
];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXltb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9iYXplbC90ZXN0L25nX3BhY2thZ2UvZXhhbXBsZS9teW1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSCxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBSXZDLE1BQU0sT0FBTyxRQUFROzs7WUFEcEIsUUFBUSxTQUFDLEVBQUUiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBsaWNlbnNlXG4gKiBDb3B5cmlnaHQgR29vZ2xlIExMQyBBbGwgUmlnaHRzIFJlc2VydmVkLlxuICpcbiAqIFVzZSBvZiB0aGlzIHNvdXJjZSBjb2RlIGlzIGdvdmVybmVkIGJ5IGFuIE1JVC1zdHlsZSBsaWNlbnNlIHRoYXQgY2FuIGJlXG4gKiBmb3VuZCBpbiB0aGUgTElDRU5TRSBmaWxlIGF0IGh0dHBzOi8vYW5ndWxhci5pby9saWNlbnNlXG4gKi9cblxuaW1wb3J0IHtOZ01vZHVsZX0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQge2F9IGZyb20gJy4vc2Vjb25kYXJ5L3NlY29uZGFyeW1vZHVsZSc7XG5cbkBOZ01vZHVsZSh7fSlcbmV4cG9ydCBjbGFzcyBNeU1vZHVsZSB7XG59XG4iXX0=
2018-03-15 21:04:34 -04:00
--- esm2015/secondary/index.js ---
/**
* @license
2020-05-19 15:08:49 -04:00
* Copyright Google LLC All Rights Reserved.
2018-03-15 21:04:34 -04:00
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
2020-05-19 21:11:37 -04:00
export * from './secondarymodule';
2020-05-19 15:08:49 -04:00
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9iYXplbC90ZXN0L25nX3BhY2thZ2UvZXhhbXBsZS9zZWNvbmRhcnkvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUgsY0FBYyxtQkFBbUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQGxpY2Vuc2VcbiAqIENvcHlyaWdodCBHb29nbGUgTExDIEFsbCBSaWdodHMgUmVzZXJ2ZWQuXG4gKlxuICogVXNlIG9mIHRoaXMgc291cmNlIGNvZGUgaXMgZ292ZXJuZWQgYnkgYW4gTUlULXN0eWxlIGxpY2Vuc2UgdGhhdCBjYW4gYmVcbiAqIGZvdW5kIGluIHRoZSBMSUNFTlNFIGZpbGUgYXQgaHR0cHM6Ly9hbmd1bGFyLmlvL2xpY2Vuc2VcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3NlY29uZGFyeW1vZHVsZSc7XG4iXX0=
2018-03-15 21:04:34 -04:00
--- esm2015/secondary/secondary.externs.js ---
/** @externs */
/**
* @externs
* @suppress {duplicate,checkTypes}
*/
// NOTE: generated by tsickle, do not edit.
2018-12-25 14:50:54 -05:00
--- esm2015/secondary/secondary.js ---
2018-03-15 21:04:34 -04:00
/**
* Generated bundle index. Do not edit.
*/
export * from './index';
2019-01-09 19:22:06 -05:00
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Vjb25kYXJ5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvYmF6ZWwvdGVzdC9uZ19wYWNrYWdlL2V4YW1wbGUvc2Vjb25kYXJ5L3NlY29uZGFyeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
2018-03-15 21:04:34 -04:00
--- esm2015/secondary/secondarymodule.js ---
/**
* @license
2020-05-19 15:08:49 -04:00
* Copyright Google LLC All Rights Reserved.
2018-03-15 21:04:34 -04:00
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { NgModule } from '@angular/core';
2020-06-05 06:46:47 -04:00
export class SecondaryModule {
}
SecondaryModule.decorators = [
{ type: NgModule, args: [{},] }
];
2018-12-25 14:50:54 -05:00
export const a = 1;
2020-06-05 06:46:47 -04:00
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Vjb25kYXJ5bW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvYmF6ZWwvdGVzdC9uZ19wYWNrYWdlL2V4YW1wbGUvc2Vjb25kYXJ5L3NlY29uZGFyeW1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSCxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBR3ZDLE1BQU0sT0FBTyxlQUFlOzs7WUFEM0IsUUFBUSxTQUFDLEVBQUU7O0FBSVosTUFBTSxDQUFDLE1BQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogQGxpY2Vuc2VcbiAqIENvcHlyaWdodCBHb29nbGUgTExDIEFsbCBSaWdodHMgUmVzZXJ2ZWQuXG4gKlxuICogVXNlIG9mIHRoaXMgc291cmNlIGNvZGUgaXMgZ292ZXJuZWQgYnkgYW4gTUlULXN0eWxlIGxpY2Vuc2UgdGhhdCBjYW4gYmVcbiAqIGZvdW5kIGluIHRoZSBMSUNFTlNFIGZpbGUgYXQgaHR0cHM6Ly9hbmd1bGFyLmlvL2xpY2Vuc2VcbiAqL1xuXG5pbXBvcnQge05nTW9kdWxlfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQE5nTW9kdWxlKHt9KVxuZXhwb3J0IGNsYXNzIFNlY29uZGFyeU1vZHVsZSB7XG59XG5cbmV4cG9ydCBjb25zdCBhID0gMTtcbiJdfQ==
2018-03-15 21:04:34 -04:00
2018-12-25 14:50:54 -05:00
--- example.d.ts ---
2018-03-15 21:04:34 -04:00
/**
2019-02-07 13:02:21 -05:00
* @license Angular v0.0.0
2021-02-19 16:17:11 -05:00
* (c) 2010-2021 Google LLC. https://angular.io/
2019-02-07 13:02:21 -05:00
* License: MIT
2018-03-15 21:04:34 -04:00
*/
2019-02-07 13:02:21 -05:00
export declare class MyModule {
}
export { }
2018-03-15 21:04:34 -04:00
2018-12-25 14:50:54 -05:00
--- example.metadata.json ---
2018-03-15 21:04:34 -04:00
2019-02-07 13:02:21 -05:00
{"__symbolic":"module","version":4,"metadata":{"MyModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":11,"character":1},"arguments":[{}]}],"members":{}}},"origins":{"MyModule":"./example"},"importAs":"example"}
2018-03-15 21:04:34 -04:00
2018-03-21 19:18:06 -04:00
--- extra-styles.css ---
.special {
color: goldenrod;
}
2020-03-02 05:19:59 -05:00
--- fesm2015/a11y.js ---
/**
* @license Angular v0.0.0
2021-02-19 16:17:11 -05:00
* (c) 2010-2021 Google LLC. https://angular.io/
2020-03-02 05:19:59 -05:00
* License: MIT
*/
import { NgModule } from '@angular/core';
/**
2020-05-19 21:11:37 -04:00
* @license
2020-05-19 15:08:49 -04:00
* Copyright Google LLC All Rights Reserved.
2020-05-19 21:11:37 -04:00
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
2020-03-02 05:19:59 -05:00
*/
2020-06-05 06:46:47 -04:00
class A11yModule {
}
A11yModule.decorators = [
{ type: NgModule, args: [{},] }
];
2020-03-02 05:19:59 -05:00
/**
2020-05-19 21:11:37 -04:00
* @license
2020-05-19 15:08:49 -04:00
* Copyright Google LLC All Rights Reserved.
2020-05-19 21:11:37 -04:00
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
2020-03-02 05:19:59 -05:00
*/
/**
* Generated bundle index. Do not edit.
*/
export { A11yModule };
//# sourceMappingURL=a11y.js.map
2020-03-03 14:23:55 -05:00
--- fesm2015/imports.js ---
/**
* @license Angular v0.0.0
2021-02-19 16:17:11 -05:00
* (c) 2010-2021 Google LLC. https://angular.io/
2020-03-03 14:23:55 -05:00
* License: MIT
*/
fix(compiler-cli): downlevel angular decorators to static properties (#37382)
In v7 of Angular we removed `tsickle` from the default `ngc` pipeline.
This had the negative potential of breaking ES2015 output and SSR due
to a limitation in TypeScript.
TypeScript by default preserves type information for decorated constructor
parameters when `emitDecoratorMetadata` is enabled. For example,
consider this snippet below:
```
@Directive()
export class MyDirective {
constructor(button: MyButton) {}
}
export class MyButton {}
```
TypeScript would generate metadata for the `MyDirective` class it has
a decorator applied. This metadata would be needed in JIT mode, or
for libraries that provide `MyDirective` through NPM. The metadata would
look as followed:
```
let MyDirective = class MyDir {}
MyDirective = __decorate([
Directive(),
__metadata("design:paramtypes", [MyButton]),
], MyDirective);
let MyButton = class MyButton {}
```
Notice that TypeScript generated calls to `__decorate` and
`__metadata`. These calls are needed so that the Angular compiler
is able to determine whether `MyDirective` is actually an directive,
and what types are needed for dependency injection.
The limitation surfaces in this concrete example because `MyButton`
is declared after the `__metadata(..)` call, while `__metadata`
actually directly references `MyButton`. This is illegal though because
`MyButton` has not been declared at this point. This is due to the
so-called temporal dead zone in JavaScript. Errors like followed will
be reported at runtime when such file/code evaluates:
```
Uncaught ReferenceError: Cannot access 'MyButton' before initialization
```
As noted, this is a TypeScript limitation because ideally TypeScript
shouldn't evaluate `__metadata`/reference `MyButton` immediately.
Instead, it should defer the reference until `MyButton` is actually
declared. This limitation will not be fixed by the TypeScript team
though because it's a limitation as per current design and they will
only revisit this once the tc39 decorator proposal is finalized
(currently stage-2 at time of writing).
Given this wontfix on the TypeScript side, and our heavy reliance on
this metadata in libraries (and for JIT mode), we intend to fix this
from within the Angular compiler by downleveling decorators to static
properties that don't need to evaluate directly. For example:
```
MyDirective.ctorParameters = () => [MyButton];
```
With this snippet above, `MyButton` is not referenced directly. Only
lazily when the Angular runtime needs it. This mitigates the temporal
dead zone issue caused by a limitation in TypeScript's decorator
metadata output. See: https://github.com/microsoft/TypeScript/issues/27519.
In the past (as noted; before version 7), the Angular compiler by
default used tsickle that already performed this transformation. We
moved the transformation to the CLI for JIT and `ng-packager`, but now
we realize that we can move this all to a single place in the compiler
so that standalone ngc consumers can benefit too, and that we can
disable tsickle in our Bazel `ngc-wrapped` pipeline (that currently
still relies on tsickle to perform this decorator processing).
This transformation also has another positive side-effect of making
Angular application/library code more compatible with server-side
rendering. In principle, TypeScript would also preserve type information
for decorated class members (similar to how it did that for constructor
parameters) at runtime. This becomes an issue when your application
relies on native DOM globals for decorated class member types. e.g.
```
@Input() panelElement: HTMLElement;
```
Your application code would then reference `HTMLElement` directly
whenever the source file is loaded in NodeJS for SSR. `HTMLElement`
does not exist on the server though, so that will become an invalid
reference. One could work around this by providing global mocks for
these DOM symbols, but that doesn't match up with other places where
dependency injection is used for mocking DOM/browser specific symbols.
More context in this issue: #30586. The TL;DR here is that the Angular
compiler does not care about types for these class members, so it won't
ever reference `HTMLElement` at runtime.
Fixes #30106. Fixes #30586. Fixes #30141.
Resolves FW-2196. Resolves FW-2199.
PR Close #37382
2020-06-05 10:26:23 -04:00
import { ɵɵdefineInjectable, Injectable, ɵɵinject } from '@angular/core';
2020-03-03 14:23:55 -05:00
2020-05-27 17:09:01 -04:00
/**
* @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.io/license
*/
2020-06-05 06:46:47 -04:00
class MySecondService {
}
MySecondService.ɵprov = ɵɵdefineInjectable({ factory: function MySecondService_Factory() { return new MySecondService(); }, token: MySecondService, providedIn: "root" });
MySecondService.decorators = [
{ type: Injectable, args: [{ providedIn: 'root' },] }
];
2020-03-03 14:23:55 -05:00
2020-05-27 17:09:01 -04:00
/**
* @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.io/license
*/
2020-06-05 06:46:47 -04:00
class MyService {
constructor(secondService) {
this.secondService = secondService;
2020-05-27 17:09:01 -04:00
}
2020-06-05 06:46:47 -04:00
}
MyService.ɵprov = ɵɵdefineInjectable({ factory: function MyService_Factory() { return new MyService(ɵɵinject(MySecondService)); }, token: MyService, providedIn: "root" });
MyService.decorators = [
{ type: Injectable, args: [{ providedIn: 'root' },] }
];
MyService.ctorParameters = () => [
{ type: MySecondService }
];
2020-03-03 14:23:55 -05:00
/**
2020-05-19 21:11:37 -04:00
* @license
2020-05-19 15:08:49 -04:00
* Copyright Google LLC All Rights Reserved.
2020-05-19 21:11:37 -04:00
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
2020-03-03 14:23:55 -05:00
*/
/**
* Generated bundle index. Do not edit.
*/
export { MyService, MySecondService as ɵangular_packages_bazel_test_ng_package_example_imports_imports_a };
//# sourceMappingURL=imports.js.map
2018-04-02 19:52:13 -04:00
--- fesm2015/secondary.js ---
2018-03-20 12:58:05 -04:00
2018-12-25 14:50:54 -05:00
/**
* @license Angular v0.0.0
2021-02-19 16:17:11 -05:00
* (c) 2010-2021 Google LLC. https://angular.io/
2018-12-25 14:50:54 -05:00
* License: MIT
*/
2018-03-20 12:58:05 -04:00
import { NgModule } from '@angular/core';
/**
2020-05-19 21:11:37 -04:00
* @license
2020-05-19 15:08:49 -04:00
* Copyright Google LLC All Rights Reserved.
2020-05-19 21:11:37 -04:00
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
2018-03-20 12:58:05 -04:00
*/
2020-06-05 06:46:47 -04:00
class SecondaryModule {
}
SecondaryModule.decorators = [
{ type: NgModule, args: [{},] }
];
2018-04-02 19:52:13 -04:00
const a = 1;
2018-03-20 12:58:05 -04:00
/**
2020-05-19 21:11:37 -04:00
* @license
2020-05-19 15:08:49 -04:00
* Copyright Google LLC All Rights Reserved.
2020-05-19 21:11:37 -04:00
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
2018-03-20 12:58:05 -04:00
*/
2018-03-29 19:24:59 -04:00
/**
* Generated bundle index. Do not edit.
*/
2018-04-02 19:52:13 -04:00
export { SecondaryModule, a };
//# sourceMappingURL=secondary.js.map
2018-03-20 12:58:05 -04:00
2018-04-02 19:52:13 -04:00
--- fesm2015/waffels.js ---
2018-03-20 12:58:05 -04:00
2018-12-25 14:50:54 -05:00
/**
* @license Angular v0.0.0
2021-02-19 16:17:11 -05:00
* (c) 2010-2021 Google LLC. https://angular.io/
2018-12-25 14:50:54 -05:00
* License: MIT
*/
2018-03-20 12:58:05 -04:00
import { NgModule } from '@angular/core';
/**
2020-05-19 21:11:37 -04:00
* @license
2020-05-19 15:08:49 -04:00
* Copyright Google LLC All Rights Reserved.
2020-05-19 21:11:37 -04:00
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
2018-03-20 12:58:05 -04:00
*/
2020-06-05 06:46:47 -04:00
class MyModule {
}
MyModule.decorators = [
{ type: NgModule, args: [{},] }
];
2018-03-20 12:58:05 -04:00
/**
2020-05-19 21:11:37 -04:00
* @license
2020-05-19 15:08:49 -04:00
* Copyright Google LLC All Rights Reserved.
2020-05-19 21:11:37 -04:00
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
2018-03-20 12:58:05 -04:00
*/
2018-03-29 19:24:59 -04:00
/**
* Generated bundle index. Do not edit.
*/
2018-04-02 19:52:13 -04:00
export { MyModule };
//# sourceMappingURL=waffels.js.map
2018-03-20 12:58:05 -04:00
2020-03-03 14:23:55 -05:00
--- imports/imports.d.ts ---
/**
* @license Angular v0.0.0
2021-02-19 16:17:11 -05:00
* (c) 2010-2021 Google LLC. https://angular.io/
2020-03-03 14:23:55 -05:00
* License: MIT
*/
export declare class MyService {
secondService: ɵangular_packages_bazel_test_ng_package_example_imports_imports_a;
constructor(secondService: ɵangular_packages_bazel_test_ng_package_example_imports_imports_a);
}
export declare class ɵangular_packages_bazel_test_ng_package_example_imports_imports_a {
}
export { }
--- imports/imports.metadata.json ---
{"__symbolic":"module","version":4,"metadata":{"MyService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":11,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵangular_packages_bazel_test_ng_package_example_imports_imports_a"}]}]},"statics":{"ɵprov":{}}},"ɵangular_packages_bazel_test_ng_package_example_imports_imports_a":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":10,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{},"statics":{"ɵprov":{}}}},"origins":{"MyService":"./imports","ɵangular_packages_bazel_test_ng_package_example_imports_imports_a":"./imports"},"importAs":"example/imports"}
--- imports/package.json ---
{
"name": "example/imports",
"main": "../bundles/example-imports.umd.js",
"fesm2015": "../fesm2015/imports.js",
"esm2015": "../esm2015/imports/imports.js",
"typings": "./imports.d.ts",
2020-05-06 00:35:44 -04:00
"module": "../fesm2015/imports.js",
2020-03-03 14:23:55 -05:00
"es2015": "../fesm2015/imports.js"
}
--- imports.d.ts ---
/**
* @license Angular v0.0.0
2021-02-19 16:17:11 -05:00
* (c) 2010-2021 Google LLC. https://angular.io/
2020-03-03 14:23:55 -05:00
* License: MIT
*/
export * from './imports/imports';
--- imports.metadata.json ---
{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./imports/imports"}],"flatModuleIndexRedirect":true,"importAs":"example/imports"}
2019-09-17 12:30:27 -04:00
--- logo.png ---
9db278d630f5fabd8e7ba16c2e329a3a
2018-03-15 21:04:34 -04:00
--- package.json ---
{
"name": "example",
2018-12-25 14:50:54 -05:00
"version": "0.0.0",
2018-03-15 21:04:34 -04:00
"main": "./bundles/example.umd.js",
2018-03-20 12:58:05 -04:00
"fesm2015": "./fesm2015/example.js",
2018-12-25 14:50:54 -05:00
"esm2015": "./esm2015/example.js",
"typings": "./example.d.ts",
2020-05-06 00:35:44 -04:00
"module": "./fesm2015/example.js",
2018-03-20 12:58:05 -04:00
"es2015": "./fesm2015/example.js"
2018-03-15 21:04:34 -04:00
}
--- secondary/package.json ---
{
"name": "example/secondary",
"main": "../bundles/example-secondary.umd.js",
2018-03-20 12:58:05 -04:00
"fesm2015": "../fesm2015/secondary.js",
2018-12-25 14:50:54 -05:00
"esm2015": "../esm2015/secondary/secondary.js",
"typings": "./secondary.d.ts",
2020-05-06 00:35:44 -04:00
"module": "../fesm2015/secondary.js",
2018-03-20 12:58:05 -04:00
"es2015": "../fesm2015/secondary.js"
2018-03-15 21:04:34 -04:00
}
2018-12-25 14:50:54 -05:00
--- secondary/secondary.d.ts ---
2018-03-15 21:04:34 -04:00
/**
2019-02-07 13:02:21 -05:00
* @license Angular v0.0.0
2021-02-19 16:17:11 -05:00
* (c) 2010-2021 Google LLC. https://angular.io/
2019-02-07 13:02:21 -05:00
* License: MIT
2018-03-15 21:04:34 -04:00
*/
2019-02-07 13:02:21 -05:00
export declare const a = 1;
2018-03-15 21:04:34 -04:00
export declare class SecondaryModule {
}
2019-02-07 13:02:21 -05:00
export { }
--- secondary/secondary.metadata.json ---
{"__symbolic":"module","version":4,"metadata":{"SecondaryModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":10,"character":1},"arguments":[{}]}],"members":{}},"a":1},"origins":{"SecondaryModule":"./secondary","a":"./secondary"},"importAs":"example/secondary"}
2018-03-15 21:04:34 -04:00
--- secondary.d.ts ---
2018-12-25 14:50:54 -05:00
/**
* @license Angular v0.0.0
2021-02-19 16:17:11 -05:00
* (c) 2010-2021 Google LLC. https://angular.io/
2018-12-25 14:50:54 -05:00
* License: MIT
*/
export * from './secondary/secondary';
2018-03-15 21:04:34 -04:00
--- secondary.metadata.json ---
2018-12-25 14:50:54 -05:00
{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./secondary/secondary"}],"flatModuleIndexRedirect":true,"importAs":"example/secondary"}
2018-03-15 21:04:34 -04:00
--- some-file.txt ---
This file is just copied into the package.