/opt/canhelp/node_modules/next/dist/build/webpack/plugins
NameSizeModeActions
minify-webpack-plugin/-0755rm
next-types-plugin/-0755rm
telemetry-plugin/-0755rm
wellknown-errors-plugin/-0755rm
app-build-manifest-plugin.d.ts2880644editdlrm
app-build-manifest-plugin.js22850644editdlrm
app-build-manifest-plugin.js.map36490644editdlrm
build-manifest-plugin.d.ts18800644editdlrm
build-manifest-plugin.js127690644editdlrm
build-manifest-plugin.js.map205660644editdlrm
copy-file-plugin.d.ts4150644editdlrm
copy-file-plugin.js23900644editdlrm
copy-file-plugin.js.map38550644editdlrm
css-chunking-plugin.d.ts1750644editdlrm
css-chunking-plugin.js141780644editdlrm
css-chunking-plugin.js.map201620644editdlrm
css-minimizer-plugin.d.ts5740644editdlrm
css-minimizer-plugin.js41700644editdlrm
css-minimizer-plugin.js.map66420644editdlrm
devtools-ignore-list-plugin.d.ts7750644editdlrm
devtools-ignore-list-plugin.js33670644editdlrm
devtools-ignore-list-plugin.js.map57020644editdlrm
eval-source-map-dev-tool-plugin.d.ts8690644editdlrm
eval-source-map-dev-tool-plugin.js101440644editdlrm
eval-source-map-dev-tool-plugin.js.map178020644editdlrm
flight-client-entry-plugin.d.ts30400644editdlrm
flight-client-entry-plugin.js409230644editdlrm
flight-client-entry-plugin.js.map659050644editdlrm
flight-manifest-plugin.d.ts21440644editdlrm
flight-manifest-plugin.js230490644editdlrm
flight-manifest-plugin.js.map335450644editdlrm
jsconfig-paths-plugin.d.ts22480644editdlrm
jsconfig-paths-plugin.js82540644editdlrm
jsconfig-paths-plugin.js.map142830644editdlrm
memory-with-gc-cache-plugin.d.ts5170644editdlrm
memory-with-gc-cache-plugin.js46950644editdlrm
memory-with-gc-cache-plugin.js.map69890644editdlrm
middleware-plugin.d.ts17830644editdlrm
middleware-plugin.js296170644editdlrm
middleware-plugin.js.map495210644editdlrm
mini-css-extract-plugin.d.ts1900644editdlrm
mini-css-extract-plugin.js7240644editdlrm
mini-css-extract-plugin.js.map5680644editdlrm
next-drop-client-page-plugin.d.ts3050644editdlrm
next-drop-client-page-plugin.js35610644editdlrm
next-drop-client-page-plugin.js.map52320644editdlrm
next-font-manifest-plugin.d.ts13730644editdlrm
next-font-manifest-plugin.js68140644editdlrm
next-font-manifest-plugin.js.map108680644editdlrm
next-trace-entrypoints-plugin.d.ts24180644editdlrm
next-trace-entrypoints-plugin.js296350644editdlrm
next-trace-entrypoints-plugin.js.map458780644editdlrm
nextjs-require-cache-hot-reloader.d.ts4160644editdlrm
nextjs-require-cache-hot-reloader.js21940644editdlrm
nextjs-require-cache-hot-reloader.js.map34510644editdlrm
optional-peer-dependency-resolve-plugin.d.ts1400644editdlrm
optional-peer-dependency-resolve-plugin.js21150644editdlrm
optional-peer-dependency-resolve-plugin.js.map30390644editdlrm
pages-manifest-plugin.d.ts7540644editdlrm
pages-manifest-plugin.js58890644editdlrm
pages-manifest-plugin.js.map92060644editdlrm
profiling-plugin.d.ts9260644editdlrm
profiling-plugin.js134840644editdlrm
profiling-plugin.js.map223550644editdlrm
react-loadable-plugin.d.ts15910644editdlrm
react-loadable-plugin.js83220644editdlrm
react-loadable-plugin.js.map135470644editdlrm
rspack-flight-client-entry-plugin.d.ts7890644editdlrm
rspack-flight-client-entry-plugin.js44220644editdlrm
rspack-flight-client-entry-plugin.js.map79650644editdlrm
rspack-profiling-plugin.d.ts2840644editdlrm
rspack-profiling-plugin.js29490644editdlrm
rspack-profiling-plugin.js.map38620644editdlrm
slow-module-detection-plugin.d.ts4130644editdlrm
slow-module-detection-plugin.js85800644editdlrm
slow-module-detection-plugin.js.map137440644editdlrm
subresource-integrity-plugin.d.ts3260644editdlrm
subresource-integrity-plugin.js26530644editdlrm
subresource-integrity-plugin.js.map43550644editdlrm
Edit: /opt/canhelp/node_modules/next/dist/build/webpack/plugins/devtools-ignore-list-plugin.js.map (5702B)
{"version":3,"sources":["../../../../src/build/webpack/plugins/devtools-ignore-list-plugin.ts"],"sourcesContent":["// Source: https://github.com/mondaychen/devtools-ignore-webpack-plugin/blob/e35ce41d9606a92a455ef247f509a1c2ccab5778/src/index.ts\n\nimport { webpack } from 'next/dist/compiled/webpack/webpack'\n\n// Following the naming conventions from\n// https://tc39.es/source-map/#source-map-format\nconst IGNORE_LIST = 'ignoreList'\n\nconst PLUGIN_NAME = 'devtools-ignore-plugin'\n\ninterface SourceMap {\n sources: string[]\n [IGNORE_LIST]: number[]\n}\n\ninterface PluginOptions {\n shouldIgnorePath?: (path: string) => boolean\n isSourceMapAsset?: (name: string) => boolean\n}\n\ninterface ValidatedOptions extends PluginOptions {\n shouldIgnorePath: Required['shouldIgnorePath']\n isSourceMapAsset: Required['isSourceMapAsset']\n}\n\nfunction defaultShouldIgnorePath(path: string): boolean {\n return path.includes('/node_modules/') || path.includes('/webpack/')\n}\n\nfunction defaultIsSourceMapAsset(name: string): boolean {\n return name.endsWith('.map')\n}\n\nfunction isWebpackRuntimeModule(modulePath: string): boolean {\n // webpack:///webpack/bootstrap\n // webpack://_N_E/webpack/\n // webpack://someOtherLibrary/webpack/\n return /^webpack:\\/\\/([^/]*)\\/webpack/.test(modulePath)\n}\n\n/**\n * This plugin adds a field to source maps that identifies which sources are\n * vendored or runtime-injected (aka third-party) sources. These are consumed by\n * Chrome DevTools to automatically ignore-list sources.\n */\nexport default class DevToolsIgnorePlugin {\n options: ValidatedOptions\n\n constructor(options: PluginOptions = {}) {\n this.options = {\n shouldIgnorePath: options.shouldIgnorePath ?? defaultShouldIgnorePath,\n isSourceMapAsset: options.isSourceMapAsset ?? defaultIsSourceMapAsset,\n }\n }\n\n apply(compiler: webpack.Compiler) {\n const { RawSource } = compiler.webpack.sources\n\n compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation) => {\n compilation.hooks.processAssets.tap(\n {\n name: PLUGIN_NAME,\n stage: webpack.Compilation.PROCESS_ASSETS_STAGE_DEV_TOOLING,\n additionalAssets: true,\n },\n (assets) => {\n for (const [name, asset] of Object.entries(assets)) {\n // Instead of using `asset.map()` to fetch the source maps from\n // SourceMapSource assets, process them directly as a RawSource.\n // This is because `.map()` is slow and can take several seconds.\n if (!this.options.isSourceMapAsset(name)) {\n // Ignore non source map files.\n continue\n }\n\n const mapContent = asset.source().toString()\n if (!mapContent) {\n continue\n }\n\n const sourcemap = JSON.parse(mapContent) as SourceMap\n\n const ignoreList = []\n for (const [index, path] of sourcemap.sources.entries()) {\n if (this.options.shouldIgnorePath(path)) {\n ignoreList.push(index)\n } else if (isWebpackRuntimeModule(path)) {\n // Just like our EvalSourceMapDevToolPlugin ignore-lists Webpack\n // runtime by default, we do the same here.\n ignoreList.push(index)\n }\n }\n\n sourcemap[IGNORE_LIST] = ignoreList\n compilation.updateAsset(\n name,\n new RawSource(JSON.stringify(sourcemap))\n )\n }\n }\n )\n })\n }\n}\n"],"names":["DevToolsIgnorePlugin","IGNORE_LIST","PLUGIN_NAME","defaultShouldIgnorePath","path","includes","defaultIsSourceMapAsset","name","endsWith","isWebpackRuntimeModule","modulePath","test","constructor","options","shouldIgnorePath","isSourceMapAsset","apply","compiler","RawSource","webpack","sources","hooks","compilation","tap","processAssets","stage","Compilation","PROCESS_ASSETS_STAGE_DEV_TOOLING","additionalAssets","assets","asset","Object","entries","mapContent","source","toString","sourcemap","JSON","parse","ignoreList","index","push","updateAsset","stringify"],"mappings":"AAAA,kIAAkI;;;;;+BAwClI;;;;CAIC,GACD;;;eAAqBA;;;yBA3CG;AAExB,wCAAwC;AACxC,gDAAgD;AAChD,MAAMC,cAAc;AAEpB,MAAMC,cAAc;AAiBpB,SAASC,wBAAwBC,IAAY;IAC3C,OAAOA,KAAKC,QAAQ,CAAC,qBAAqBD,KAAKC,QAAQ,CAAC;AAC1D;AAEA,SAASC,wBAAwBC,IAAY;IAC3C,OAAOA,KAAKC,QAAQ,CAAC;AACvB;AAEA,SAASC,uBAAuBC,UAAkB;IAChD,+BAA+B;IAC/B,0BAA0B;IAC1B,sCAAsC;IACtC,OAAO,gCAAgCC,IAAI,CAACD;AAC9C;AAOe,MAAMV;IAGnBY,YA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