/
opt
/
canhelp
/
node_modules
/
next
/
dist
/
esm
/
build
/
webpack
/
plugins
/
/opt/canhelp/node_modules/next/dist/esm/build/webpack/plugins
mkdir
upload
Name
Size
Mode
Actions
minify-webpack-plugin/
-
0755
rm
next-types-plugin/
-
0755
rm
telemetry-plugin/
-
0755
rm
wellknown-errors-plugin/
-
0755
rm
app-build-manifest-plugin.js
1851
0644
edit
dl
rm
app-build-manifest-plugin.js.map
3696
0644
edit
dl
rm
build-manifest-plugin.js
11784
0644
edit
dl
rm
build-manifest-plugin.js.map
20620
0644
edit
dl
rm
copy-file-plugin.js
1998
0644
edit
dl
rm
copy-file-plugin.js.map
3910
0644
edit
dl
rm
css-chunking-plugin.js
13962
0644
edit
dl
rm
css-chunking-plugin.js.map
20144
0644
edit
dl
rm
css-minimizer-plugin.js
3621
0644
edit
dl
rm
css-minimizer-plugin.js.map
6668
0644
edit
dl
rm
devtools-ignore-list-plugin.js
3155
0644
edit
dl
rm
devtools-ignore-list-plugin.js.map
5703
0644
edit
dl
rm
eval-source-map-dev-tool-plugin.js
9951
0644
edit
dl
rm
eval-source-map-dev-tool-plugin.js.map
17814
0644
edit
dl
rm
flight-client-entry-plugin.js
39879
0644
edit
dl
rm
flight-client-entry-plugin.js.map
65962
0644
edit
dl
rm
flight-manifest-plugin.js
21393
0644
edit
dl
rm
flight-manifest-plugin.js.map
33656
0644
edit
dl
rm
jsconfig-paths-plugin.js
7520
0644
edit
dl
rm
jsconfig-paths-plugin.js.map
14188
0644
edit
dl
rm
memory-with-gc-cache-plugin.js
4467
0644
edit
dl
rm
memory-with-gc-cache-plugin.js.map
6975
0644
edit
dl
rm
middleware-plugin.js
28463
0644
edit
dl
rm
middleware-plugin.js.map
49657
0644
edit
dl
rm
mini-css-extract-plugin.js
350
0644
edit
dl
rm
mini-css-extract-plugin.js.map
559
0644
edit
dl
rm
next-drop-client-page-plugin.js
3135
0644
edit
dl
rm
next-drop-client-page-plugin.js.map
5226
0644
edit
dl
rm
next-font-manifest-plugin.js
7218
0644
edit
dl
rm
next-font-manifest-plugin.js.map
10922
0644
edit
dl
rm
next-trace-entrypoints-plugin.js
28571
0644
edit
dl
rm
next-trace-entrypoints-plugin.js.map
45925
0644
edit
dl
rm
nextjs-require-cache-hot-reloader.js
1817
0644
edit
dl
rm
nextjs-require-cache-hot-reloader.js.map
3460
0644
edit
dl
rm
optional-peer-dependency-resolve-plugin.js
1861
0644
edit
dl
rm
optional-peer-dependency-resolve-plugin.js.map
3023
0644
edit
dl
rm
pages-manifest-plugin.js
4720
0644
edit
dl
rm
pages-manifest-plugin.js.map
9182
0644
edit
dl
rm
profiling-plugin.js
12742
0644
edit
dl
rm
profiling-plugin.js.map
22329
0644
edit
dl
rm
react-loadable-plugin.js
7873
0644
edit
dl
rm
react-loadable-plugin.js.map
13557
0644
edit
dl
rm
rspack-flight-client-entry-plugin.js
4029
0644
edit
dl
rm
rspack-flight-client-entry-plugin.js.map
8008
0644
edit
dl
rm
rspack-profiling-plugin.js
2436
0644
edit
dl
rm
rspack-profiling-plugin.js.map
3828
0644
edit
dl
rm
slow-module-detection-plugin.js
8330
0644
edit
dl
rm
slow-module-detection-plugin.js.map
13734
0644
edit
dl
rm
subresource-integrity-plugin.js
2238
0644
edit
dl
rm
subresource-integrity-plugin.js.map
4380
0644
edit
dl
rm
Edit:
/opt/canhelp/node_modules/next/dist/esm/build/webpack/plugins/devtools-ignore-list-plugin.js.map
(5703B)
{"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<PluginOptions>['shouldIgnorePath']\n isSourceMapAsset: Required<PluginOptions>['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":["webpack","IGNORE_LIST","PLUGIN_NAME","defaultShouldIgnorePath","path","includes","defaultIsSourceMapAsset","name","endsWith","isWebpackRuntimeModule","modulePath","test","DevToolsIgnorePlugin","constructor","options","shouldIgnorePath","isSourceMapAsset","apply","compiler","RawSource","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;AAElI,SAASA,OAAO,QAAQ,qCAAoC;AAE5D,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;AAEA;;;;CAIC,GACD,eAAe,MAAME;IAGnBC,YAAYC,UAAyB,CAAC,CAAC,CAAE;QACvC,IAAI,CAACA,OAAO,GAAG;YACbC,kBAAkBD,QAAQC,gBAAgB,IAAIZ;YAC9Ca,kBAAkBF,QAAQE,gBAAgB,IAAIV;QAChD;IACF;IAEAW,MAAMC,QAA0B,EAAE;QAChC,MAAM,EAAEC,SAAS,EAAE,GAAGD,SA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