Comments (5)
@developit - A good friend of mine just announced Interlock.js in a talk at Cascadia.js which does just that actually.
It's really interesting actually - it's a pluggable build tool that uses babel for processing the AST just like you're suggesting. Some of the more interesting parts of it are it's bundling system which is based on Git's hashing algorithm to create reproducible module ids which lets you share code chunks across builds. Anyway, just thought I'd share.
Edit: I just noticed that the website is acting weird so I changed the link above to the actual github and wanted to add a link here to the documentation
from minify.
Yep, we definitely want to explore some sort of global module/file -aware minification.
Also related to #62
from minify.
@kangax sweet, I was hoping you guys would see the potentially huge value there. The runtime performance benefits of scope flattening are pretty awesome.
from minify.
We're actually planning to do an experiment at Facebook to try flattening scopes and hoist-rename everything to the top level in hopes of gaining on parsing performance. We'll see how it goes.
Sent from my iPhone
On 25 Aug 2016, at 20:47, Jason Miller [email protected] wrote:
@kangax sweet, I was hoping you guys would see the potentially huge value there. The runtime performance benefits of scope flattening are pretty awesome.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
from minify.
@baer I really enjoyed that video, thanks! Interesting ideas on bundling and HTTP/2.
from minify.
Related Issues (20)
- Keeping line breaks in the transformed code HOT 1
- ReactNativeJS: ReferenceError: Can't find variable: error
- Using minify get an endless loop of code
- After executing my plug-in after the minify-dead-code-elimination, I still get the deleted dead code in my plug-in
- Feature request: Convert long repeated strings to `.repeat()` when minifying
- asm.js code minified with babel-plugin-minify-dead-code-elimination causes "asm.js type error: initializer of exported object literal must be name of function" error in Firefox
- babel-plugin-minify-dead-code-elimination fails to remove variable declaration after return statement
- babel-plugin-minify-dead-code incorrect when var inside if
- minify-mangle-names fail when default parameters are assigned to a variable
- Constant with regular expression literal with global modifier incorrectly replace by literal
- Can't install babel-plugin-transform-remove-console getting unable to resolve dependency tree error
- [Bug]: @babel/traverse v7.17.10 broken `this` scope with dead code elimination plugin HOT 5
- Remove dependency badges
- [Bug] DCE is failed with block expression HOT 3
- Cannot read property 'add' of undefined while parsing file HOT 1
- Keep arguments name
- babel-plugin-minify-mangle-names doesn't rename calls in JSX expressions after mangling the variable name
- babel minify output has mysterious/broken output for this example HOT 1
- merge-sibling-variables loses source mapping
- [Bug]: The code cannot be minimized. There are two references HOT 2
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 minify.