-
-
Notifications
You must be signed in to change notification settings - Fork 448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relative paths in source maps #93
Comments
I second this, it's not nice having full paths.. |
Agreed, I experience the same issue. |
+1 |
Same here, babel-loader v.6.2.0 |
I came up with a simple fix that should solve the problem - check it out. |
Is this still a problem? when I try to reproduce the sources look like this: |
Just noticed this may be a duplicate of the issue I just filed #480 |
babel-loader was setting `options.sourceFileName` to a relative path, but this does not seem to work correctly anymore with either webpack or babel itself and causes incorrect source map file data in webpack. Setting it to an absolute path seems to fix the problem. Fixes babel#480 and possibly also babel#93.
babel-loader was setting `options.sourceFileName` to a relative path, but this does not seem to work correctly anymore with either webpack or babel itself and causes incorrect source map file data in webpack. Setting it to an absolute path seems to fix the problem. Fixes babel#480 and possibly also babel#93.
babel-loader was setting `options.sourceFileName` to a relative path, but this does not seem to work correctly anymore with either webpack or babel itself and causes incorrect source map file data in webpack. Setting it to an absolute path seems to fix the problem. Fixes babel#480 and possibly also babel#93.
@byelims you probably need to check whether in your .babelrc your babel presets for production env is different (e.g. if using react it's not |
I'm trying to switch from jsx-loader. My
webpack.config.js
is like this:This will produce relative paths in source maps.
If I use babel-loader with the same config, it will produce absolute paths.
Are there any methods to solve this problem?
The text was updated successfully, but these errors were encountered: