UNPKG

create-expo-cljs-app

Version:

Create a react native application with Expo and Shadow-CLJS!

44 lines (41 loc) 1.15 kB
/** * 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 */ "use strict"; /** * Splits a BundleOptions object into smaller, more manageable parts. */ function splitBundleOptions(options) { return { entryFile: options.entryFile, transformOptions: { customTransformOptions: options.customTransformOptions, dev: options.dev, hot: options.hot, minify: options.minify, platform: options.platform, runtimeBytecodeVersion: options.runtimeBytecodeVersion, type: "module", unstable_transformProfile: options.unstable_transformProfile }, serializerOptions: { excludeSource: options.excludeSource, inlineSourceMap: options.inlineSourceMap, modulesOnly: options.modulesOnly, runModule: options.runModule, sourceMapUrl: options.sourceMapUrl, sourceUrl: options.sourceUrl }, graphOptions: { shallow: options.shallow }, onProgress: options.onProgress }; } module.exports = splitBundleOptions;