{"_id":"adjust-sourcemap-loader","_rev":"3008833","name":"adjust-sourcemap-loader","description":"Webpack loader that adjusts source maps","dist-tags":{"latest":"5.0.0","next":"2.0.0"},"maintainers":[{"name":"bholloway","email":"npm@bholloway.com"}],"time":{"modified":"2023-09-19T06:40:30.000Z","created":"2016-02-05T07:58:51.774Z","5.0.0":"2022-10-14T00:47:23.079Z","4.0.0":"2020-10-26T08:19:47.303Z","3.0.0":"2020-10-20T07:02:38.658Z","2.0.0":"2019-02-15T09:25:34.970Z","2.0.0-alpha.1":"2018-08-29T04:23:05.495Z","1.2.0":"2018-03-05T11:07:56.706Z","1.1.0":"2017-03-03T06:03:12.157Z","1.0.0":"2016-05-17T02:38:25.334Z","0.1.1":"2016-03-29T04:46:47.602Z","0.1.0":"2016-02-18T01:23:50.952Z","0.0.1":"2016-02-05T07:58:51.774Z"},"users":{},"author":{"name":"bholloway"},"repository":{"type":"git","url":"git+https://github.com/bholloway/adjust-sourcemap-loader.git"},"versions":{"5.0.0":{"name":"adjust-sourcemap-loader","version":"5.0.0","description":"Webpack loader that adjusts source maps","main":"index.js","engines":{"node":">=12"},"repository":{"type":"git","url":"git+https://github.com/bholloway/adjust-sourcemap-loader.git"},"keywords":["webpack","loader","source-map","sourcemap","sources","resolve","adjust"],"author":{"name":"bholloway"},"license":"MIT","bugs":{"url":"https://github.com/bholloway/adjust-sourcemap-loader/issues"},"homepage":"https://github.com/bholloway/adjust-sourcemap-loader","dependencies":{"loader-utils":"^3.2.0","regex-parser":"^2.2.11"},"devDependencies":{"jshint":"^2.13.5"},"scripts":{"lint":"jshint index.js lib codec"},"gitHead":"b4280b7d38dcc073d17c617dc813af81f08b4e40","_id":"adjust-sourcemap-loader@5.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"bholloway","email":"npm@bholloway.com"},"dist":{"shasum":"3bd5557f25ee730295cfa451dd330a41b49ad662","size":11655,"noattachment":false,"key":"/adjust-sourcemap-loader/-/adjust-sourcemap-loader-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/adjust-sourcemap-loader/download/adjust-sourcemap-loader-5.0.0.tgz"},"directories":{},"maintainers":[{"name":"bholloway","email":"npm@bholloway.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/adjust-sourcemap-loader_5.0.0_1665708442842_0.8936593589817787"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-14T00:47:23.079Z","publish_time":1665708443079,"_cnpm_publish_time":1665708443079},"4.0.0":{"name":"adjust-sourcemap-loader","version":"4.0.0","description":"Webpack loader that adjusts source maps","main":"index.js","engines":{"node":">=8.9"},"repository":{"type":"git","url":"git+https://github.com/bholloway/adjust-sourcemap-loader.git"},"keywords":["webpack","loader","source-map","sourcemap","sources","resolve","adjust"],"author":{"name":"bholloway"},"license":"MIT","bugs":{"url":"https://github.com/bholloway/adjust-sourcemap-loader/issues"},"homepage":"https://github.com/bholloway/adjust-sourcemap-loader","dependencies":{"loader-utils":"^2.0.0","regex-parser":"^2.2.11"},"devDependencies":{"jshint":"^2.12.0"},"scripts":{"lint":"jshint index.js lib codec"},"gitHead":"5f173eef0c2ba39bdafa142669b3916ab69019c6","_id":"adjust-sourcemap-loader@4.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"bholloway","email":"npm@bholloway.com"},"dist":{"shasum":"fc4a0fd080f7d10471f30a7320f25560ade28c99","size":11635,"noattachment":false,"key":"/adjust-sourcemap-loader/-/adjust-sourcemap-loader-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/adjust-sourcemap-loader/download/adjust-sourcemap-loader-4.0.0.tgz"},"maintainers":[{"name":"bholloway","email":"npm@bholloway.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/adjust-sourcemap-loader_4.0.0_1603700387185_0.7493998276148721"},"_hasShrinkwrap":false,"publish_time":1603700387303,"_cnpm_publish_time":1603700387303},"3.0.0":{"name":"adjust-sourcemap-loader","version":"3.0.0","description":"Webpack loader that adjusts source maps","main":"index.js","engines":{"node":">=8.9"},"repository":{"type":"git","url":"git+https://github.com/bholloway/adjust-sourcemap-loader.git"},"keywords":["webpack","loader","source-map","sourcemap","sources","resolve","adjust"],"author":{"name":"bholloway"},"license":"MIT","bugs":{"url":"https://github.com/bholloway/adjust-sourcemap-loader/issues"},"homepage":"https://github.com/bholloway/adjust-sourcemap-loader","dependencies":{"loader-utils":"^2.0.0","regex-parser":"^2.2.11"},"devDependencies":{"jshint":"^2.12.0"},"scripts":{"lint":"jshint index.js lib codec"},"gitHead":"59b4c45179b74dd2ec51acbae0d4ef8f338709cc","_id":"adjust-sourcemap-loader@3.0.0","_nodeVersion":"6.17.1","_npmVersion":"6.13.0","dist":{"shasum":"5ae12fb5b7b1c585e80bbb5a63ec163a1a45e61e","size":11566,"noattachment":false,"key":"/adjust-sourcemap-loader/-/adjust-sourcemap-loader-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/adjust-sourcemap-loader/download/adjust-sourcemap-loader-3.0.0.tgz"},"maintainers":[{"name":"bholloway","email":"npm@bholloway.com"}],"_npmUser":{"name":"bholloway","email":"npm@bholloway.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/adjust-sourcemap-loader_3.0.0_1603177358516_0.2509559481261536"},"_hasShrinkwrap":false,"publish_time":1603177358658,"_cnpm_publish_time":1603177358658},"2.0.0":{"name":"adjust-sourcemap-loader","version":"2.0.0","description":"Webpack loader that adjusts source maps","main":"index.js","repository":{"type":"git","url":"git+https://github.com/bholloway/adjust-sourcemap-loader.git"},"keywords":["webpack","loader","source-map","sourcemap","sources","resolve","adjust"],"author":{"name":"bholloway"},"license":"MIT","bugs":{"url":"https://github.com/bholloway/adjust-sourcemap-loader/issues"},"homepage":"https://github.com/bholloway/adjust-sourcemap-loader","dependencies":{"assert":"1.4.1","camelcase":"5.0.0","loader-utils":"1.2.3","object-path":"0.11.4","regex-parser":"2.2.10"},"devDependencies":{"jshint":"^2.10.1"},"scripts":{"lint":"jshint index.js lib"},"gitHead":"b5781ceed0a5f7287a081ddaa28de455d05262cf","_id":"adjust-sourcemap-loader@2.0.0","_npmVersion":"5.10.0","_nodeVersion":"6.14.4","_npmUser":{"name":"bholloway","email":"npm@bholloway.com"},"dist":{"shasum":"6471143af75ec02334b219f54bc7970c52fb29a4","size":10668,"noattachment":false,"key":"/adjust-sourcemap-loader/-/adjust-sourcemap-loader-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/adjust-sourcemap-loader/download/adjust-sourcemap-loader-2.0.0.tgz"},"maintainers":[{"name":"bholloway","email":"npm@bholloway.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/adjust-sourcemap-loader_2.0.0_1550222734827_0.30708624653383154"},"_hasShrinkwrap":false,"publish_time":1550222734970,"_cnpm_publish_time":1550222734970},"2.0.0-alpha.1":{"name":"adjust-sourcemap-loader","version":"2.0.0-alpha.1","description":"Webpack loader that adjusts source maps","main":"index.js","repository":{"type":"git","url":"git+https://github.com/bholloway/adjust-sourcemap-loader.git"},"keywords":["webpack","loader","source-map","sourcemap","sources","resolve","adjust"],"author":{"name":"bholloway"},"license":"MIT","bugs":{"url":"https://github.com/bholloway/adjust-sourcemap-loader/issues"},"homepage":"https://github.com/bholloway/adjust-sourcemap-loader","dependencies":{"assert":"^1.3.0","camelcase":"^1.2.1","loader-utils":"^1.1.0","lodash.assign":"^4.0.1","lodash.defaults":"^3.1.2","object-path":"^0.9.2","regex-parser":"^2.2.9"},"devDependencies":{"jshint":"^2.9.5"},"scripts":{"lint":"jshint index.js lib"},"readmeFilename":"readme.md","gitHead":"080db0e683905f4b61ddb0073596e65051c8d889","_id":"adjust-sourcemap-loader@2.0.0-alpha.1","_npmVersion":"5.4.2","_nodeVersion":"8.7.0","_npmUser":{"name":"bholloway","email":"npm@bholloway.com"},"dist":{"shasum":"8b2d712e568cd01f595ef49c8a0c297f93fbe394","size":10740,"noattachment":false,"key":"/adjust-sourcemap-loader/-/adjust-sourcemap-loader-2.0.0-alpha.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/adjust-sourcemap-loader/download/adjust-sourcemap-loader-2.0.0-alpha.1.tgz"},"maintainers":[{"name":"bholloway","email":"npm@bholloway.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/adjust-sourcemap-loader_2.0.0-alpha.1_1535516585371_0.13917585687130773"},"_hasShrinkwrap":false,"publish_time":1535516585495,"_cnpm_publish_time":1535516585495},"1.2.0":{"name":"adjust-sourcemap-loader","version":"1.2.0","description":"Webpack loader that adjusts source maps","main":"index.js","repository":{"type":"git","url":"git+https://github.com/bholloway/adjust-sourcemap-loader.git"},"keywords":["webpack","loader","source-map","sourcemap","sources","resolve","adjust"],"author":{"name":"bholloway"},"license":"MIT","bugs":{"url":"https://github.com/bholloway/adjust-sourcemap-loader/issues"},"homepage":"https://github.com/bholloway/adjust-sourcemap-loader","dependencies":{"assert":"^1.3.0","camelcase":"^1.2.1","loader-utils":"^1.1.0","lodash.assign":"^4.0.1","lodash.defaults":"^3.1.2","object-path":"^0.9.2","regex-parser":"^2.2.9"},"devDependencies":{"jshint":"^2.9.5"},"scripts":{"lint":"jshint index.js lib"},"gitHead":"b2c8bf26a0ebefb071a2bda8dd882b5d095d31eb","_id":"adjust-sourcemap-loader@1.2.0","_npmVersion":"5.5.1","_nodeVersion":"9.3.0","_npmUser":{"name":"bholloway","email":"npm@bholloway.com"},"dist":{"shasum":"e33fde95e50db9f2a802e3647e311d2fc5000c69","size":10784,"noattachment":false,"key":"/adjust-sourcemap-loader/-/adjust-sourcemap-loader-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/adjust-sourcemap-loader/download/adjust-sourcemap-loader-1.2.0.tgz"},"maintainers":[{"name":"bholloway","email":"npm@bholloway.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/adjust-sourcemap-loader_1.2.0_1520248076569_0.488558562946227"},"_hasShrinkwrap":false,"publish_time":1520248076706,"_cnpm_publish_time":1520248076706},"1.1.0":{"name":"adjust-sourcemap-loader","version":"1.1.0","description":"Webpack loader that adjusts source maps","main":"index.js","repository":{"type":"git","url":"git+https://github.com/bholloway/adjust-sourcemap-loader.git"},"keywords":["webpack","loader","source-map","sourcemap","sources","resolve","adjust"],"author":{"name":"bholloway"},"license":"MIT","bugs":{"url":"https://github.com/bholloway/adjust-sourcemap-loader/issues"},"homepage":"https://github.com/bholloway/adjust-sourcemap-loader","dependencies":{"assert":"^1.3.0","camelcase":"^1.2.1","loader-utils":"^1.0.2","lodash.assign":"^4.0.1","lodash.defaults":"^3.1.2","object-path":"^0.9.2","regex-parser":"^2.2.1"},"gitHead":"cbf9f99dc81d2ba8ae029b231db29b6f59daddf2","_id":"adjust-sourcemap-loader@1.1.0","scripts":{},"_shasum":"412d92404eb61e4113635012cba53a33d008e0e2","_from":".","_npmVersion":"3.10.9","_nodeVersion":"4.4.7","_npmUser":{"name":"bholloway","email":"npm@bholloway.com"},"dist":{"shasum":"412d92404eb61e4113635012cba53a33d008e0e2","size":10819,"noattachment":false,"key":"/adjust-sourcemap-loader/-/adjust-sourcemap-loader-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/adjust-sourcemap-loader/download/adjust-sourcemap-loader-1.1.0.tgz"},"maintainers":[{"name":"bholloway","email":"npm@bholloway.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/adjust-sourcemap-loader-1.1.0.tgz_1488520991934_0.09003386180847883"},"directories":{},"publish_time":1488520992157,"_cnpm_publish_time":1488520992157,"_hasShrinkwrap":false},"1.0.0":{"name":"adjust-sourcemap-loader","version":"1.0.0","description":"Webpack loader that adjusts source maps","main":"index.js","repository":{"type":"git","url":"git+https://github.com/bholloway/adjust-sourcemap-loader.git"},"keywords":["webpack","loader","source-map","sourcemap","sources","resolve","adjust"],"author":{"name":"bholloway"},"license":"MIT","bugs":{"url":"https://github.com/bholloway/adjust-sourcemap-loader/issues"},"homepage":"https://github.com/bholloway/adjust-sourcemap-loader","dependencies":{"assert":"^1.3.0","camelcase":"^1.2.1","loader-utils":"^0.2.12","lodash.assign":"^4.0.1","lodash.defaults":"^3.1.2","object-path":"^0.9.2","regex-parser":"^2.2.1"},"gitHead":"864526aa0351b4efb40458c18fb23902045e6328","_id":"adjust-sourcemap-loader@1.0.0","scripts":{},"_shasum":"3ddf04201b8f8ca3ee8e7b7fb4c7dbc5ebf7dd74","_from":".","_npmVersion":"3.8.6","_nodeVersion":"4.4.0","_npmUser":{"name":"bholloway","email":"npm@bholloway.com"},"maintainers":[{"name":"bholloway","email":"npm@bholloway.com"}],"dist":{"shasum":"3ddf04201b8f8ca3ee8e7b7fb4c7dbc5ebf7dd74","size":10846,"noattachment":false,"key":"/adjust-sourcemap-loader/-/adjust-sourcemap-loader-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/adjust-sourcemap-loader/download/adjust-sourcemap-loader-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/adjust-sourcemap-loader-1.0.0.tgz_1463452701632_0.7745762479025871"},"directories":{},"publish_time":1463452705334,"_cnpm_publish_time":1463452705334,"_hasShrinkwrap":false},"0.1.1":{"name":"adjust-sourcemap-loader","version":"0.1.1","description":"Webpack loader that adjusts source maps","main":"index.js","repository":{"type":"git","url":"git+https://github.com/bholloway/adjust-sourcemap-loader.git"},"keywords":["webpack","loader","source-map","sourcemap","sources","resolve","adjust"],"author":{"name":"bholloway"},"license":"MIT","bugs":{"url":"https://github.com/bholloway/adjust-sourcemap-loader/issues"},"homepage":"https://github.com/bholloway/adjust-sourcemap-loader","dependencies":{"assert":"^1.3.0","camelcase":"^1.2.1","loader-utils":"^0.2.12","lodash.assign":"^4.0.1","lodash.defaults":"^3.1.2","object-path":"^0.9.2","regex-parser":"^2.2.1"},"gitHead":"f033b0e4ad630a4ac08f72af5ac2c502987b35cc","_id":"adjust-sourcemap-loader@0.1.1","scripts":{},"_shasum":"0204c9b379e74e9e530d125be906b3ff254abf0a","_from":".","_npmVersion":"3.5.2","_nodeVersion":"4.0.0","_npmUser":{"name":"bholloway","email":"npm@bholloway.com"},"maintainers":[{"name":"bholloway","email":"npm@bholloway.com"}],"dist":{"shasum":"0204c9b379e74e9e530d125be906b3ff254abf0a","size":9461,"noattachment":false,"key":"/adjust-sourcemap-loader/-/adjust-sourcemap-loader-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/adjust-sourcemap-loader/download/adjust-sourcemap-loader-0.1.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/adjust-sourcemap-loader-0.1.1.tgz_1459226807177_0.7966661693062633"},"directories":{},"publish_time":1459226807602,"_cnpm_publish_time":1459226807602,"_hasShrinkwrap":false},"0.1.0":{"name":"adjust-sourcemap-loader","version":"0.1.0","description":"Webpack loader that adjusts source maps","main":"index.js","repository":{"type":"git","url":"git+https://github.com/bholloway/adjust-sourcemap-loader.git"},"keywords":["webpack","loader","source-map","sourcemap","sources","resolve","adjust"],"author":{"name":"bholloway"},"license":"MIT","bugs":{"url":"https://github.com/bholloway/adjust-sourcemap-loader/issues"},"homepage":"https://github.com/bholloway/adjust-sourcemap-loader","dependencies":{"assert":"^1.3.0","camelcase":"^1.2.1","loader-utils":"^0.2.12","lodash.assign":"^4.0.1","lodash.defaults":"^3.1.2","object-path":"^0.9.2","regex-parser":"^2.2.1"},"gitHead":"5358169a82a5f18cc859e57b3e43205bf3843331","_id":"adjust-sourcemap-loader@0.1.0","scripts":{},"_shasum":"778c36adea0d6cfffbd9213749955c79d4c6eb8a","_from":".","_npmVersion":"3.5.2","_nodeVersion":"4.0.0","_npmUser":{"name":"bholloway","email":"npm@bholloway.com"},"maintainers":[{"name":"bholloway","email":"npm@bholloway.com"}],"dist":{"shasum":"778c36adea0d6cfffbd9213749955c79d4c6eb8a","size":9401,"noattachment":false,"key":"/adjust-sourcemap-loader/-/adjust-sourcemap-loader-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/adjust-sourcemap-loader/download/adjust-sourcemap-loader-0.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/adjust-sourcemap-loader-0.1.0.tgz_1455758628824_0.5492376829497516"},"directories":{},"publish_time":1455758630952,"_cnpm_publish_time":1455758630952,"_hasShrinkwrap":false},"0.0.1":{"name":"adjust-sourcemap-loader","version":"0.0.1","description":"Webpack loader that adjusts source maps","main":"index.js","repository":{"type":"git","url":"git+https://github.com/bholloway/adjust-sourcemap-loader.git"},"keywords":["webpack","loader","source-map","sourcemap","sources","resolve","adjust"],"author":{"name":"bholloway"},"license":"MIT","bugs":{"url":"https://github.com/bholloway/adjust-sourcemap-loader/issues"},"homepage":"https://github.com/bholloway/adjust-sourcemap-loader","dependencies":{"assert":"^1.3.0","camelcase":"^1.2.1","loader-utils":"^0.2.11","lodash.assign":"^4.0.1","lodash.defaults":"^3.1.2","regex-parser":"^2.2.1"},"gitHead":"470e36aaaebc4ccb80d5ac1679c40493f2478b57","_id":"adjust-sourcemap-loader@0.0.1","scripts":{},"_shasum":"861c277f347b7a7e37be1aacc9c68ad78ec38df8","_from":".","_npmVersion":"3.5.2","_nodeVersion":"4.0.0","_npmUser":{"name":"bholloway","email":"npm@bholloway.com"},"maintainers":[{"name":"bholloway","email":"npm@bholloway.com"}],"dist":{"shasum":"861c277f347b7a7e37be1aacc9c68ad78ec38df8","size":7146,"noattachment":false,"key":"/adjust-sourcemap-loader/-/adjust-sourcemap-loader-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/adjust-sourcemap-loader/download/adjust-sourcemap-loader-0.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/adjust-sourcemap-loader-0.0.1.tgz_1454659131191_0.9717527297325432"},"directories":{},"publish_time":1454659131774,"_cnpm_publish_time":1454659131774,"_hasShrinkwrap":false}},"readme":"# Adjust Source-map Loader\n\n[![NPM](https://nodei.co/npm/adjust-sourcemap-loader.png)](http://github.com/bholloway/adjust-sourcemap-loader)\n\nWebpack loader that adjusts source maps.\n\nUse as a **loader** to debug source-maps or to adjust source-maps between other loaders.\n\nUse as a **module filename template** to ensure the final source-map are to your liking.\n\n## Usage : Loader\n\n``` javascript\nrequire('adjust-sourcemap?format=absolute!babel?sourceMap');\n```\n\n### Source maps required\n\nNote that **source maps** must be enabled on any preceding loader. In the above example we use `babel?sourceMap`.\n\n### Apply via webpack config\n\nIt is preferable to adjust your `webpack.config` so to avoid having to prefix every `require()` statement:\n\n``` javascript\nmodule.exports = {\n  module: {\n    loaders: [\n      {\n        test   : /\\.js/,\n        loaders: ['adjust-sourcemap?format=absolute', 'babel?sourceMap']\n      }\n    ]\n  }\n};\n```\n\n## Usage : Module filename template\n\nSpecifying a certain format as the final step in a loader chain will **not** influence the final source format that Webpack will output. Instead the format is determined by the **module filename template**.\n\nThere are limitations to the filename templating that Webpack provides. This package may also operate as a custom template function that will convert output source-map sources to the desired `format`.\n\nIn the following example we ensure project-relative source-map sources are output.\n\n```javascript\nvar templateFn = require('adjust-sourcemap-loader')\n  .moduleFilenameTemplate({\n    format: 'projectRelative'\n  });\n\nmodule.exports = {\n  output: {\n    ...\n    devtoolModuleFilenameTemplate        : templateFn,\n    devtoolFallbackModuleFilenameTemplate: templateFn\n  }\n};\n```\n\n## Options\n\nAs a loader, options may be set using [query parameters](https://webpack.github.io/docs/using-loaders.html#query-parameters) or by using [programmatic parameters](https://webpack.github.io/docs/how-to-write-a-loader.html#programmable-objects-as-query-option). Programmatic means the following in your `webpack.config`.\n\n```javascript\nmodule.exports = {\n   adjustSourcemapLoader: {\n      ...\n   }\n}\n```\n\nWhere `...` is a hash of any of the following options.\n\n* **`debug`** : `boolean|RegExp` May be used alone (boolean) or with a `RegExp` to match the resource(s) you are interested in debugging.\n\n* **`fail`** : `boolean` Implies an **Error** if a source-map source cannot be decoded.\n\n* **`format`** : `string` Optional output format for source-map `sources`. Must be the name of one of the available `codecs`. Omitting the format will result in **no change** and the outgoing source-map will match the incomming one.\n\n* **`root`** : `boolean` A boolean flag that indices that a `sourceRoot` path sould be included in the output map. This is contingent on a `format` being specified.\n\n* **`codecs`** : `Array.<{name:string, decode:function, encode:function, root:function}>` Optional Array of codecs. There are a number of built-in codecs available. If you specify you own codecs you will loose those that are built-in. However you can include them from the `codec/` directory.\n\nNote that **query** parameters take precedence over **programmatic** parameters.\n\n### Changing the format\n\nBuilt-in codecs that may be specified as a `format` include:\n\n* `absolute`\n* `outputRelative`\n* `projectRelative`\n* `webpackProtocol`\n* `sourceRelative` (works for loader only, **not** Module filename template)\n\n### Specifying codecs\n\nThere are additional built-in codecs that do not support encoding. These are still necessary to decode source-map sources. If you specify your own `options.codecs` then you should **also include the built-in codecs**. Otherwise you will find that some sources cannot be decoded.\n\nThe existing codecs may be found in `/codec`, or on the loader itself:\n\n```javascript\nvar inBuiltCodecs = require('adjust-sourcemap-loader').codecs,\n    myCodecs      = [\n      {\n        name  : 'foo',\n        decode: function(uri) {...},\n        encode: function(absolute) {...},\n        root  : function() {...}\n      },\n      ...\n    ];\n\nmodule.exports = {\n   adjustSourcemapLoader: {\n      codecs: inBuiltCodecs.concat(myCodecs)\n   }\n}\n```\n\nThe codec **order is important**. Those that come first have precedence. Any codec that detects a distinct URI should be foremost so that illegal paths are not encountered by successive codecs.\n\n### Abstract codecs\n\nA codec that detects generated code and cannot `decode()` a URI to an absolute file path.\n\nInstead of implementing `encode()` or `root()` it should instead specify `abstract:true`. Its `decode()` function then may return `boolean` where it detects such generated sources.\n\nFor example, a built-in abstract codec will match the **Webpack bootstrap** code and ensure that its illegal source uri is not encountered by later coders.\n\n## How it works\n\nThe loader will receive a source map as its second parameter, so long as the preceding loader was using source-maps.\n\nThe exception is the **css-loader** where the source-map is in the content, which is **not currently supported** .\n\nThe source-map `sources` are parsed by applying **codec.decode()** functions until one of them returns an absolute path to a file that exists. The exception is abstract codecs, where the source with remain unchanged.\n\nIf a format is specified then the source-map `sources` are recreated by applying the **codec.encode()** function for the stated `format` and (where the `root` option is specified) the **codec.root()** function will set the source-map `sourceRoot`.\n\nIf a codec does not specify **codec.encode()** or **codec.root()** then it may **not** be used as the `format`.\n\n","_attachments":{},"homepage":"https://github.com/bholloway/adjust-sourcemap-loader","bugs":{"url":"https://github.com/bholloway/adjust-sourcemap-loader/issues"},"license":"MIT"}