Open yasonk opened 2 years ago
After including history in my package.json
dependencies
, and running yarn install, the history module appears in mynode_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
After including history in my package.json
dependencies
, and running yarn install, the history module appears in mynode_modules
. However, sourcemaps for all the files are empty: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?