Skip to content

Commit

Permalink
chore(deps): bump esbuild to latest, remove shim
Browse files Browse the repository at this point in the history
Signed-off-by: Logan McAnsh <logan@mcan.sh>
  • Loading branch information
mcansh committed Jul 28, 2022
1 parent fea8f60 commit a72454b
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 112 deletions.
7 changes: 0 additions & 7 deletions packages/remix-dev/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ import { serverRouteModulesPlugin } from "./compiler/plugins/serverRouteModulesP
import { writeFileSafe } from "./compiler/utils/fs";
import { urlImportsPlugin } from "./compiler/plugins/urlImportsPlugin";

// When we build Remix, this shim file is copied directly into the output
// directory in the same place relative to this file. It is eventually injected
// as a source file when building the app.
const reactShim = path.resolve(__dirname, "compiler/shims/react.ts");

interface BuildConfig {
mode: BuildMode;
target: BuildTarget;
Expand Down Expand Up @@ -366,7 +361,6 @@ async function createBrowserBuild(
platform: "browser",
format: "esm",
external: externals,
inject: config.serverBuildTarget === "deno" ? [] : [reactShim],
loader: loaders,
bundle: true,
logLevel: "silent",
Expand Down Expand Up @@ -459,7 +453,6 @@ function createServerBuild(
? ["module", "main"]
: ["main", "module"],
target: options.target,
inject: config.serverBuildTarget === "deno" ? [] : [reactShim],
loader: loaders,
bundle: true,
logLevel: "silent",
Expand Down
3 changes: 0 additions & 3 deletions packages/remix-dev/compiler/shims/react.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/remix-dev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"chalk": "^4.1.2",
"chokidar": "^3.5.1",
"dotenv": "^16.0.0",
"esbuild": "0.14.22",
"esbuild": "0.14.51",
"exit-hook": "2.2.1",
"express": "^4.17.1",
"fast-glob": "3.2.11",
Expand Down
Loading

0 comments on commit a72454b

Please sign in to comment.