- Consolidated duplicate UndoManagers to single instance - Fixed connection promise to only resolve on 'connected' status - Fixed WebSocketProvider import (WebsocketProvider) - Added proper doc.destroy() cleanup - Renamed isPresenceInitialized property to avoid conflict Co-Authored-By: Paperclip <noreply@paperclip.ing>
70 lines
2.3 KiB
Plaintext
70 lines
2.3 KiB
Plaintext
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow strict-local
|
|
* @format
|
|
* @oncall react_native
|
|
*/
|
|
|
|
/* eslint-disable import/no-commonjs */
|
|
|
|
'use strict';
|
|
|
|
import typeof ConstantFoldingPlugin from './constant-folding-plugin';
|
|
import typeof ImportExportPlugin from './import-export-plugin';
|
|
import typeof InlinePlugin from './inline-plugin';
|
|
import typeof InlineRequiresPlugin from './inline-requires-plugin';
|
|
import typeof NormalizePseudoGlobalsFn from './normalizePseudoGlobals';
|
|
|
|
export type {Options as ImportExportPluginOptions} from './import-export-plugin';
|
|
export type {Options as InlinePluginOptions} from './inline-plugin';
|
|
export type {PluginOptions as InlineRequiresPluginOptions} from './inline-requires-plugin';
|
|
|
|
type TransformPlugins = {
|
|
addParamsToDefineCall(string, ...Array<unknown>): string,
|
|
constantFoldingPlugin: ConstantFoldingPlugin,
|
|
importExportPlugin: ImportExportPlugin,
|
|
inlinePlugin: InlinePlugin,
|
|
inlineRequiresPlugin: InlineRequiresPlugin,
|
|
normalizePseudoGlobals: NormalizePseudoGlobalsFn,
|
|
getTransformPluginCacheKeyFiles(): ReadonlyArray<string>,
|
|
};
|
|
|
|
module.exports = {
|
|
// $FlowFixMe[unsafe-getters-setters]
|
|
get addParamsToDefineCall() {
|
|
return require('./addParamsToDefineCall').default;
|
|
},
|
|
// $FlowFixMe[unsafe-getters-setters]
|
|
get constantFoldingPlugin() {
|
|
return require('./constant-folding-plugin').default;
|
|
},
|
|
// $FlowFixMe[unsafe-getters-setters]
|
|
get importExportPlugin() {
|
|
return require('./import-export-plugin').default;
|
|
},
|
|
// $FlowFixMe[unsafe-getters-setters]
|
|
get inlinePlugin() {
|
|
return require('./inline-plugin').default;
|
|
},
|
|
// $FlowFixMe[unsafe-getters-setters]
|
|
get inlineRequiresPlugin() {
|
|
return require('./inline-requires-plugin').default;
|
|
},
|
|
// $FlowFixMe[unsafe-getters-setters]
|
|
get normalizePseudoGlobals() {
|
|
return require('./normalizePseudoGlobals').default;
|
|
},
|
|
getTransformPluginCacheKeyFiles: () => [
|
|
require.resolve(__filename),
|
|
require.resolve('./constant-folding-plugin'),
|
|
require.resolve('./import-export-plugin'),
|
|
require.resolve('./inline-plugin'),
|
|
require.resolve('./inline-requires-plugin'),
|
|
require.resolve('./normalizePseudoGlobals'),
|
|
],
|
|
} as TransformPlugins;
|