UNPKG

create-expo-cljs-app

Version:

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

58 lines (51 loc) 1.48 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. * * @flow strict-local * @format */ 'use strict'; const canonicalize = require('metro-core/src/canonicalize'); import type {TransformInputOptions} from './transformHelpers'; export opaque type GraphId: string = string; function getGraphId( entryFile: string, options: TransformInputOptions, { shallow, experimentalImportBundleSupport, }: { +shallow: boolean, +experimentalImportBundleSupport: boolean, ... }, ): GraphId { return JSON.stringify( { entryFile, options: { customTransformOptions: options.customTransformOptions != null ? options.customTransformOptions : null, dev: options.dev, experimentalImportSupport: options.experimentalImportSupport || false, hot: options.hot, minify: options.minify, unstable_disableES6Transforms: options.unstable_disableES6Transforms, platform: options.platform != null ? options.platform : null, runtimeBytecodeVersion: options.runtimeBytecodeVersion, type: options.type, experimentalImportBundleSupport, shallow, unstable_transformProfile: options.unstable_transformProfile || 'default', }, }, canonicalize, ); } module.exports = getGraphId;