create-expo-cljs-app
Version:
Create a react native application with Expo and Shadow-CLJS!
32 lines (24 loc) • 777 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
*/
;
const invariant = require("invariant");
function createConsumer(sourceMap) {
invariant(
sourceMap.version === "3" || sourceMap.version === 3,
`Unrecognized source map format version: ${sourceMap.version}`
);
const MappingsConsumer = require("./MappingsConsumer");
const SectionsConsumer = require("./SectionsConsumer"); // eslint-disable-next-line lint/strictly-null
if (sourceMap.mappings === undefined) {
return new SectionsConsumer(sourceMap);
}
return new MappingsConsumer(sourceMap);
}
module.exports = createConsumer;