Files
react/packages/shared/ReactTypeOfSideEffect.js
T
Dan Abramov 21d0c11523 Convert the Source to ES Modules (#11389)
* Update transforms to handle ES modules

* Update Jest to handle ES modules

* Convert react package to ES modules

* Convert react-art package to ES Modules

* Convert react-call-return package to ES Modules

* Convert react-test-renderer package to ES Modules

* Convert react-cs-renderer package to ES Modules

* Convert react-rt-renderer package to ES Modules

* Convert react-noop-renderer package to ES Modules

* Convert react-dom/server to ES modules

* Convert react-dom/{client,events,test-utils} to ES modules

* Convert react-dom/shared to ES modules

* Convert react-native-renderer to ES modules

* Convert react-reconciler to ES modules

* Convert events to ES modules

* Convert shared to ES modules

* Remove CommonJS support from transforms

* Move ReactDOMFB entry point code into react-dom/src

This is clearer because we can use ES imports in it.

* Fix Rollup shim configuration to work with ESM

* Fix incorrect comment

* Exclude external imports without side effects

* Fix ReactDOM FB build

* Remove TODOs I don’t intend to fix yet
2017-11-02 19:50:03 +00:00

27 lines
839 B
JavaScript

/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
'use strict';
export type TypeOfSideEffect = number;
// Don't change these two values:
export const NoEffect = 0; // 0b00000000
export const PerformedWork = 1; // 0b00000001
// You can change the rest (and add more).
export const Placement = 2; // 0b00000010
export const Update = 4; // 0b00000100
export const PlacementAndUpdate = 6; // 0b00000110
export const Deletion = 8; // 0b00001000
export const ContentReset = 16; // 0b00010000
export const Callback = 32; // 0b00100000
export const Err = 64; // 0b01000000
export const Ref = 128; // 0b10000000