Git Product home page Git Product logo

Comments (7)

mhevery avatar mhevery commented on July 17, 2024

/cc @IgorMinar

from devkit.

filipesilva avatar filipesilva commented on July 17, 2024

@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.

IgorMinar avatar IgorMinar commented on July 17, 2024

from devkit.

hansl avatar hansl commented on July 17, 2024

We did some upgrades to build-optimizer last week, could those have fixed this?

from devkit.

filipesilva avatar filipesilva commented on July 17, 2024

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.

IgorMinar avatar IgorMinar commented on July 17, 2024

@filipesilva that's correct. nested calls should have the annotation at each level of nesting.

from devkit.

kara avatar kara commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.