mirror of
https://github.com/status-im/metro.git
synced 2025-01-12 20:14:24 +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)
|
||||
// with the given source code.
|
||||
const virtual = (exports.virtual = (code: string): Module => ({
|
||||
const virtual = (code: string): Module => ({
|
||||
dependencies: [],
|
||||
file: {
|
||||
code,
|
||||
@ -23,4 +23,6 @@ const virtual = (exports.virtual = (code: string): Module => ({
|
||||
path: '',
|
||||
type: 'script',
|
||||
},
|
||||
}));
|
||||
});
|
||||
|
||||
exports.virtual = virtual;
|
||||
|
Loading…
x
Reference in New Issue
Block a user