Summary: Bundled plugins so far didn't load because the defaultPlugins was not generated yet. Fixed follow up errors that resulted from node modules not being available in the browser, and made the process more robust so that one plugin that fails to initialise doesn't kill all bundled plugins from being loaded. Cleaned up the server scripts, and reused the BUILTINS list that is already maintained in the babel transformer. Report errors during the build process if modules are referred that are stubbed out (later on we could maybe error on that) Reviewed By: aigoncharov Differential Revision: D33020243 fbshipit-source-id: 3ce13b0049664b5fb19c1f45f0b33c1d7fdbea4c
27 lines
932 B
TypeScript
27 lines
932 B
TypeScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
*/
|
|
|
|
import path from 'path';
|
|
|
|
export const rootDir = path.resolve(__dirname, '..');
|
|
export const appDir = path.join(rootDir, 'app');
|
|
export const browserUiDir = path.join(rootDir, 'flipper-ui-browser');
|
|
export const staticDir = path.join(rootDir, 'static');
|
|
export const serverDir = path.join(rootDir, 'flipper-server');
|
|
export const defaultPluginsDir = path.join(staticDir, 'defaultPlugins');
|
|
export const pluginsDir = path.join(rootDir, 'plugins');
|
|
export const fbPluginsDir = path.join(pluginsDir, 'fb');
|
|
export const publicPluginsDir = path.join(pluginsDir, 'public');
|
|
export const distDir = path.resolve(rootDir, '..', 'dist');
|
|
export const babelTransformationsDir = path.resolve(
|
|
rootDir,
|
|
'babel-transformer',
|
|
'src',
|
|
);
|