From 891c5619598a8192d97dd13439b7aca3a4c27970 Mon Sep 17 00:00:00 2001 From: nedjulius Date: Sun, 10 Dec 2023 17:34:00 -0500 Subject: [PATCH] Remove unnecessary file --- apps/esbuild-example/scripts/constants.js | 38 ----------------------- 1 file changed, 38 deletions(-) delete mode 100644 apps/esbuild-example/scripts/constants.js diff --git a/apps/esbuild-example/scripts/constants.js b/apps/esbuild-example/scripts/constants.js deleted file mode 100644 index 717a85bb..00000000 --- a/apps/esbuild-example/scripts/constants.js +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * - */ - -const path = require('path'); - -const BUILD_DIR_NAME = 'dist'; -const OUTFILE = `${BUILD_DIR_NAME}/bundle.js`; -const STYLEX_BUNDLE_PATH = path.resolve( - __dirname, - '..', - `${BUILD_DIR_NAME}/stylex.css`, -); - -const ESBUILD_SHARED_CONFIG = { - entryPoints: [path.resolve(__dirname, '..', 'src/App.jsx')], - bundle: true, - outfile: OUTFILE, -}; - -const STYLEX_PLUGIN_SHARED_CONFIG = { - useCSSLayers: true, - absoluteFilePath: STYLEX_BUNDLE_PATH, - unstable_moduleResolution: { - type: 'commonJS', - rootDir: path.resolve('..', process.cwd()), - }, -}; - -module.exports = { - ESBUILD_SHARED_CONFIG, - STYLEX_PLUGIN_SHARED_CONFIG, -};