This repository contains a minimal setup to reproduce an issue encountered with Webpack's unsafeCache
feature not correctly resolving file extensions dynamically from .jsx
to .tsx
in a development environment using Webpack Dev Server.
The development server fails to recognize dynamic file renames/extension changes, leading to module resolution errors. Please see here for more context on the issue.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Node.js
- npm
npm install
installs necessary dependencies
npm start
runs the development server
The app is served at http://localhost:8080
by default
- The initial setup includes a
src/index.jsx
file importingsrc/App.jsx
. - When
src/App.jsx
is changed tosrc/App.tsx
, the dev server fails.