create-expo-cljs-app
Version:
Create a react native application with Expo and Shadow-CLJS!
30 lines (25 loc) • 685 B
Flow
/**
* 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.
*
* @flow strict-local
* @format
*/
;
const writeFile = require('../writeFile');
function writeSourcemap(
fileName: string,
contents: string,
log: (...args: Array<string>) => void,
): Promise<mixed> {
if (!fileName) {
return Promise.resolve();
}
log('Writing sourcemap output to:', fileName);
const writeMap = writeFile(fileName, contents, null);
writeMap.then(() => log('Done writing sourcemap output'));
return writeMap;
}
module.exports = writeSourcemap;