prepack
prepack copied to clipboard
A JavaScript bundle optimizer.
ReferenceError: $ is not defined at script.js:84:1 (https://github.com/facebook/prepack/wiki/PP0023)
I'm dealing with [code.org's AppLab](https://code.org/educate/applab) for one of my projects. I'm using Scala and [compiling to Scala.JS](https://gist.github.com/sorenbug/7267c37a4e1e736a585364f4e2c7890d). This Scala registers event handlers to AppLab's `onEvent` function but prepack is recognizing...
Planning for optimized functions (original issue #799) mostly for H2 2018, but some stuff for past then. Under each category, the items are in rough order of priority Anything *italicized*...
Here's a strange issue that I've been running into with the React Native bundle. Our module system initializes and when doing so, can run into cases where there's an abstract...
This is a follow-up from some of the internal discussion we've had regarding the handling of abstract loops within Prepack. Given the example: ```js (function () { var array =...
```js (function() { let a = global.__abstract ? __makeSimple(__abstract("array", "[1, 2, 3]")) : [1, 2, 3]; let i = 0; var o = {x:0}; do { i++; o.x = i;...
```js let a = global.__abstract ? __makeSimple(__abstract("array", "[1, 2, 3]")) : [1, 2, 3]; let i = 0; var o = {x:0}; do { i++; o[Symbol.iterator] = i; } while...
We currently can't prepack the following code: ```js (function () { let a = []; if (__abstract("boolean", "x")) a.push(42); a.push(23); })(); ``` The last time I checked, the reason is...
If the behavior of a loop can be nicely summarized as a set of unknown properties on known objects, the the effects of the loop on the heap is known...
I find the mechanism to define a widened property as a value a bit awkward. It has many special cases. It leads to some tricky serialization issues when we try...