{
  "manifest": {
    "name": "source-map-loader",
    "version": "3.0.2",
    "description": "extracts inlined source map and offers it to webpack",
    "license": "MIT",
    "repository": {
      "type": "git",
      "url": "https://github.com/webpack-contrib/source-map-loader.git"
    },
    "author": {
      "name": "Tobias Koppers @sokra"
    },
    "homepage": "https://github.com/webpack-contrib/source-map-loader",
    "bugs": {
      "url": "https://github.com/webpack-contrib/source-map-loader/issues"
    },
    "funding": {
      "type": "opencollective",
      "url": "https://opencollective.com/webpack"
    },
    "main": "dist/cjs.js",
    "engines": {
      "node": ">= 12.13.0"
    },
    "scripts": {
      "start": "npm run build -- -w",
      "clean": "del-cli dist",
      "prebuild": "npm run clean",
      "build": "cross-env NODE_ENV=production babel src -d dist --copy-files",
      "commitlint": "commitlint --from=master",
      "security": "npm audit",
      "lint:prettier": "prettier --list-different .",
      "lint:js": "eslint --cache .",
      "lint": "npm-run-all -l -p \"lint:**\"",
      "test:only": "cross-env NODE_ENV=test jest",
      "test:watch": "npm run test:only -- --watch",
      "test:coverage": "npm run test:only -- --collectCoverageFrom=\"src/**/*.js\" --coverage",
      "pretest": "npm run lint",
      "test": "npm run test:coverage",
      "prepare": "husky install && npm run build",
      "release": "standard-version"
    },
    "files": [
      "dist"
    ],
    "peerDependencies": {
      "webpack": "^5.0.0"
    },
    "dependencies": {
      "abab": "^2.0.5",
      "iconv-lite": "^0.6.3",
      "source-map-js": "^1.0.1"
    },
    "devDependencies": {
      "@babel/cli": "^7.14.5",
      "@babel/core": "^7.14.6",
      "@babel/preset-env": "^7.14.7",
      "@commitlint/cli": "^16.0.1",
      "@commitlint/config-conventional": "^16.0.0",
      "@webpack-contrib/eslint-config-webpack": "^3.0.0",
      "babel-jest": "^27.0.6",
      "cross-env": "^7.0.3",
      "del": "^6.0.0",
      "del-cli": "^4.0.0",
      "eslint": "^8.6.0",
      "eslint-config-prettier": "^8.3.0",
      "eslint-plugin-import": "^2.23.4",
      "husky": "^7.0.1",
      "jest": "^27.0.6",
      "lint-staged": "^12.1.5",
      "memfs": "^3.2.2",
      "npm-run-all": "^4.1.5",
      "prettier": "^2.3.2",
      "standard-version": "^9.3.1",
      "webpack": "^5.44.0"
    },
    "keywords": [
      "webpack"
    ],
    "_registry": "npm",
    "_loc": "/homez.1033/heliovt/.cache/yarn/v6/npm-source-map-loader-3.0.2-af23192f9b344daa729f6772933194cc5fa54fee-integrity/node_modules/source-map-loader/package.json",
    "readmeFilename": "README.md",
    "readme": "<div align=\"center\">\n  <a href=\"https://github.com/webpack/webpack\">\n    <img width=\"200\" height=\"200\" src=\"https://webpack.js.org/assets/icon-square-big.svg\">\n  </a>\n</div>\n\n[![npm][npm]][npm-url]\n[![node][node]][node-url]\n[![deps][deps]][deps-url]\n[![tests][tests]][tests-url]\n[![coverage][cover]][cover-url]\n[![chat][chat]][chat-url]\n[![size][size]][size-url]\n\n# source-map-loader\n\nExtracts source maps from existing source files (from their <code>sourceMappingURL</code>).\n\n## Getting Started\n\nTo begin, you'll need to install `source-map-loader`:\n\n```bash\nnpm i -D source-map-loader\n```\n\nThen add the plugin to your `webpack` config. For example:\n\n**file.js**\n\n```js\nimport css from \"file.css\";\n```\n\n**webpack.config.js**\n\n```js\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        test: /\\.js$/,\n        enforce: \"pre\",\n        use: [\"source-map-loader\"],\n      },\n    ],\n  },\n};\n```\n\nThe `source-map-loader` extracts existing source maps from all JavaScript entries.\nThis includes both inline source maps as well as those linked via URL.\nAll 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/).\nThis loader is especially useful when using 3rd-party libraries having their own source maps.\nIf not extracted and processed into the source 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.\nThe `source-map-loader` will extract from any JavaScript file, including those in the `node_modules` directory.\nBe 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.\n\nAnd run `webpack` via your preferred method.\n\n## Options\n\n|                          Name                           |     Type     |   Default   | Description                                    |\n| :-----------------------------------------------------: | :----------: | :---------: | :--------------------------------------------- |\n| **[`filterSourceMappingUrl`](#filtersourcemappingurl)** | `{Function}` | `undefined` | Allows to control `SourceMappingURL` behaviour |\n\n### filterSourceMappingUrl\n\nType: `Function`\nDefault: `undefined`\n\nAllows you to specify the behavior of the loader for `SourceMappingURL` comment.\n\nThe function must return one of the values:\n\n- `true` or `'consume'` - consume the source map and remove `SourceMappingURL` comment (default behavior)\n- `false` or `'remove'` - do not consume the source map and remove `SourceMappingURL` comment\n- `skip` - do not consume the source map and do not remove `SourceMappingURL` comment\n\nExample configuration:\n\n**webpack.config.js**\n\n```js\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        test: /\\.js$/,\n        enforce: \"pre\",\n        use: [\n          {\n            loader: \"source-map-loader\",\n            options: {\n              filterSourceMappingUrl: (url, resourcePath) => {\n                if (/broker-source-map-url\\.js$/i.test(url)) {\n                  return false;\n                }\n\n                if (/keep-source-mapping-url\\.js$/i.test(resourcePath)) {\n                  return \"skip\";\n                }\n\n                return true;\n              },\n            },\n          },\n        ],\n      },\n    ],\n  },\n};\n```\n\n## Examples\n\n### Ignoring Warnings\n\nTo ignore warnings, you can use the following configuration:\n\n**webpack.config.js**\n\n```js\nmodule.exports = {\n  module: {\n    rules: [\n      {\n        test: /\\.js$/,\n        enforce: \"pre\",\n        use: [\"source-map-loader\"],\n      },\n    ],\n  },\n  ignoreWarnings: [/Failed to parse source map/],\n};\n```\n\nMore information about the `ignoreWarnings` option can be found [here](https://webpack.js.org/configuration/other-options/#ignorewarnings)\n\n## Contributing\n\nPlease take a moment to read our contributing guidelines if you haven't yet done so.\n\n[CONTRIBUTING](./.github/CONTRIBUTING.md)\n\n## License\n\n[MIT](./LICENSE)\n\n[npm]: https://img.shields.io/npm/v/source-map-loader.svg\n[npm-url]: https://npmjs.com/package/source-map-loader\n[node]: https://img.shields.io/node/v/source-map-loader.svg\n[node-url]: https://nodejs.org\n[deps]: https://david-dm.org/webpack-contrib/source-map-loader.svg\n[deps-url]: https://david-dm.org/webpack-contrib/source-map-loader\n[tests]: https://github.com/webpack-contrib/source-map-loader/workflows/source-map-loader/badge.svg\n[tests-url]: https://github.com/webpack-contrib/source-map-loader/actions\n[cover]: https://codecov.io/gh/webpack-contrib/source-map-loader/branch/master/graph/badge.svg\n[cover-url]: https://codecov.io/gh/webpack-contrib/source-map-loader\n[chat]: https://badges.gitter.im/webpack/webpack.svg\n[chat-url]: https://gitter.im/webpack/webpack\n[size]: https://packagephobia.now.sh/badge?p=source-map-loader\n[size-url]: https://packagephobia.now.sh/result?p=source-map-loader\n",
    "licenseText": "Copyright JS Foundation and other contributors\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
  },
  "artifacts": [],
  "remote": {
    "resolved": "https://registry.yarnpkg.com/source-map-loader/-/source-map-loader-3.0.2.tgz#af23192f9b344daa729f6772933194cc5fa54fee",
    "type": "tarball",
    "reference": "https://registry.yarnpkg.com/source-map-loader/-/source-map-loader-3.0.2.tgz",
    "hash": "af23192f9b344daa729f6772933194cc5fa54fee",
    "integrity": "sha512-BokxPoLjyl3iOrgkWaakaxqnelAJSS+0V+De0kKIq6lyWrXuiPgYTGp6z3iHmqljKAaLXwZa+ctD8GccRJeVvg==",
    "registry": "npm",
    "packageName": "source-map-loader",
    "cacheIntegrity": "sha512-BokxPoLjyl3iOrgkWaakaxqnelAJSS+0V+De0kKIq6lyWrXuiPgYTGp6z3iHmqljKAaLXwZa+ctD8GccRJeVvg== sha1-ryMZL5s0Tapyn2dykzGUzF+lT+4="
  },
  "registry": "npm",
  "hash": "af23192f9b344daa729f6772933194cc5fa54fee"
}