Remove non-top-level export from module.js

Reviewed By: davidaurelio

Differential Revision: D7705454

fbshipit-source-id: 73e09dde208828a22b514228cc55b5cd940ea859
This commit is contained in:
Nat Mote 2018-04-20 09:43:55 -07:00 committed by Facebook Github Bot
parent 3adbf01ea2
commit faaf681ca2

View File

@ -15,7 +15,7 @@ exports.empty = (): Module => virtual('');
// creates a virtual module (i.e. not corresponding to a file on disk) // creates a virtual module (i.e. not corresponding to a file on disk)
// with the given source code. // with the given source code.
const virtual = (exports.virtual = (code: string): Module => ({ const virtual = (code: string): Module => ({
dependencies: [], dependencies: [],
file: { file: {
code, code,
@ -23,4 +23,6 @@ const virtual = (exports.virtual = (code: string): Module => ({
path: '', path: '',
type: 'script', type: 'script',
}, },
})); });
exports.virtual = virtual;