react-native-flip
Version:
28 lines (24 loc) • 598 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.
*
*
* @format
*/
;
exports.empty = () => virtual("", "/<generated>/empty.js"); // creates a virtual module (i.e. not corresponding to a file on disk)
// with the given source code.
const virtual = (code, filePath) => ({
dependencies: [],
file: {
code,
map: null,
functionMap: null,
path: filePath,
type: "script",
libraryIdx: null
}
});
exports.virtual = virtual;