Skip to content

Instantly share code, notes, and snippets.

@machour
Created May 1, 2023 12:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save machour/ae342f4a5eb4618825aaad8c49b758c6 to your computer and use it in GitHub Desktop.
Save machour/ae342f4a5eb4618825aaad8c49b758c6 to your computer and use it in GitHub Desktop.
Fixes compatibility with old devices
diff --git a/node_modules/@remix-run/dev/dist/compiler/compileBrowser.js b/node_modules/@remix-run/dev/dist/compiler/compileBrowser.js
index 517068e..2846c2a 100644
--- a/node_modules/@remix-run/dev/dist/compiler/compileBrowser.js
+++ b/node_modules/@remix-run/dev/dist/compiler/compileBrowser.js
@@ -87,6 +87,7 @@ const createEsbuildConfig = (config, options) => {
entryPoints,
outdir: config.assetsBuildDirectory,
platform: "browser",
+ target: ["safari12.1"] ,
format: "esm",
external: getExternals(config),
loader: loaders.loaders,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment