-
-
Notifications
You must be signed in to change notification settings - Fork 452
Relative paths in source maps #93
Copy link
Copy link
Closed
Labels
Description
I'm trying to switch from jsx-loader. My webpack.config.js is like this:
module.exports = {
entry: './src/javascript/main.jsx',
output: {
devtoolModuleFilenameTemplate: '[resource-path]',
path: './public/js/',
filename: 'bundle.js'
},
module: {
loaders: [
{ test: /\.jsx$/, loaders: ['jsx'] }
]
}
};This will produce relative paths in source maps.
{
sources: ["./src/javascript/main.jsx"]
}If I use babel-loader with the same config, it will produce absolute paths.
{
sources: ["/full/path/src/javascript/main.jsx"]
}Are there any methods to solve this problem?
Reactions are currently unavailable