在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:facebookarchive/prepack开源软件地址:https://github.com/facebookarchive/prepack开源编程语言:JavaScript 98.4%开源软件介绍:PrepackPrepack is a partial evaluator for JavaScript. Prepack rewrites a JavaScript bundle, resulting in JavaScript code that executes more efficiently. For initialization-heavy code, Prepack works best in an environment where JavaScript parsing is effectively cached. See the official prepack.io website for an introduction and an interactive REPL playground. StatusWe, the Prepack team at Facebook, have temporarily set down work on Prepack including the React compiler project. You won't see many Prepack PRs while we are currently prioritizing some other projects. How to use PrepackInstall the CLI via npm, $ npm install -g prepack Or if you prefer yarn, make sure you get yarn first, $ npm install -g yarn and then install the Prepack CLI via yarn: $ yarn global add prepack You may need to Let the party beginTo compile a file and print the output to the console: $ prepack script.js If you want to compile a file and output to another file: $ prepack script.js --out script-processed.js Detailed instructions and the API can be found at Prepack CLI: Getting Started Plugins to other toolsThe following are a few plugins to other tools. They have been created and are maintained separately from Prepack itself. If you run into any issues with those plugins, please ask the plugin maintainers for support.
Test Results and Code Coverage
How to get the code
Note: For development work you really need How to build, lint, type check
How to run tests
You can run individual test suites as follows:
How to run the interpreter
How to run Prepack
How to validate changesInstead of building, linting, type checking, testing separately, the following does everything together: How to edit the websiteThe content for prepack.io resides in the website directory of this repository. To make changes, submit a pull request, just like for any code changes. In order to run the website locally at localhost:8000:
How to contributeTo read more about the project, check out this suggested reading wiki For more information about contributing pull requests and issues, see our Contribution Guidelines. LicensePrepack is BSD-licensed. We also provide an additional patent grant. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论