remix-run / history

Manage session history with JavaScript
MIT License
8.29k stars 961 forks source link

Sourcemaps are blank #928

Open yasonk opened 2 years ago

yasonk commented 2 years ago

After including history in my package.json dependencies, and running yarn install, the history module appears in my node_modules. However, sourcemaps for all the files are empty:

{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}

I tried downloading the source and building locally and got the same result (although only index.js was built successfully).

Anyone has empty sourcemaps? What is the best way to build locally?

2239559319 commented 2 years ago

After including history in my package.json dependencies, and running yarn install, the history module appears in my node_modules. However, sourcemaps for all the files are empty:

{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}

I tried downloading the source and building locally and got the same result (although only index.js was built successfully).

Anyone has empty sourcemaps? What is the best way to build locally?

The reason that the sourcemap cannot be generated correctly is that the sourcemap setting of tsconfig is false by default