MCPcopy Index your code
hub / github.com/ptmt/react-native-macos / Server

Class Server

packager/src/Server/index.js:114–890  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112const NODE_MODULES = `${path.sep}node_modules${path.sep}`;
113
114class Server {
115
116 _opts: {
117 assetExts: Array<string>,
118 blacklistRE: void | RegExp,
119 cacheVersion: string,
120 extraNodeModules: {},
121 getTransformOptions?: GetTransformOptions,
122 hasteImpl?: HasteImpl,
123 moduleFormat: string,
124 platforms: Array<string>,
125 polyfillModuleNames: Array<string>,
126 postProcessModules?: PostProcessModules,
127 postMinifyProcess?: PostMinifyProcess,
128 projectRoots: Array<string>,
129 providesModuleNodeModules?: Array<string>,
130 reporter: Reporter,
131 resetCache: boolean,
132 silent: boolean,
133 +sourceExts: Array<string>,
134 transformModulePath: void | string,
135 transformTimeoutInterval: ?number,
136 watch: boolean,
137 };
138 _projectRoots: Array<string>;
139 _bundles: {};
140 _changeWatchers: Array<{
141 req: IncomingMessage,
142 res: ServerResponse,
143 }>;
144 _fileChangeListeners: Array<(filePath: string) => mixed>;
145 _assetServer: AssetServer;
146 _bundler: Bundler;
147 _debouncedFileChangeHandler: (filePath: string) => mixed;
148 _hmrFileChangeListener: ?(type: string, filePath: string) => mixed;
149 _reporter: Reporter;
150 _symbolicateInWorker: Symbolicate;
151
152 constructor(options: Options) {
153 this._opts = {
154 assetExts: options.assetExts || defaults.assetExts,
155 blacklistRE: options.blacklistRE,
156 cacheVersion: options.cacheVersion || '1.0',
157 extraNodeModules: options.extraNodeModules || {},
158 getTransformOptions: options.getTransformOptions,
159 globalTransformCache: options.globalTransformCache,
160 hasteImpl: options.hasteImpl,
161 moduleFormat: options.moduleFormat != null ? options.moduleFormat : 'haste',
162 platforms: options.platforms || defaults.platforms,
163 polyfillModuleNames: options.polyfillModuleNames || [],
164 postProcessModules: options.postProcessModules,
165 postMinifyProcess: options.postMinifyProcess,
166 projectRoots: options.projectRoots,
167 providesModuleNodeModules: options.providesModuleNodeModules,
168 reporter: options.reporter,
169 resetCache: options.resetCache || false,
170 silent: options.silent || false,
171 sourceExts: options.sourceExts || defaults.sourceExts,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…