Razzle: No sourcemap for client.js in production build

Created on 6 Jun 2017  路  1Comment  路  Source: jaredpalmer/razzle

Steps for reproducing:

Sourcemap Files are created for:

  • build/server.js -> build/server.js.map
  • build/public/static/css/client.09fcbae0.css -> build/public/static/css/client.09fcbae0.css.map
  • NO sourcemap for build/public/static/js/client.2617cc1f.js

I tried to tweak the webpack config with no success. Am I missing something?

bug medium

Most helpful comment

I have another issue. Sourcemaps are present, but they are mostly empty. Example is here https://github.com/stereobooster/react-phone-number-input-ssr

source-map-explorer build/public/static/js/bundle.1bb261cb.js

Your source map only contains one source ( webpack:/webpack/bootstrap 6a97ef73520e2ab54233 )
This typically means that your source map doesn't map all the way back to the original sources.
This can happen if you use browserify+uglifyjs, for example, and don't set the --in-source-map flag to uglify.
See  https://github.com/danvk/source-map-explorer/blob/master/README.md#generating-source-maps

>All comments

I have another issue. Sourcemaps are present, but they are mostly empty. Example is here https://github.com/stereobooster/react-phone-number-input-ssr

source-map-explorer build/public/static/js/bundle.1bb261cb.js

Your source map only contains one source ( webpack:/webpack/bootstrap 6a97ef73520e2ab54233 )
This typically means that your source map doesn't map all the way back to the original sources.
This can happen if you use browserify+uglifyjs, for example, and don't set the --in-source-map flag to uglify.
See  https://github.com/danvk/source-map-explorer/blob/master/README.md#generating-source-maps
Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexjoyner picture alexjoyner  路  3Comments

MaxGoh picture MaxGoh  路  4Comments

gabimor picture gabimor  路  3Comments

howardya picture howardya  路  5Comments

jcblw picture jcblw  路  4Comments