123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.loadWebpackHook = loadWebpackHook;
- var _webpack = require("next/dist/compiled/webpack/webpack");
- let installed = false;
- function loadWebpackHook() {
- if (installed) {
- return;
- }
- installed = true;
- (0, _webpack).init();
- // hook the Node.js require so that webpack requires are
- // routed to the bundled and now initialized webpack version
- require("../build/webpack/require-hook").default([
- [
- "webpack",
- "next/dist/compiled/webpack/webpack-lib"
- ],
- [
- "webpack/package",
- "next/dist/compiled/webpack/package"
- ],
- [
- "webpack/package.json",
- "next/dist/compiled/webpack/package"
- ],
- [
- "webpack/lib/webpack",
- "next/dist/compiled/webpack/webpack-lib"
- ],
- [
- "webpack/lib/webpack.js",
- "next/dist/compiled/webpack/webpack-lib"
- ],
- [
- "webpack/lib/node/NodeEnvironmentPlugin",
- "next/dist/compiled/webpack/NodeEnvironmentPlugin",
- ],
- [
- "webpack/lib/node/NodeEnvironmentPlugin.js",
- "next/dist/compiled/webpack/NodeEnvironmentPlugin",
- ],
- [
- "webpack/lib/BasicEvaluatedExpression",
- "next/dist/compiled/webpack/BasicEvaluatedExpression",
- ],
- [
- "webpack/lib/BasicEvaluatedExpression.js",
- "next/dist/compiled/webpack/BasicEvaluatedExpression",
- ],
- [
- "webpack/lib/node/NodeTargetPlugin",
- "next/dist/compiled/webpack/NodeTargetPlugin",
- ],
- [
- "webpack/lib/node/NodeTargetPlugin.js",
- "next/dist/compiled/webpack/NodeTargetPlugin",
- ],
- [
- "webpack/lib/node/NodeTemplatePlugin",
- "next/dist/compiled/webpack/NodeTemplatePlugin",
- ],
- [
- "webpack/lib/node/NodeTemplatePlugin.js",
- "next/dist/compiled/webpack/NodeTemplatePlugin",
- ],
- [
- "webpack/lib/LibraryTemplatePlugin",
- "next/dist/compiled/webpack/LibraryTemplatePlugin",
- ],
- [
- "webpack/lib/LibraryTemplatePlugin.js",
- "next/dist/compiled/webpack/LibraryTemplatePlugin",
- ],
- [
- "webpack/lib/SingleEntryPlugin",
- "next/dist/compiled/webpack/SingleEntryPlugin",
- ],
- [
- "webpack/lib/SingleEntryPlugin.js",
- "next/dist/compiled/webpack/SingleEntryPlugin",
- ],
- [
- "webpack/lib/optimize/LimitChunkCountPlugin",
- "next/dist/compiled/webpack/LimitChunkCountPlugin",
- ],
- [
- "webpack/lib/optimize/LimitChunkCountPlugin.js",
- "next/dist/compiled/webpack/LimitChunkCountPlugin",
- ],
- [
- "webpack/lib/webworker/WebWorkerTemplatePlugin",
- "next/dist/compiled/webpack/WebWorkerTemplatePlugin",
- ],
- [
- "webpack/lib/webworker/WebWorkerTemplatePlugin.js",
- "next/dist/compiled/webpack/WebWorkerTemplatePlugin",
- ],
- [
- "webpack/lib/ExternalsPlugin",
- "next/dist/compiled/webpack/ExternalsPlugin",
- ],
- [
- "webpack/lib/ExternalsPlugin.js",
- "next/dist/compiled/webpack/ExternalsPlugin",
- ],
- [
- "webpack/lib/web/FetchCompileWasmTemplatePlugin",
- "next/dist/compiled/webpack/FetchCompileWasmTemplatePlugin",
- ],
- [
- "webpack/lib/web/FetchCompileWasmTemplatePlugin.js",
- "next/dist/compiled/webpack/FetchCompileWasmTemplatePlugin",
- ],
- [
- "webpack/lib/web/FetchCompileWasmPlugin",
- "next/dist/compiled/webpack/FetchCompileWasmPlugin",
- ],
- [
- "webpack/lib/web/FetchCompileWasmPlugin.js",
- "next/dist/compiled/webpack/FetchCompileWasmPlugin",
- ],
- [
- "webpack/lib/web/FetchCompileAsyncWasmPlugin",
- "next/dist/compiled/webpack/FetchCompileAsyncWasmPlugin",
- ],
- [
- "webpack/lib/web/FetchCompileAsyncWasmPlugin.js",
- "next/dist/compiled/webpack/FetchCompileAsyncWasmPlugin",
- ],
- [
- "webpack/lib/ModuleFilenameHelpers",
- "next/dist/compiled/webpack/ModuleFilenameHelpers",
- ],
- [
- "webpack/lib/ModuleFilenameHelpers.js",
- "next/dist/compiled/webpack/ModuleFilenameHelpers",
- ],
- [
- "webpack/lib/GraphHelpers",
- "next/dist/compiled/webpack/GraphHelpers"
- ],
- [
- "webpack/lib/GraphHelpers.js",
- "next/dist/compiled/webpack/GraphHelpers",
- ],
- [
- "webpack/lib/NormalModule",
- "next/dist/compiled/webpack/NormalModule"
- ],
- [
- "webpack-sources",
- "next/dist/compiled/webpack/sources"
- ],
- [
- "webpack-sources/lib",
- "next/dist/compiled/webpack/sources"
- ],
- [
- "webpack-sources/lib/index",
- "next/dist/compiled/webpack/sources"
- ],
- [
- "webpack-sources/lib/index.js",
- "next/dist/compiled/webpack/sources"
- ],
- [
- "@babel/runtime",
- "next/dist/compiled/@babel/runtime/package.json"
- ],
- [
- "@babel/runtime/package.json",
- "next/dist/compiled/@babel/runtime/package.json",
- ],
- [
- "node-fetch",
- "next/dist/compiled/node-fetch"
- ],
- ].map(// Use dynamic require.resolve to avoid statically analyzable since they're only for build time
- ([request, replacement])=>[
- request,
- require.resolve(replacement)
- ]));
- }
- //# sourceMappingURL=config-utils.js.map
|