From 14710ddae574da375a09b3d94a8f4c28ae5e8d03 Mon Sep 17 00:00:00 2001 From: Eric Carlisle Date: Mon, 27 Mar 2017 14:19:15 -0400 Subject: [PATCH 1/6] Update readme with details on usage and purpose. --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8aa616a..09b2747 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,11 @@ module.exports = { }; ``` -This extracts SourceMaps from all js files (including node_modules). This is not very performant, so you may want to only apply the loader to relevant files. +`source-map-loader` extracts existing [sourcemaps](http://blog.teamtreehouse.com/introduction-source-maps) from all JavaScript entries. This includes both inline sourcemaps as well as map data linked via URL. All map data is passed to WebPack for processing as per a chosen [source mapping style](https://webpack.js.org/configuration/devtool/) specified by the `devtool` option in [webpack.conf.js](https://webpack.js.org/configuration/). + + + +This loader is especially useful when using 3rd-party libraries having their own source maps. If not extracted and processed into the map of the WebPack bundle, browsers may misinterpret map data. `source-map-loader` allows Webpack to maintain map data continuity across libraries so ease of debugging is preserved. + + + +`source-map-loader` will extract from any JavaScript file, including those in the `node_modules` directory. Be mindful in setting [include](https://webpack.js.org/configuration/module/#rule-include) and [exclude](https://webpack.js.org/configuration/module/#rule-exclude) rule conditions to maximize bundling performance.

Maintainers

From 703907ffb290e54f6bae6cd45ae05e589b335d4d Mon Sep 17 00:00:00 2001 From: Eric Carlisle Date: Sat, 8 Apr 2017 16:30:41 -0400 Subject: [PATCH 2/6] Ensure that all references to 'source map' are two words, not 'map' or 'sourcemap.' --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 09b2747..82f7023 100644 --- a/README.md +++ b/README.md @@ -39,9 +39,9 @@ module.exports = { }; ``` -`source-map-loader` extracts existing [sourcemaps](http://blog.teamtreehouse.com/introduction-source-maps) from all JavaScript entries. This includes both inline sourcemaps as well as map data linked via URL. All map data is passed to WebPack for processing as per a chosen [source mapping style](https://webpack.js.org/configuration/devtool/) specified by the `devtool` option in [webpack.conf.js](https://webpack.js.org/configuration/). +`source-map-loader` extracts existing [source maps](http://blog.teamtreehouse.com/introduction-source-maps) from all JavaScript entries. This includes both inline source maps as well as source map data linked via URL. All source map data is passed to webpack for processing as per a chosen [source map style](https://webpack.js.org/configuration/devtool/) specified by the `devtool` option in [webpack.conf.js](https://webpack.js.org/configuration/). + - +This loader is especially useful when using 3rd-party libraries having their own source maps. If not extracted and processed into the map of the WebPack bundle, browsers may misinterpret map data. `source-map-loader` allows Webpack to maintain map data continuity across libraries so ease of debugging is preserved. + +This loader is especially useful when using 3rd-party libraries having their own source maps. If not extracted and processed into the souce map of the webpack bundle, browsers may misinterpret source map data. `source-map-loader` allows webpack to maintain source map data continuity across libraries so ease of debugging is preserved. + +`source-map-loader` will extract from any JavaScript file, including those in the `node_modules` directory. Be mindful in setting [include](https://webpack.js.org/configuration/module/#rule-include) and [exclude](https://webpack.js.org/configuration/module/#rule-exclude) rule conditions to maximize bundling performance. From 90c10f7a1b4a1640268495cf5eac57ccd9e7b5db Mon Sep 17 00:00:00 2001 From: Eric Carlisle Date: Sat, 8 Apr 2017 16:40:54 -0400 Subject: [PATCH 3/6] Remove unneeded whitespace. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 82f7023..6278b90 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ module.exports = { }; ``` -`source-map-loader` extracts existing [source maps](http://blog.teamtreehouse.com/introduction-source-maps) from all JavaScript entries. This includes both inline source maps as well as source map data linked via URL. All source map data is passed to webpack for processing as per a chosen [source map style](https://webpack.js.org/configuration/devtool/) specified by the `devtool` option in [webpack.conf.js](https://webpack.js.org/configuration/). +`source-map-loader` extracts existing [source maps](http://blog.teamtreehouse.com/introduction-source-maps) from all JavaScript entries. This includes both inline source maps as well as those linked via URL. All source map data is passed to webpack for processing as per a chosen [source map style](https://webpack.js.org/configuration/devtool/) specified by the `devtool` option in [webpack.conf.js](https://webpack.js.org/configuration/). + +This loader is especially useful when using 3rd-party libraries having their own source maps. If not extracted and processed into the souce map of the webpack bundle, browsers may misinterpret source map data. `source-map-loader` allows webpack to maintain source map data continuity across libraries so ease of debugging is preserved. + From a6a36063524578a7b85792968bbc52169e267d83 Mon Sep 17 00:00:00 2001 From: Eric Carlisle Date: Sat, 8 Apr 2017 16:53:43 -0400 Subject: [PATCH 4/6] Remove teamtreehouse.com link defining source maps. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6278b90..88a8e5c 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ module.exports = { }; ``` -`source-map-loader` extracts existing [source maps](http://blog.teamtreehouse.com/introduction-source-maps) from all JavaScript entries. This includes both inline source maps as well as those linked via URL. All source map data is passed to webpack for processing as per a chosen [source map style](https://webpack.js.org/configuration/devtool/) specified by the `devtool` option in [webpack.conf.js](https://webpack.js.org/configuration/). +`source-map-loader` extracts existing source maps from all JavaScript entries. This includes both inline source maps as well as those linked via URL. All source map data is passed to webpack for processing as per a chosen [source map style](https://webpack.js.org/configuration/devtool/) specified by the `devtool` option in [webpack.conf.js](https://webpack.js.org/configuration/). + +This loader is especially useful when using 3rd-party libraries having their own source maps. If not extracted and processed into the souce map of the webpack bundle, browsers may misinterpret source map data. `source-map-loader` allows webpack to maintain source map data continuity across libraries so ease of debugging is preserved. + From 1a96b0dfb4ae881a239ea92f69857b4bf463e64d Mon Sep 17 00:00:00 2001 From: Eric Carlisle Date: Sun, 9 Apr 2017 19:11:29 -0400 Subject: [PATCH 5/6] Fix typo in config file name. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 88a8e5c..2f54e24 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ module.exports = { }; ``` -`source-map-loader` extracts existing source maps from all JavaScript entries. This includes both inline source maps as well as those linked via URL. All source map data is passed to webpack for processing as per a chosen [source map style](https://webpack.js.org/configuration/devtool/) specified by the `devtool` option in [webpack.conf.js](https://webpack.js.org/configuration/). +`source-map-loader` extracts existing source maps from all JavaScript entries. This includes both inline source maps as well as those linked via URL. All source map data is passed to webpack for processing as per a chosen [source map style](https://webpack.js.org/configuration/devtool/) specified by the `devtool` option in [webpack.confis.js](https://webpack.js.org/configuration/). + +This loader is especially useful when using 3rd-party libraries having their own source maps. If not extracted and processed into the souce map of the webpack bundle, browsers may misinterpret source map data. `source-map-loader` allows webpack to maintain source map data continuity across libraries so ease of debugging is preserved. + From 973172febf243c1f88a5b9666c315a4a10c97803 Mon Sep 17 00:00:00 2001 From: Eric Carlisle Date: Sun, 9 Apr 2017 19:20:59 -0400 Subject: [PATCH 6/6] Fix support typo. :-) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2f54e24..b43eeaf 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ module.exports = { }; ``` -`source-map-loader` extracts existing source maps from all JavaScript entries. This includes both inline source maps as well as those linked via URL. All source map data is passed to webpack for processing as per a chosen [source map style](https://webpack.js.org/configuration/devtool/) specified by the `devtool` option in [webpack.confis.js](https://webpack.js.org/configuration/). +`source-map-loader` extracts existing source maps from all JavaScript entries. This includes both inline source maps as well as those linked via URL. All source map data is passed to webpack for processing as per a chosen [source map style](https://webpack.js.org/configuration/devtool/) specified by the `devtool` option in [webpack.config.js](https://webpack.js.org/configuration/). + +This loader is especially useful when using 3rd-party libraries having their own source maps. If not extracted and processed into the souce map of the webpack bundle, browsers may misinterpret source map data. `source-map-loader` allows webpack to maintain source map data continuity across libraries so ease of debugging is preserved. +