prepack icon indicating copy to clipboard operation
prepack copied to clipboard

A JavaScript bundle optimizer.

Results 100 prepack issues
Sort by recently updated
recently updated
newest added

Release notes: Add error PP0036 for invalid property keys Hi! I'm still very new this codebase and exploring it. Was this what you were thinking of in #1898, @NTillmann ?

CLA Signed
stale

Release Note: Delay lazy objects creation into its parent lazy objects' lazy initializer. This is V2 of lazy objects feature which inlines/delays lazy objects with one reference count into its...

CLA Signed
stale

``` In input file lang.js(64:1) FatalError PP1004: Syntax error: 'import' and 'export' may appear only with 'sourceType: "module"' (64:0) (https://github.com/facebook/prepack/wiki/PP1004) Prepack failed, reporting 1 fatal error. ```

ES6

Prepacking this... ```js (function () { function f(a) { while (a > 10) { a--; } } __optimize(f); global.f = f; })(); ``` produces the following. The output looks correct,...

bug
help wanted

Input: ``` f = (function(a, b) { function id(s) { return s; } return function m(c){ let s = 0 for (let i = 0; i < a; i++) s...

The Links in [Test Results and Code Coverage](https://github.com/facebook/prepack#test-results-and-code-coverage) open a page containing:- `{ "message" : "Artifact not found" }`

When Prepack comes across conditional control-flow during its interpretation of the initialization code, e.g. if (require("NativeModules").UIManager.screen.width > 1000) { ... } else { ... } then it explores both branches,...

enhancement
abstract
bootcamped

Prepack wraps all values into instance of (subtypes of) the Value class. Structurally identical values can end being represented as multiple values. For concrete values, this just means that Prepack...

enhancement
help wanted
interpreter
abstract
refactoring
design needed

This ```js (function () { let n = global.__abstract ? __abstract("number", "23") : 23; if (n === 42) { let d = Date.now(); // dead pure generator entry } })();...

enhancement
help wanted
serializer
level 1 (super easy)
priority: low
Instant Render

Occasionally I leave an extra `__optimizeReactComponentTree` call in the bundle, or tag some component for optimizations that's already optimized via its parent tree. This looks like this in the output:...

react compiler