-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move ram bundle plugin to core (#723)
- Loading branch information
Noemi Rozpara
authored
Apr 27, 2020
1 parent
d7319a2
commit 5e8fca4
Showing
29 changed files
with
49 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ndle-webpack-plugin/src/IndexRamBundle.ts → .../RamBundleWebpackPlugin/IndexRamBundle.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/haul-core/src/webpack/plugins/RamBundleWebpackPlugin/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './RamBundleWebpackPlugin'; |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,3 @@ | ||
# @haul-bundler/ram-bundle-webpack-plugin | ||
|
||
[![Version][version]][package] | ||
|
||
[![PRs Welcome][prs-welcome-badge]][prs-welcome] | ||
[![MIT License][license-badge]][license] | ||
[![Chat][chat-badge]][chat] | ||
[![Code of Conduct][coc-badge]][coc] | ||
|
||
RAM bundle plugin for Haul and Webpack. This module is intended for internal use. __Supports RN 0.59+__. | ||
|
||
__When using `@haul-bundler/cli ram-bundle` command, this plugin will be added and configured automatically__, based on passed options. | ||
|
||
You can read more about Haul here: https://github.com/callstack/haul. | ||
|
||
## API | ||
|
||
```ts | ||
import WebpackRamBundlePlugin from '@haul-bundler/ram-bundle-webpack-plugin'; | ||
|
||
new WebpackRamBundlePlugin({ | ||
sourceMap: true, // whether to generate source maps | ||
indexRamBundle: true, // whether to build Indexed RAM bundle or File RAM bundle | ||
preloadBundles: [], // name of bundles to preload when running in multi-bundle mode | ||
singleBundleMode: true, // whether to run in single-bundle mode or multi-bundle | ||
minify: true, // enables minifcation | ||
minifyOptions: { /* ... */ }, // Terser minify options (excluding `sourceMap`) | ||
maxWorkers: 1, // number of workers to use, should not be higher than number of available threads - 1 | ||
}); | ||
``` | ||
|
||
<!-- badges (common) --> | ||
|
||
[license-badge]: https://img.shields.io/npm/l/@haul-bundler/ram-bundle-webpack-plugin.svg?style=flat-square | ||
[license]: https://opensource.org/licenses/MIT | ||
[prs-welcome-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square | ||
[prs-welcome]: http://makeapullrequest.com | ||
[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square | ||
[coc]: https://github.com/callstack/haul/blob/master/CODE_OF_CONDUCT.md | ||
[chat-badge]: https://img.shields.io/badge/chat-discord-brightgreen.svg?style=flat-square&colorB=7289DA&logo=discord | ||
[chat]: https://discord.gg/zwR2Cdh | ||
|
||
[version]: https://img.shields.io/npm/v/@haul-bundler/ram-bundle-webpack-plugin.svg?style=flat-square | ||
[package]: https://www.npmjs.com/package/@haul-bundler/ram-bundle-webpack-plugin | ||
`RamBundleWebpackPlugin` was moved into `@haul-bundler/core` package. This module exists only for backwards compatibility and should not be used. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('@haul-bundler/core/dist/webpack/plugins/RamBundleWebpackPlugin'); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.