Files
react/packages/react-fresh/runtime.js
T
Dan Abramov 6d4f85b611 [Fresh] Set up infra for runtime and Babel plugin (#15698)
* Add a stub for React Fresh Babel plugin package

* Move ReactFresh-test into ReactFresh top level directory

* Add a stub for React Fresh Runtime entry point

* Extract Fresh runtime from tests into its entry point
2019-05-21 21:54:10 +01:00

14 lines
395 B
JavaScript

/**
* 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.
*/
'use strict';
const ReactFreshRuntime = require('./src/ReactFreshRuntime');
// This is hacky but makes it work with both Rollup and Jest.
module.exports = ReactFreshRuntime.default || ReactFreshRuntime;