/
opt
/
canhelp
/
node_modules
/
next
/
dist
/
build
/
webpack
/
plugins
/
/opt/canhelp/node_modules/next/dist/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.d.ts
288
0644
edit
dl
rm
app-build-manifest-plugin.js
2285
0644
edit
dl
rm
app-build-manifest-plugin.js.map
3649
0644
edit
dl
rm
build-manifest-plugin.d.ts
1880
0644
edit
dl
rm
build-manifest-plugin.js
12769
0644
edit
dl
rm
build-manifest-plugin.js.map
20566
0644
edit
dl
rm
copy-file-plugin.d.ts
415
0644
edit
dl
rm
copy-file-plugin.js
2390
0644
edit
dl
rm
copy-file-plugin.js.map
3855
0644
edit
dl
rm
css-chunking-plugin.d.ts
175
0644
edit
dl
rm
css-chunking-plugin.js
14178
0644
edit
dl
rm
css-chunking-plugin.js.map
20162
0644
edit
dl
rm
css-minimizer-plugin.d.ts
574
0644
edit
dl
rm
css-minimizer-plugin.js
4170
0644
edit
dl
rm
css-minimizer-plugin.js.map
6642
0644
edit
dl
rm
devtools-ignore-list-plugin.d.ts
775
0644
edit
dl
rm
devtools-ignore-list-plugin.js
3367
0644
edit
dl
rm
devtools-ignore-list-plugin.js.map
5702
0644
edit
dl
rm
eval-source-map-dev-tool-plugin.d.ts
869
0644
edit
dl
rm
eval-source-map-dev-tool-plugin.js
10144
0644
edit
dl
rm
eval-source-map-dev-tool-plugin.js.map
17802
0644
edit
dl
rm
flight-client-entry-plugin.d.ts
3040
0644
edit
dl
rm
flight-client-entry-plugin.js
40923
0644
edit
dl
rm
flight-client-entry-plugin.js.map
65905
0644
edit
dl
rm
flight-manifest-plugin.d.ts
2144
0644
edit
dl
rm
flight-manifest-plugin.js
23049
0644
edit
dl
rm
flight-manifest-plugin.js.map
33545
0644
edit
dl
rm
jsconfig-paths-plugin.d.ts
2248
0644
edit
dl
rm
jsconfig-paths-plugin.js
8254
0644
edit
dl
rm
jsconfig-paths-plugin.js.map
14283
0644
edit
dl
rm
memory-with-gc-cache-plugin.d.ts
517
0644
edit
dl
rm
memory-with-gc-cache-plugin.js
4695
0644
edit
dl
rm
memory-with-gc-cache-plugin.js.map
6989
0644
edit
dl
rm
middleware-plugin.d.ts
1783
0644
edit
dl
rm
middleware-plugin.js
29617
0644
edit
dl
rm
middleware-plugin.js.map
49521
0644
edit
dl
rm
mini-css-extract-plugin.d.ts
190
0644
edit
dl
rm
mini-css-extract-plugin.js
724
0644
edit
dl
rm
mini-css-extract-plugin.js.map
568
0644
edit
dl
rm
next-drop-client-page-plugin.d.ts
305
0644
edit
dl
rm
next-drop-client-page-plugin.js
3561
0644
edit
dl
rm
next-drop-client-page-plugin.js.map
5232
0644
edit
dl
rm
next-font-manifest-plugin.d.ts
1373
0644
edit
dl
rm
next-font-manifest-plugin.js
6814
0644
edit
dl
rm
next-font-manifest-plugin.js.map
10868
0644
edit
dl
rm
next-trace-entrypoints-plugin.d.ts
2418
0644
edit
dl
rm
next-trace-entrypoints-plugin.js
29635
0644
edit
dl
rm
next-trace-entrypoints-plugin.js.map
45878
0644
edit
dl
rm
nextjs-require-cache-hot-reloader.d.ts
416
0644
edit
dl
rm
nextjs-require-cache-hot-reloader.js
2194
0644
edit
dl
rm
nextjs-require-cache-hot-reloader.js.map
3451
0644
edit
dl
rm
optional-peer-dependency-resolve-plugin.d.ts
140
0644
edit
dl
rm
optional-peer-dependency-resolve-plugin.js
2115
0644
edit
dl
rm
optional-peer-dependency-resolve-plugin.js.map
3039
0644
edit
dl
rm
pages-manifest-plugin.d.ts
754
0644
edit
dl
rm
pages-manifest-plugin.js
5889
0644
edit
dl
rm
pages-manifest-plugin.js.map
9206
0644
edit
dl
rm
profiling-plugin.d.ts
926
0644
edit
dl
rm
profiling-plugin.js
13484
0644
edit
dl
rm
profiling-plugin.js.map
22355
0644
edit
dl
rm
react-loadable-plugin.d.ts
1591
0644
edit
dl
rm
react-loadable-plugin.js
8322
0644
edit
dl
rm
react-loadable-plugin.js.map
13547
0644
edit
dl
rm
rspack-flight-client-entry-plugin.d.ts
789
0644
edit
dl
rm
rspack-flight-client-entry-plugin.js
4422
0644
edit
dl
rm
rspack-flight-client-entry-plugin.js.map
7965
0644
edit
dl
rm
rspack-profiling-plugin.d.ts
284
0644
edit
dl
rm
rspack-profiling-plugin.js
2949
0644
edit
dl
rm
rspack-profiling-plugin.js.map
3862
0644
edit
dl
rm
slow-module-detection-plugin.d.ts
413
0644
edit
dl
rm
slow-module-detection-plugin.js
8580
0644
edit
dl
rm
slow-module-detection-plugin.js.map
13744
0644
edit
dl
rm
subresource-integrity-plugin.d.ts
326
0644
edit
dl
rm
subresource-integrity-plugin.js
2653
0644
edit
dl
rm
subresource-integrity-plugin.js.map
4355
0644
edit
dl
rm
Edit:
/opt/canhelp/node_modules/next/dist/build/webpack/plugins/eval-source-map-dev-tool-plugin.js
(10144B)
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra Forked to add support for `ignoreList`. */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, // Fork of webpack's EvalSourceMapDevToolPlugin with support for adding `ignoreList`. // https://github.com/webpack/webpack/blob/e237b580e2bda705c5ab39973f786f7c5a7026bc/lib/EvalSourceMapDevToolPlugin.js#L37 "default", { enumerable: true, get: function() { return EvalSourceMapDevToolPlugin; } }); const _webpack = require("next/dist/compiled/webpack/webpack"); const cache = new WeakMap(); const devtoolWarningMessage = `/* * ATTENTION: An "eval-source-map" devtool has been used. * This devtool is neither made for production nor for readable output files. * It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools. * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/) * or disable the default devtool with "devtool: false". * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/). */ `; class EvalSourceMapDevToolPlugin { /** * @param inputOptions Options object */ constructor(inputOptions){ let options; if (typeof inputOptions === 'string') { options = { append: inputOptions }; } else { options = inputOptions; } this.sourceMapComment = options.append && typeof options.append !== 'function' ? options.append : '//# sourceURL=[module]\n//# sourceMappingURL=[url]'; this.moduleFilenameTemplate = options.moduleFilenameTemplate || 'webpack://[namespace]/[resource-path]?[hash]'; this.namespace = options.namespace || ''; this.options = options; // fork this.shouldIgnorePath = options.shouldIgnorePath ?? (()=>false); } /** * Apply the plugin * @param compiler the compiler instance */ apply(compiler) { const options = this.options; compiler.hooks.compilation.tap('NextJSEvalSourceMapDevToolPlugin', (compilation)=>{ const { JavascriptModulesPlugin } = compiler.webpack.javascript; const { RawSource, ConcatSource } = compiler.webpack.sources; const devtoolWarning = new RawSource(devtoolWarningMessage); const hooks = JavascriptModulesPlugin.getCompilationHooks(compilation); new _webpack.SourceMapDevToolModuleOptionsPlugin(options).apply(compilation); const matchModule = _webpack.ModuleFilenameHelpers.matchObject.bind(_webpack.ModuleFilenameHelpers, options); hooks.renderModuleContent.tap('NextJSEvalSourceMapDevToolPlugin', (source, m, { chunk, runtimeTemplate, chunkGraph })=>{ const cachedSource = cache.get(source); if (cachedSource !== undefined) { return cachedSource; } const result = (r)=>{ cache.set(source, r); return r; }; if (m instanceof _webpack.NormalModule) { const module = m; if (!matchModule(module.resource)) { return result(source); } } else if (m instanceof _webpack.ConcatenatedModule) { const concatModule = m; if (concatModule.rootModule instanceof _webpack.NormalModule) { const module = concatModule.rootModule; if (!matchModule(module.resource)) { return result(source); } } else { return result(source); } } else { return result(source); } const namespace = compilation.getPath(this.namespace, { chunk }); let sourceMap; let content; if (source.sourceAndMap) { const sourceAndMap = source.sourceAndMap(options); sourceMap = sourceAndMap.map; content = sourceAndMap.source; } else { sourceMap = source.map(options); content = source.source(); } if (!sourceMap) { return result(source); } // Clone (flat) the sourcemap to ensure that the mutations below do not persist. sourceMap = { ...sourceMap }; const context = compiler.options.context; const root = compiler.root; const modules = sourceMap.sources.map((sourceMapSource)=>{ if (!sourceMapSource.startsWith('webpack://')) return sourceMapSource; sourceMapSource = (0, _webpack.makePathsAbsolute)(context, sourceMapSource.slice(10), root); const module = compilation.findModule(sourceMapSource); return module || sourceMapSource; }); let moduleFilenames = modules.map((module)=>_webpack.ModuleFilenameHelpers.createFilename(module, { moduleFilenameTemplate: this.moduleFilenameTemplate, namespace }, { requestShortener: runtimeTemplate.requestShortener, chunkGraph, hashFunction: compilation.outputOptions.hashFunction })); moduleFilenames = _webpack.ModuleFilenameHelpers.replaceDuplicates(moduleFilenames, (filename, _i, n)=>{ for(let j = 0; j < n; j++)filename += '*'; return filename; }); sourceMap.sources = moduleFilenames; sourceMap.ignoreList = []; for(let index = 0; index < moduleFilenames.length; index++){ if (this.shouldIgnorePath(moduleFilenames[index])) { sourceMap.ignoreList.push(index); } } if (options.noSources) { sourceMap.sourcesContent = undefined; } sourceMap.sourceRoot = options.sourceRoot || ''; const moduleId = chunkGraph.getModuleId(m); if (moduleId) { sourceMap.file = typeof moduleId === 'number' ? `${moduleId}.js` : moduleId; } const footer = `${this.sourceMapComment.replace(/\[url\]/g, `data:application/json;charset=utf-8;base64,${Buffer.from(JSON.stringify(sourceMap), 'utf8').toString('base64')}`)}\n//# sourceURL=webpack-internal:///${moduleId}\n` // workaround for chrome bug ; return result(new RawSource(`eval(${compilation.outputOptions.trustedTypes ? `${_webpack.RuntimeGlobals.createScript}(${JSON.stringify(content + footer)})` : JSON.stringify(content + footer)});`)); }); hooks.inlineInRuntimeBailout.tap('EvalDevToolModulePlugin', ()=>'the eval-source-map devtool is used.'); hooks.render.tap('EvalSourceMapDevToolPlugin', (source, context)=>{ if (context.chunk.id === 'webpack' || context.chunk.id === 'webpack-runtime') { const sourceURL = new URL('webpack-internal://nextjs/' + context.chunk.id + '.js'); // Webpack runtime chunks are not sourcemapped. // We insert a dummy source map that ignore-lists everything. // The mappings will be incorrect but end-users will almost never interact // with the webpack runtime. Users who do, can follow the instructions // in the sources content and disable sourcemaps in their debugger. const sourceMappingURL = new URL('data:application/json;charset=utf-8;base64,' + Buffer.from(JSON.stringify({ version: 3, ignoreList: [ 0 ], // Minimal, parseable mappings. mappings: 'AAAA', sources: [ // TODO: This should be the original source URL so that CTRL+Click works in the terminal. sourceURL.toString() ], sourcesContent: [ '' + '// This source was generated by Next.js based off of the generated Webpack runtime.\n' + '// The mappings are incorrect.\n' + '// To get the correct line/column mappings, turn off sourcemaps in your debugger.\n' + '\n' + source.source() ] })).toString('base64')); return new ConcatSource(source, new RawSource('\n//# sourceMappingURL=' + sourceMappingURL + // Webpack will add a trailing semicolon. Adding a newline // ensures the semicolon is not part of the sourceURL and actually // terminates the previous statement. '\n')); } else { return new ConcatSource(devtoolWarning, source); } }); hooks.chunkHash.tap('EvalSourceMapDevToolPlugin', (_chunk, hash)=>{ hash.update('EvalSourceMapDevToolPlugin'); hash.update('2'); }); if (compilation.outputOptions.trustedTypes) { compilation.hooks.additionalModuleRuntimeRequirements.tap('EvalSourceMapDevToolPlugin', (_module, set, _context)=>{ set.add(_webpack.RuntimeGlobals.createScript); }); } }); } } //# sourceMappingURL=eval-source-map-dev-tool-plugin.js.map
Save
cmd:
run