Comments (7)
/cc @IgorMinar
from devkit.
@mhevery is this transformation happening with @angular-devkit/build-optimizer
?
I tried feeding it
export const Injectable = (/**@type{InjectableDecortaro}*/makeDecorator('Injectable'));
and it outputs
export const Injectable = /*@__PURE__*/ (makeDecorator('Injectable'));
Which seems to be what you want.
from devkit.
from devkit.
We did some upgrades to build-optimizer last week, could those have fixed this?
from devkit.
I tried finding it in AIO, by running ng build --environment=stable -aot -bo --no-sourcemap
and searching dist/main.bundle.js
for (/*@__PURE__*/
but could not find with the comment only inside the parenthesis.
I found a few with comment inside and outside though:
var reflector = /*@__PURE__*/ new Reflector(/*@__PURE__*/ new ReflectionCapabilities());
var _MdButtonMixinBase = /*@__PURE__*/ mixinColor(/*@__PURE__*/ mixinDisabled(MdButtonBase));
var _MdCheckboxMixinBase = /*@__PURE__*/ mixinColor(/*@__PURE__*/ mixinDisabled(MdCheckboxBase), 'accent');
'yMMMdjms': /*@__PURE__*/ datePartGetterFactory(/*@__PURE__*/ combine([
/*@__PURE__*/ digitCondition('year', 1),
/*@__PURE__*/ nameCondition('month', 3),
/*@__PURE__*/ digitCondition('day', 1),
/*@__PURE__*/ digitCondition('hour', 1),
/*@__PURE__*/ digitCondition('minute', 1),
/*@__PURE__*/ digitCondition('second', 1),
])),
from devkit.
@filipesilva that's correct. nested calls should have the annotation at each level of nesting.
from devkit.
Misko removed the problematic casts in angular/angular@b7a6f52, so we shouldn't expect to see anything in the outputs. That said, when I re-add some of the original code causing issues, I see this now:
var Injectable = /*@__PURE__*/ (makeDecorator('Injectable'));
Seems like it's fixed. We can probably close this and re-open if we see it pop up again.
from devkit.
Related Issues (20)
- How to use AngularCompilerPlugin to bundle stand-alone modules? HOT 1
- Inconsistency in ng new HOT 1
- Cannot handle async resource. angularCompilerOptions.enableResourceInlining requires all resources to be statically resolvable. HOT 4
- Reference to unpublished version of `[email protected]` in `build-angular@master`
- How to override files with merge or branchMerge? HOT 1
- SchematicTestRunner.callRule does not use the logger by default HOT 1
- BuildOptimizer breaks 3rd party library HOT 5
- Follow @angular/* versions HOT 1
- cli commands (`add`, `update`) remove empty lines from `package.json` HOT 1
- Invalid typing for webpack rules (changed from wp 3 > 4) HOT 5
- ng run --help not working HOT 2
- ng update @angular/cli => Error: connect ETIMEDOUT 151.101.12.162:80 HOT 1
- Incorrect declaration files HOT 5
- Make DevServerBuilder extensible HOT 3
- new webpack config is breaking 3rd party modules HOT 1
- generated apps with wrong baseUrl as TS config --> unable to compile lazyLoaded modules HOT 1
- ng lint broken HOT 1
- How configure SSR without CLI ? HOT 1
- baseHref/deployUrl option for universal build in @angular-devkit/build-angular:server HOT 1
- configure angular build dependecnies HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devkit.