Tag

ModulePreload

1 views collected around this technical thread.

Ctrip Technology
Ctrip Technology
Dec 12, 2024 · Frontend Development

Upgrading Remix from 1.0 to 2.0: Solving Vite DynamicImport Preload Issues and Custom Optimizations

This article details the Ctrip Travel front‑end team's experience upgrading their framework from Remix 1.0 to Remix 2.0, focusing on Vite's DynamicImport optimization that caused 404 resource loads, and explains the mechanisms, code transformations, and custom fixes they implemented to ensure proper modulepreload and CDN host injection.

DynamicImportModulePreloadRemix
0 likes · 34 min read
Upgrading Remix from 1.0 to 2.0: Solving Vite DynamicImport Preload Issues and Custom Optimizations