MCPcopy
hub / github.com/callstack/repack

github.com/callstack/repack @v2.5.2 sqlite

repository ↗ · DeepWiki ↗ · release v2.5.2 ↗
409 symbols 830 edges 162 files 90 documented · 22%
README

A Webpack-based toolkit to build your React Native application with full support of Webpack ecosystem.


Go to: Installation Go to: Usage Go to: Usage

Go to: Usage Go to: Usage

Build Status Version MIT License PRs Welcome Code of Conduct

Re.Pack is a next generation of Haul — a Webpack-based bundler for React Native applications.

Re.Pack uses Webpack 5 and React Native CLI's plugin system to allow you to bundle your application using Webpack and allow to easily switch from Metro.

Check the base webpack.config.js template, if you're curious how it all looks like.

Features

  • [x] Webpack ecosystem, plugins and utilities
  • [x] Build production bundle for iOS, Android and out-of-tree platforms
  • [x] Build development bundle for iOS, Android and out-of-tree platforms
  • [x] Development server with support for:
  • Remote JS debugging
  • Source Map symbolication
  • Hot Module Replacement and React Refresh
  • Reloading application from CLI using r key
  • [x] Built-in Hot Module Replacement + React Refresh support
  • [x] Flipper support:
  • Crash Reporter,
  • Application logs
  • Layout
  • Network
  • Hermes debugger
  • React DevTools
  • Development server (debugging/verbose) logs
  • [x] Hermes support:
  • Running the production/development bundle using Hermes engine
  • Transforming production bundle into bytecode bundle
  • Inspecting running Hermes engine with Flipper
  • [x] Code splitting (experimental):
  • Dynamic import() support with and without React.lazy() (recommended).
  • Arbitrary scripts (only for advanced users).
  • [x] Web Dashboard with compilation status, server logs and artifacts.

Planned features

  • [ ] ChunksToHermesBytecodePlugin plugin to automatically transform async chunks to bytecode format.
  • [ ] webpack-init command
  • [ ] Module Federation support

Documentation

The documentation is available at: https://re-pack.netlify.app/

You can also use the following links to jump to specific topics:

Made with ❤️ at Callstack

@callstack/repack is an open source project and will always remain free to use. If you think it's cool, please star it 🌟. Callstack is a group of React and React Native geeks, contact us at hello@callstack.com if you need any help with these or just want to say hi!

Like the project? ⚛️ Join the team who does amazing stuff for clients and drives React Native Open Source! 🔥

Extension points exported contracts — how you extend this code

WebpackPlugin (Interface)
(no doc) [16 implementers]
packages/repack/src/types.ts
DevServerContext (Interface)
(no doc)
packages/dashboard/src/types.ts
WebSocketDashboardServerConfig (Interface)
* WebSocketDashboardServer configuration options.
packages/repack/src/server/ws/WebSocketDashboardServer.ts
Stats (Interface)
(no doc)
packages/dashboard/src/types.ts
ReqLogData (Interface)
(no doc)
packages/repack/src/Reporter.ts
Props (Interface)
(no doc)
packages/dashboard/src/components/Button.tsx
ResLogData (Interface)
(no doc)
packages/repack/src/Reporter.ts
Props (Interface)
(no doc)
packages/dashboard/src/components/AppLayout.tsx

Core symbols most depended-on inside this repo

send
called by 29
packages/repack/src/server/ws/WebSocketDebuggerServer.ts
getFallbackFromOptions
called by 13
packages/repack/src/webpack/utils/env/internal/getFallbackFromOptions.ts
configure
called by 11
packages/repack/src/client/api/ChunkManager.ts
resolveChunk
called by 11
packages/repack/src/client/api/ChunkManager.ts
log
called by 10
packages/repack/src/client/setup/modules/DevServerClient.ts
createEntry
called by 9
packages/repack/src/webpack/plugins/LoggerPlugin.ts
apply
called by 8
packages/repack/src/types.ts
registerServer
called by 8
packages/repack/src/server/ws/WebSocketRouter.ts

Shape

Method 169
Function 94
Interface 76
Class 70

Languages

TypeScript97%
Java3%

Modules by API surface

packages/repack/src/server/ws/WebSocketMessageServer.ts18 symbols
packages/repack/src/Reporter.ts17 symbols
packages/repack/src/webpack/plugins/utils/__tests__/AssetsCopyProcessor.test.ts13 symbols
packages/repack/src/client/setup/modules/DevServerClient.ts13 symbols
packages/repack/src/types.ts12 symbols
packages/repack/src/server/hermes/InspectorProxy.ts12 symbols
packages/repack/src/server/Symbolicator.ts12 symbols
packages/repack/src/server/ws/WebSocketEventsServer.ts11 symbols
packages/repack/src/server/DevServerProxy.ts11 symbols
packages/repack/src/client/api/ChunkManagerBackend.ts10 symbols
packages/repack/src/webpack/plugins/AssetsResolverPlugin/AssetResolver.ts9 symbols
packages/repack/src/webpack-dev-middleware.d.ts9 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

@babel/cli7.12.16 · 1×
@babel/code-frame7.12.13 · 1×
@babel/core7.14.6 · 1×
@babel/plugin-proposal-nullish-coalescing-operator7.12.13 · 1×
@babel/plugin-proposal-optional-chaining7.12.16 · 1×
@babel/preset-env7.14.5 · 1×
@babel/preset-react7.14.5 · 1×
@babel/preset-typescript7.12.16 · 1×
@babel/runtime7.12.5 · 1×
@callstack/eslint-config11.0.0 · 1×
@callstack/repack2.0.0-beta.7 · 1×
@docusaurus/core2.0.0-beta.5 · 1×

For agents

$ claude mcp add repack \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact