angular-docs-cn/packages
Pete Bacon Darwin a64859b4bc fix(core): ensure that `ɵdefineNgModule` is available in flat-file formats (#26403)
When compiling the flat-file version of the `@angular/core` we need to be aware
that we cannot rely upon imported names to access the ivy definition functions.
The compiler is already clever enough to use local function calls rather than
trying to add a namespaced import, but there is a problem if the local name of the
function is different to the exported name. This is the case for functions that
are not part of the public API, and so are exported under a barred-O private alias.

In `@angular/core` the only decorations in use are `@NgModule` and `@Injectable`.
There are no directives, components, pipes, etc.

Since `defineInjectable` is part of the public API of `@angular/core`, the compiler
is able to generate code that references the original non-barred-O version of the
function.

But the `defineNgModule` is not part of the public API and so the compiler must
generate code that refers to it by the private barred-O version of the function.

This commit imports and then re-exports this barred-O version of `defineModule` to
ensure that the symbol is available in the local scope of the flat-file versions of
the `@angular/core` library.

PR Close #26403
2018-11-01 14:13:26 -07:00
..
animations test(ivy): mark failing test targets with fixme-ivy-jit and fixme-ivy-local tags (#26471) 2018-10-23 08:57:42 -07:00
bazel build(bazel): generalize fix for AMD name for flat module out file (#26837) 2018-10-30 18:37:12 -04:00
benchpress test(ivy): fix or disable failing ivy tests (#26735) 2018-10-26 14:48:05 -04:00
common build: rename the ivy compile mode 'local' to 'aot' (#26686) 2018-10-23 14:14:49 -07:00
compiler feat(ivy): setClassMetadata() for assigning decorator metadata (#26860) 2018-10-31 19:52:36 -04:00
compiler-cli perf(ivy): ngcc - only render .d.ts analysis when necessary (#26403) 2018-11-01 14:13:26 -07:00
core fix(core): ensure that `ɵdefineNgModule` is available in flat-file formats (#26403) 2018-11-01 14:13:26 -07:00
docs refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
elements build: rename the ivy compile mode 'local' to 'aot' (#26686) 2018-10-23 14:14:49 -07:00
examples build: upgrade `@types/jasminewd2` to 2.0.4 (#26139) 2018-10-12 14:11:11 -07:00
forms build: rename the ivy compile mode 'local' to 'aot' (#26686) 2018-10-23 14:14:49 -07:00
http build: rename the ivy compile mode 'local' to 'aot' (#26686) 2018-10-23 14:14:49 -07:00
language-service test(ivy): fix or disable failing ivy tests (#26735) 2018-10-26 14:48:05 -04:00
platform-browser build: rename the ivy compile mode 'local' to 'aot' (#26686) 2018-10-23 14:14:49 -07:00
platform-browser-dynamic test(ivy): fix or disable failing ivy tests (#26735) 2018-10-26 14:48:05 -04:00
platform-server test(ivy): fix or disable failing ivy tests (#26735) 2018-10-26 14:48:05 -04:00
platform-webworker build: rename the ivy compile mode 'local' to 'aot' (#26686) 2018-10-23 14:14:49 -07:00
platform-webworker-dynamic test(ivy): fix or disable failing ivy tests (#26735) 2018-10-26 14:48:05 -04:00
private/testing docs: convert all `@experimental` tags to `@publicApi` tags (#26595) 2018-10-19 14:35:52 -07:00
router style(router): remove trailing whitespace (#26891) 2018-11-01 05:28:17 -07:00
service-worker test(ivy): fix or disable failing ivy tests (#26735) 2018-10-26 14:48:05 -04:00
upgrade build: rename the ivy compile mode 'local' to 'aot' (#26686) 2018-10-23 14:14:49 -07:00
BUILD.bazel build(bazel): use fine-grained npm deps (#26111) (#26488) 2018-10-19 20:59:29 -07:00
README.md Revert "docs: Remove unneeded file (#18106)" 2017-07-20 16:46:47 -05:00
empty.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
es6-subset.d.ts build: switch from npm to yarn (#19328) 2017-09-22 13:20:52 -07:00
goog.d.ts fix(compiler): add typings for `COMPILED`. 2017-09-29 09:26:38 -07:00
license-banner.txt docs(common): update copyright years (#21232) 2018-01-04 17:45:36 -05:00
rollup.config.js refactor: make all rollup config ES5 compatible (#20028) 2017-10-30 23:09:17 -04:00
system.d.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
tsconfig-build.json build(bazel): Turning on strictPropertyInitialization for Angular. (#24572) 2018-06-25 07:57:13 -07:00
tsconfig-metadata.json fix(compiler): Fix look up of entryComponents in AOT Summaries (#24892) 2018-09-11 16:23:17 -07:00
tsconfig-test.json build: refactor ambient node & jasmine types so they are only included where needed (#25491) 2018-08-16 13:46:43 -07:00
tsconfig.json fix(compiler): Fix look up of entryComponents in AOT Summaries (#24892) 2018-09-11 16:23:17 -07:00
types.d.ts build: refactor ambient node & jasmine types so they are only included where needed (#25491) 2018-08-16 13:46:43 -07:00

README.md

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

License: MIT