awesome-repositories.com
Blog
MCP
awesome-repositories.com

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetÀ proposNotre méthodologiePresseServeur MCP
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
facebookarchive avatar

facebookarchive/prepackArchived

0
View on GitHub↗
14,118 stars·412 forks·JavaScript·6 vuesprepack.io↗

Prepack

Prepack is a build-time code evaluator and JavaScript bundle optimizer. It functions as a static analysis compiler that pre-evaluates static code and precalculates function results and global assignments during the build phase to accelerate startup times and reduce bundle size.

The project specifically targets JSX optimization by processing syntax and node serialization to improve user interface rendering efficiency. It utilizes a partial evaluation engine and static execution analysis to replace runtime computations with precalculated constants.

The tool covers a range of capabilities including the removal of TypeScript type annotations, the inlining of single-use expressions, and the simulation of environment-specific globals. It integrates into frontend build pipelines and can be operated via a command-line interface.

Features

  • Build-Time Evaluators - Precalculates function results and global assignments during the build phase to accelerate startup times.
  • Partial Evaluation - Provides a partial evaluation engine that computes static expressions and function calls at build time.
  • Build-Time Execution Efficiency - Evaluates static functions and expressions during build to reduce startup times and memory allocations.
  • Constant-Folding Optimizations - Performs constant-folding optimizations to replace complex operations with simple assignments at build time.
  • Constant Folding - Replace global bundle code with a sequence of assignments to eliminate runtime calculations and reduce object allocations.
  • Partial Evaluation Compilers - Analyzes source code to inline expressions and remove unused abstractions through build-time partial evaluation.
  • Side-Effect Analysis - Performs side-effect analysis to determine which functions can be safely precalculated.
  • JavaScript Optimization - Optimizes JavaScript execution by precalculating static code paths during the build process.
  • Syntax Tree Transformers - Implements syntax tree transformations to inline expressions and strip type annotations during the build process.
  • Rendering Optimization - Optimizes the rendering of React components by streamlining JSX node serialization.
  • Bundle Optimizers - Provides a bundle optimizer that reduces JavaScript bundle size and execution time.
  • Serialization Optimizers - Processing JSX syntax and node serialization at build time to improve the speed of user interface rendering.
  • JSX Transformers - Transforms JSX syntax into optimized JavaScript calls to improve rendering efficiency.
  • Build-Time Code Generators - Generates optimized code bundles by evaluating static parts of the program during the build phase.
  • Frontend Build Tools - Acts as a frontend build tool by integrating a bundle optimizer into the compilation pipeline.
  • Build Tool Integrations - Integrates with module bundlers and compilers to automate the evaluation process within build pipelines.
  • Expression Inlining - Replace expressions used only once with their actual values to reduce variable naming overhead and memory usage.
  • Global Environment Modeling - Simulates browser or server globals during compilation to evaluate environment-dependent code.
  • Runtime Environment Simulations - Defines the behavior of environment-specific globals to evaluate code referencing browser or server objects.
  • Type Annotation Stripping - Removes TypeScript type annotations from source code to produce executable JavaScript files.

Historique des stars

Graphique de l'historique des stars pour facebookarchive/prepackGraphique de l'historique des stars pour facebookarchive/prepack

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Alternatives open source à Prepack

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Prepack.
  • alangpierce/sucraseAvatar de alangpierce

    alangpierce/sucrase

    5,860Voir sur GitHub↗

    Sucrase is a high-speed transpilation tool that compiles modern JavaScript, TypeScript, JSX, and Flow to standard JavaScript for modern runtimes. It operates as a fast alternative to Babel, using a single-pass scanner and tokenizer that strips type annotations and applies only requested syntax transforms without building an AST or performing type checking. The tool differentiates itself through a zero-type-checking pipeline that omits type checking entirely, relying on the assumption that input code is already valid for the target runtime. It uses scanner-based tokenization and single-pass co

    TypeScriptcompileres-modulesjavascript
    Voir sur GitHub↗5,860
  • babel/minifyAvatar de babel

    babel/minify

    4,376Voir sur GitHub↗

    This project is an AST-based code optimizer and compressor for modern ECMAScript, JSX, and TypeScript source code. It functions as a JavaScript minifier that uses the Babel toolchain to reduce file size by removing unnecessary characters and whitespace while preserving program logic. The tool is distinguished by its ability to process experimental language proposals and transform modern syntax into browser-compatible versions. It provides specialized handling for React JSX transpilation and strips type annotations from TypeScript files to produce compressed production assets. The system cove

    JavaScript
    Voir sur GitHub↗4,376
  • callstack/linariaAvatar de callstack

    callstack/linaria

    12,335Voir sur GitHub↗

    Linaria is a zero-runtime CSS-in-JS library and static CSS generator. It evaluates JavaScript expressions at build time to extract styles from tagged template literals into standalone, static CSS files, removing the need for a runtime style injection engine. The library distinguishes itself by mapping component props to CSS custom properties, enabling dynamic styling and runtime property updates without regenerating stylesheets. It utilizes a build-time evaluation engine to resolve interpolations and a hashing system to generate scoped class names that prevent style collisions. The project c

    TypeScript
    Voir sur GitHub↗12,335
  • rollup/pluginsAvatar de rollup

    rollup/plugins

    3,750Voir sur GitHub↗

    This is a collection of official extensions for the Rollup bundling process. These plugins serve as module transformers, resolution managers, and bundle optimizers designed to modify how JavaScript modules are processed, resolved, and optimized. The suite provides specialized capabilities for modern web transpilation, converting TypeScript, JSX, Flow, and GraphQL into compatible JavaScript. It distinguishes itself through extensive non-JavaScript asset integration, allowing the import of JSON, YAML, CSV, and image files as JavaScript modules or data URIs, and providing support for bundling We

    JavaScriptpluginsrolluprollup-plugins
    Voir sur GitHub↗3,750
Voir les 30 alternatives à Prepack→

Questions fréquentes

Que fait facebookarchive/prepack ?

Prepack is a build-time code evaluator and JavaScript bundle optimizer. It functions as a static analysis compiler that pre-evaluates static code and precalculates function results and global assignments during the build phase to accelerate startup times and reduce bundle size.

Quelles sont les fonctionnalités principales de facebookarchive/prepack ?

Les fonctionnalités principales de facebookarchive/prepack sont : Build-Time Evaluators, Partial Evaluation, Build-Time Execution Efficiency, Constant-Folding Optimizations, Constant Folding, Partial Evaluation Compilers, Side-Effect Analysis, JavaScript Optimization.

Quelles sont les alternatives open-source à facebookarchive/prepack ?

Les alternatives open-source à facebookarchive/prepack incluent : alangpierce/sucrase — Sucrase is a high-speed transpilation tool that compiles modern JavaScript, TypeScript, JSX, and Flow to standard… babel/minify — This project is an AST-based code optimizer and compressor for modern ECMAScript, JSX, and TypeScript source code. It… callstack/linaria — Linaria is a zero-runtime CSS-in-JS library and static CSS generator. It evaluates JavaScript expressions at build… rollup/plugins — This is a collection of official extensions for the Rollup bundling process. These plugins serve as module… facebook/prepack — Prepack is a build-time transformation tool and static analysis engine designed to optimize JavaScript source code. By… google/closure-compiler-js — Closure Compiler is a JavaScript build utility designed to transform, optimize, and validate source code for…