mirror of
https://github.com/status-im/metro.git
synced 2025-01-13 04:24:15 +00:00
Remove non-top-level export from module.js
Reviewed By: davidaurelio Differential Revision: D7705454 fbshipit-source-id: 73e09dde208828a22b514228cc55b5cd940ea859
This commit is contained in:
parent
3adbf01ea2
commit
faaf681ca2
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user