blois / angular_transforms Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
With the no-resolving hack, need to support prefixed imports.
Code is currently forked from Angular, should be able to be merged back.
Ideally this could double as a file generator as well.
Options include:
From the user's app entry point they need to reference the auto injection types (which are top-level members), but currently this doesn't support library prefixes.
May need the resolved AST, but can probably hack it without it.
Angular currently has a @MirrorsUsed which includes a bunch of unneeded mirrors when this is used. Removing this takes the zipped size of Todo down from 228K to 171K.
Currently all transforms are operating on an unresolved AST meaning it's doing simple identifier matching (fancy string matching). This has a large potential for problems and limits the expressiveness of additional statically injected types.
Currently all types with injection annotations and metadata are processed which adds unnecessary bloat. Provide a way to suppress types.
Types included in the static injector generation include the constructor so tree shaking will not eliminate these at all, leading to potentially significant chunks of code for things like the dynamic expression parser.
Does not escape all it should
Angular currently has a @MirrorsUsed which includes a bunch of unneeded mirrors when this is used. Removing this takes the zipped size of Todo down from 228K to 171K.
Add logging for all types which are included to aid in suppressing unneeded types.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.