Coder Social home page Coder Social logo

Support Ivy partial compilation about core HOT 10 CLOSED

a1russell avatar a1russell commented on April 27, 2024 9
Support Ivy partial compilation

from core.

Comments (10)

christopherthielen avatar christopherthielen commented on April 27, 2024 5

released in version 6.1.0

from core.

wawyed avatar wawyed commented on April 27, 2024 4

@jpike88 I'm happy to review and merge the PR if you create one :)

from core.

jpike88 avatar jpike88 commented on April 27, 2024 1

@christopherthielen @ranihorev @wawyed this repo seems almost like it's not being maintained anymore/abandoned.

Could I please kindly have:

  • a rough ETA on whether this is going to be addressed, as Ivy has been out for a long time now and this is the only library I have that is still not using Ivy
  • if not an ETA, an assurance/expectation that if I create a PR to fix this, it will be merged?

I'm willing to submit a PR to resolve the problem, but we don't want people to start relying on our fixed fork. Your answer will help me decide if the fork needs to be public/private.

Thanks

from core.

JoostK avatar JoostK commented on April 27, 2024 1

I have no clue, to be honest. View Engine is only potentially relevant for Angular 12 and older, with Ivy having become the default in v9 even. All supported Angular versions are now always Ivy, so removing that file will not have any effect for recent versions.

from core.

rina-maslova avatar rina-maslova commented on April 27, 2024

I'm also struggling with this issue. Can you please update when it is going to be updated to support Ivy partial compilation?

from core.

MortenKJ avatar MortenKJ commented on April 27, 2024

+1

from core.

YanerTavuz avatar YanerTavuz commented on April 27, 2024

+1

from core.

thekip avatar thekip commented on April 27, 2024

@jpike88 do you know how Angular Compiler determines what exactly should be compiled with ngcc and what is not? ui-router/core seems not have anything special for angular. It's framework-agnostic. But angular is still trying to compile it anyway. I don't really want to dig into angular compiler sources to understand what causes this package to be compiled, maybe you can point me in the right direction?

from core.

JoostK avatar JoostK commented on April 27, 2024

It is because of this file: https://github.com/ui-router/core/blob/306f2b3cfb78b8a81fa47bc40511e83c0ac39161/src/index.metadata.json

That is a View Engine manifest file that ngcc detects. It should be removed to stop ngcc from processing the package, or alternatively this package could add an ngcc.config.js file next to package.json:

module.exports = {
  entryPoints: {
    '.': {
      ignore: true
    },
  }
};

For projects that want to configure this manually, until @uirouter/core is updated, it's also possible to include ngcc.config.json in your own project with the following contents:

module.exports = {
  packages: {
    '@uirouter/core': {
        entryPoints: {
          '.': {
            ignore: true
          },
        }
    }
  }
};

from core.

christopherthielen avatar christopherthielen commented on April 27, 2024

@JoostK Thanks for the explanation. Do you think there is any risk to removing index.metadata.json?

TBH I have no memory of adding that file 5 years ago, heh.

from core.

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.