Chuck Jazdzewski
ddb766e456
feat(compiler): do not evaluate metadata expressions that can use references ( #18001 )
2017-07-13 16:16:56 -07:00
Chuck Jazdzewski
45ffe54ae4
fix(tsc-wrapped): support as and class expressions ( #16904 )
2017-07-13 15:17:16 -07:00
Chuck Jazdzewski
ce0f4f0d7c
fix(tsc-wrapped): report errors for invalid ast forms ( #17994 )
...
Fixes : #17993
2017-07-13 14:55:59 -07:00
Victor Berchet
c723d42d0a
refactor: fix typos ( #18000 )
2017-07-07 16:55:17 -07:00
Chuck Jazdzewski
cb16e9c747
fix(tsc-wrapped): emit exports metadata in flat modules ( #17893 )
...
Fixes : #17888
2017-07-07 08:46:42 -07:00
Chuck Jazdzewski
3097083277
feat(compiler-cli): new compiler api and command-line using TypeScript transformers
2017-06-23 16:18:44 -07:00
Chuck Jazdzewski
46ddf501a9
fix(tsc-wrapped): skip collecting metadata for default functions
...
Fixes : #17518
2017-06-20 14:22:49 -07:00
Tobias Bosch
ed73d4f3ac
refactor(compiler): don’t always compile .ngfactory.ts files by default
...
This puts the behavior introduced in https://github.com/angular/angular/commit/573b8611bc4ab85a7436ee110526678a0ecf6c76 behind the new flag
`alwaysCompileGeneratedCode` to not break users that might have relied
on this behavior.
2017-06-12 15:27:02 -07:00
Tobias Bosch
90b0713e32
refactor(compiler): don’t write summaries for jit by default
...
The default is false externally but true internally at Google.
2017-06-09 15:58:53 -07:00
Paul Gschwendtner
ea8a43def0
feat(tsc-wrapped): always convert shorthand imports ( #16898 )
...
Now converts shorthand imports for every TypeScript target. Tsickle is able to expand index shorthand imports for every TypeScript target and module possibility.
Expanding shorthand imports for CommonJS modules is also helpful when testing in the browser. Module loaders like SystemJS are not able to understand directory imports (or index shorthand imports)
2017-05-30 10:46:54 -07:00
Tobias Bosch
573b8611bc
fix(compiler): compile .ngfactory.ts files even if nobody references them. ( #16899 )
...
This is especially important for library authors, as they will
not reference the .ngfactory.ts files.
Fixes #16741
2017-05-25 11:00:26 -06:00
Chuck Jazdzewski
1651a8f189
fix(tsc-wrapped): ignore |null and |undefined when collecting types ( #16222 )
2017-05-23 11:53:38 -06:00
Chuck Jazdzewski
6e41add867
feat(tsc-wrapped): support template literals in metadata collection ( #16880 )
...
Fixes : #16876
2017-05-22 12:19:09 -06:00
Chuck Jazdzewski
11c10b2ab8
fix(tsc-wrapped): resolve short-hand literal values to locals ( #16873 )
...
Fixes : #16872
2017-05-22 11:18:44 -06:00
Olivier Combe
6e2abcd5fc
feat(compiler-cli): add param to set MissingTranslationStrategy on ngc ( #15987 )
...
This commit adds a new parameter to ngc named `missingTranslation` to set the MissingTranslationStrategy for AoT, it takes the value `error`, `warning` or `ignore`.
Fixes #15808
PR Close #15987
2017-04-27 17:38:59 -05:00
Victor Berchet
cd29d68f3c
refactor(tsc-wrapped): cleanup ( #16178 )
...
PR Close #16178
2017-04-19 22:46:23 -05:00
Victor Berchet
014594fe8f
feat: add support for TS 2.3
2017-04-18 08:28:55 -07:00
Chuck Jazdzewski
70b1d6dd9d
fix(tsc-wrapped): collect new expressions with no arguments ( #15908 )
...
Fixes #15906
2017-04-13 11:53:26 -07:00
Paul Gschwendtner
96aa2365ae
fix(tsc-wrapped): ensure valid path separators in metadata
...
* Fixes that `tsc-wrapped` stores invalid path separators in the bundled metadata files. Previous errors could have been: `Cannot find module '.corecoordinationnique-selection-dispatcher'.` (See https://github.com/angular/material2/issues/3834 )
* Fixes failing tests on Windows. Now all tooling tests are green on Windows.
Related to #15403
2017-04-10 16:01:38 -06:00
Chuck Jazdzewski
c58499786c
fix(tsc-wrapped): use windows friendly path normalization in bundler ( #15374 )
...
Fixes #15289
PR Close #15374
2017-03-21 22:30:57 -05:00
Chuck Jazdzewski
7354949763
feat(tsc-wrapped): record original location of flattened symbols ( #15367 )
...
Added an "origins" section to the flat module `.metadata.json` files
that records where the original symbols was declared. This allows
correctly calculating relative path references recorded in metadata.
2017-03-21 19:05:00 -05:00
Chuck Jazdzewski
6e9264a79c
fix(tsc-wrapped): emit flat module format correctly on Windows ( #15215 )
...
File name needed to be normalized before comparison when using
synthetic file names.
Fixes #15192
PR Close #15215
2017-03-17 15:35:28 -05:00
Tobias Bosch
c0e05e6f03
fix(tsc-wrapped): emit js files in all cases
2017-03-16 12:56:56 -07:00
Chuck Jazdzewski
b00fe20afd
fix(compiler): support interface types in injectable constuctors ( #14894 )
...
Fixes #12631
2017-03-15 09:24:56 -07:00
Lucas Sloan
5c0ea20bd0
build(tsc-wrapped): use tsickleCompilerHost for initial file load
...
In order for tsickle's new support for input source maps to work, the tsickleCompilerHost must be used for the initial load of source files, since that's when the inline source maps are read and stripped.
2017-03-15 09:23:36 -07:00
Tobias Bosch
1cff1250ba
refactor: remove old compiler options ( #14891 )
...
DEPRECATION:
- `CompilerOptions.debug` has no effect any more, as the compiler
always produces the same code independent of debug mode.
2017-03-07 11:16:27 -08:00
Miško Hevery
f2adb2900d
refactor: remove the symlink hack from tsc-wrapped ( #14837 )
2017-03-06 15:22:33 -08:00
Miško Hevery
8343fb7740
refactor: remove lang.ts ( #14837 )
2017-03-06 15:22:29 -08:00
Chuck Jazdzewski
a6996a9cdd
fix(tsc-wrapped): validate metadata in static members of a class ( #14772 )
...
Fixes #13481
2017-03-01 14:45:00 -08:00
Chuck Jazdzewski
6bae7378b1
fix(language-service): tolerate errors in decorators ( #14634 )
...
Fixes #14631
2017-03-01 13:23:34 -08:00