Created
May 6, 2020 02:46
-
-
Save hsiaosiyuan0/959e4cc8af81c339dcecefd6c70d8ba4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| externals: [ | |
| 'next' | |
| ], | |
| optimization: { | |
| checkWasmTypes: false, | |
| nodeEnv: false, | |
| splitChunks: { | |
| chunks: 'all', | |
| cacheGroups: { | |
| 'default': false, | |
| vendors: false, | |
| framework: { | |
| chunks: 'all', | |
| name: 'framework', | |
| test: /(?<!node_modules.*)[\\\/]node_modules[\\\/](react|react-dom|scheduler|prop-types|use-subscription)[\\\/]/, | |
| priority: 40, | |
| enforce: true | |
| }, | |
| lib: { | |
| test(module){return module.size()>160000&&/node_modules[/\\]/.test(module.identifier());}, | |
| name: function () { /* omitted long function */ }, | |
| priority: 30, | |
| minChunks: 1, | |
| reuseExistingChunk: true | |
| }, | |
| commons: { | |
| name: 'commons', | |
| minChunks: 4, | |
| priority: 20 | |
| }, | |
| shared: { | |
| name: function () { /* omitted long function */ }, | |
| priority: 10, | |
| minChunks: 2, | |
| reuseExistingChunk: true | |
| } | |
| }, | |
| maxInitialRequests: 25, | |
| minSize: 20000 | |
| }, | |
| runtimeChunk: { | |
| name: 'static/runtime/webpack.js' | |
| }, | |
| minimize: true, | |
| minimizer: [ | |
| { | |
| cpus: 15, | |
| distDir: '/Users/demo/ws/next.js/examples/data-fetch/.next', | |
| workerThreads: false, | |
| options: { | |
| warningsFilter: ()=>true, | |
| sourceMap: false, | |
| cache: true, | |
| terserOptions: { | |
| parse: { | |
| ecma: 8 | |
| }, | |
| compress: { | |
| ecma: 5, | |
| warnings: false, | |
| comparisons: false, | |
| inline: 2 | |
| }, | |
| mangle: { | |
| safari10: true | |
| }, | |
| output: { | |
| ecma: 5, | |
| safari10: true, | |
| comments: false, | |
| ascii_only: true | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| __next_css_remove: true, | |
| options: { | |
| postcssOptions: { | |
| map: { | |
| inline: false, | |
| annotation: false | |
| } | |
| } | |
| } | |
| } | |
| ] | |
| }, | |
| context: '/Users/demo/ws/next.js/examples/data-fetch', | |
| node: { | |
| setImmediate: false | |
| }, | |
| entry: { | |
| 'static/runtime/main.js': './node_modules/next/dist/client/next.js', | |
| 'static/runtime/polyfills.js': '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next/dist/client/polyfills.js', | |
| 'static/Nxq-JZiXIEBoAwTGEDNNp/pages/a/b/preact.js': 'next-client-pages-loader?page=%2Fa%2Fb%2Fpreact&absolutePagePath=private-next-pages%2Fa%2Fb%2Fpreact.js!', | |
| 'static/Nxq-JZiXIEBoAwTGEDNNp/pages/index.js': 'next-client-pages-loader?page=%2F&absolutePagePath=private-next-pages%2Findex.js!', | |
| 'static/Nxq-JZiXIEBoAwTGEDNNp/pages/_app.js': [ | |
| 'next-client-pages-loader?page=%2F_app&absolutePagePath=next%2Fdist%2Fpages%2F_app!', | |
| '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next/dist/client/router.js' | |
| ], | |
| 'static/Nxq-JZiXIEBoAwTGEDNNp/pages/_error.js': 'next-client-pages-loader?page=%2F_error&absolutePagePath=next%2Fdist%2Fpages%2F_error!' | |
| }, | |
| output: { | |
| path: '/Users/demo/ws/next.js/examples/data-fetch/.next', | |
| filename: function () { /* omitted long function */ }, | |
| libraryTarget: 'var', | |
| hotUpdateChunkFilename: 'static/webpack/[id].[hash].hot-update.js', | |
| hotUpdateMainFilename: 'static/webpack/[hash].hot-update.json', | |
| chunkFilename: 'static/chunks/[name].[contenthash].js', | |
| strictModuleExceptionHandling: true, | |
| crossOriginLoading: undefined, | |
| futureEmitAssets: true, | |
| webassemblyModuleFilename: 'static/wasm/[modulehash].wasm' | |
| }, | |
| performance: false, | |
| resolve: { | |
| extensions: [ | |
| '.mjs', | |
| '.js', | |
| '.jsx', | |
| '.json', | |
| '.wasm' | |
| ], | |
| modules: [ | |
| 'node_modules' | |
| ], | |
| alias: { | |
| 'next/head': 'next/dist/next-server/lib/head.js', | |
| 'next/router': 'next/dist/client/router.js', | |
| 'next/config': 'next/dist/next-server/lib/runtime-config.js', | |
| 'next/dynamic': 'next/dist/next-server/lib/dynamic.js', | |
| next: '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next', | |
| 'private-next-pages': '/Users/demo/ws/next.js/examples/data-fetch/pages', | |
| 'private-dot-next': '/Users/demo/ws/next.js/examples/data-fetch/.next', | |
| unfetch$: '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next/dist/build/polyfills/fetch/index.js', | |
| 'isomorphic-unfetch$': '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next/dist/build/polyfills/fetch/index.js', | |
| 'whatwg-fetch$': '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next/dist/build/polyfills/fetch/whatwg-fetch.js', | |
| 'object-assign$': '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next/dist/build/polyfills/object-assign.js', | |
| 'object.assign/auto': '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next/dist/build/polyfills/object.assign/auto.js', | |
| 'object.assign/implementation': '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next/dist/build/polyfills/object.assign/implementation.js', | |
| 'object.assign$': '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next/dist/build/polyfills/object.assign/index.js', | |
| 'object.assign/polyfill': '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next/dist/build/polyfills/object.assign/polyfill.js', | |
| 'object.assign/shim': '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next/dist/build/polyfills/object.assign/shim.js', | |
| url: '/Users/demo/ws/next.js/examples/data-fetch/node_modules/native-url/dist/index.js' | |
| }, | |
| mainFields: [ | |
| 'browser', | |
| 'module', | |
| 'main' | |
| ], | |
| plugins: [ | |
| { | |
| apply: function nothing() { | |
| // ¯\_(ツ)_/¯ | |
| }, | |
| makePlugin: (locator, filter) => pnp ? { | |
| apply: makeResolver(locator, filter), | |
| } : { | |
| apply: nothing, | |
| }, | |
| moduleLoader: module => pnp ? { | |
| apply: makeResolver(getModuleLocator(module)), | |
| } : { | |
| apply: nothing, | |
| }, | |
| topLevelLoader: { | |
| apply: function nothing() { | |
| // ¯\_(ツ)_/¯ | |
| } | |
| }, | |
| bind: function () { /* omitted long function */ }, | |
| tsLoaderOptions: function () { /* omitted long function */ }, | |
| forkTsCheckerOptions: function () { /* omitted long function */ } | |
| } | |
| ] | |
| }, | |
| resolveLoader: { | |
| alias: { | |
| 'emit-file-loader': '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next/dist/build/webpack/loaders/emit-file-loader', | |
| 'error-loader': '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next/dist/build/webpack/loaders/error-loader', | |
| 'next-babel-loader': '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next/dist/build/webpack/loaders/next-babel-loader', | |
| 'next-client-pages-loader': '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader', | |
| 'next-data-loader': '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next/dist/build/webpack/loaders/next-data-loader', | |
| 'next-serverless-loader': '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next/dist/build/webpack/loaders/next-serverless-loader', | |
| 'noop-loader': '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next/dist/build/webpack/loaders/noop-loader', | |
| 'next-plugin-loader': '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next/dist/build/webpack/loaders/next-plugin-loader' | |
| }, | |
| modules: [ | |
| 'node_modules' | |
| ], | |
| plugins: [ | |
| { | |
| apply: function nothing() { | |
| // ¯\_(ツ)_/¯ | |
| }, | |
| makePlugin: (locator, filter) => pnp ? { | |
| apply: makeResolver(locator, filter), | |
| } : { | |
| apply: nothing, | |
| }, | |
| moduleLoader: module => pnp ? { | |
| apply: makeResolver(getModuleLocator(module)), | |
| } : { | |
| apply: nothing, | |
| }, | |
| topLevelLoader: { | |
| apply: function nothing() { | |
| // ¯\_(ツ)_/¯ | |
| } | |
| }, | |
| bind: function () { /* omitted long function */ }, | |
| tsLoaderOptions: function () { /* omitted long function */ }, | |
| forkTsCheckerOptions: function () { /* omitted long function */ } | |
| } | |
| ] | |
| }, | |
| module: { | |
| rules: [ | |
| { | |
| test: /\.(tsx|ts|js|mjs|jsx)$/, | |
| include: [ | |
| '/Users/demo/ws/next.js/examples/data-fetch', | |
| /next[\\\/]dist[\\\/]next-server[\\\/]lib/, | |
| /next[\\\/]dist[\\\/]client/, | |
| /next[\\\/]dist[\\\/]pages/, | |
| /[\\\/](strip-ansi|ansi-regex)[\\\/]/ | |
| ], | |
| exclude: function () { /* omitted long function */ }, | |
| use: { | |
| loader: 'next-babel-loader', | |
| options: { | |
| isServer: false, | |
| distDir: '/Users/demo/ws/next.js/examples/data-fetch/.next', | |
| pagesDir: '/Users/demo/ws/next.js/examples/data-fetch/pages', | |
| cwd: '/Users/demo/ws/next.js/examples/data-fetch', | |
| cache: true, | |
| babelPresetPlugins: [], | |
| hasModern: false, | |
| development: false | |
| } | |
| } | |
| }, | |
| { | |
| oneOf: [ | |
| { | |
| test: /a^/, | |
| loader: 'noop-loader', | |
| options: { | |
| __next_css_remove: true | |
| } | |
| }, | |
| { | |
| test: /\.(css|scss|sass)$/, | |
| issuer: { | |
| test: /pages[\\\/]_document\./ | |
| }, | |
| use: { | |
| loader: 'error-loader', | |
| options: { | |
| reason: 'CSS \u001b[1mcannot\u001b[22m be imported within \u001b[36mpages/_document.js\u001b[39m. Please move global styles to \u001b[36mpages/_app.js\u001b[39m.' | |
| } | |
| } | |
| }, | |
| { | |
| sideEffects: false, | |
| test: /\.module\.css$/, | |
| issuer: { | |
| include: [ | |
| '/Users/demo/ws/next.js/examples/data-fetch' | |
| ], | |
| exclude: /node_modules/ | |
| }, | |
| use: [ | |
| { | |
| loader: '/Users/demo/ws/next.js/examples/data-fetch/node_modules/mini-css-extract-plugin/dist/loader.js', | |
| options: { | |
| publicPath: '/_next/' | |
| } | |
| }, | |
| { | |
| loader: '/Users/demo/ws/next.js/examples/data-fetch/node_modules/css-loader/dist/cjs.js', | |
| options: { | |
| importLoaders: 1, | |
| sourceMap: true, | |
| onlyLocals: false, | |
| modules: { | |
| mode: 'pure', | |
| getLocalIdent: function () { /* omitted long function */ } | |
| } | |
| } | |
| }, | |
| { | |
| loader: '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next/dist/compiled/postcss-loader/index.js', | |
| options: { | |
| ident: '__nextjs_postcss', | |
| plugins: [ | |
| function () { /* omitted long function */ }, | |
| function () { /* omitted long function */ } | |
| ], | |
| sourceMap: true | |
| } | |
| } | |
| ] | |
| }, | |
| { | |
| sideEffects: false, | |
| test: /\.module\.(scss|sass)$/, | |
| issuer: { | |
| include: [ | |
| '/Users/demo/ws/next.js/examples/data-fetch' | |
| ], | |
| exclude: /node_modules/ | |
| }, | |
| use: [ | |
| { | |
| loader: '/Users/demo/ws/next.js/examples/data-fetch/node_modules/mini-css-extract-plugin/dist/loader.js', | |
| options: { | |
| publicPath: '/_next/' | |
| } | |
| }, | |
| { | |
| loader: '/Users/demo/ws/next.js/examples/data-fetch/node_modules/css-loader/dist/cjs.js', | |
| options: { | |
| importLoaders: 3, | |
| sourceMap: true, | |
| onlyLocals: false, | |
| modules: { | |
| mode: 'pure', | |
| getLocalIdent: function () { /* omitted long function */ } | |
| } | |
| } | |
| }, | |
| { | |
| loader: '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next/dist/compiled/postcss-loader/index.js', | |
| options: { | |
| ident: '__nextjs_postcss', | |
| plugins: [ | |
| function () { /* omitted long function */ }, | |
| function () { /* omitted long function */ } | |
| ], | |
| sourceMap: true | |
| } | |
| }, | |
| { | |
| loader: '/Users/demo/ws/next.js/examples/data-fetch/node_modules/resolve-url-loader/index.js', | |
| options: { | |
| sourceMap: true | |
| } | |
| }, | |
| { | |
| loader: '/Users/demo/ws/next.js/examples/data-fetch/node_modules/sass-loader/dist/cjs.js', | |
| options: { | |
| sourceMap: true, | |
| sassOptions: {} | |
| } | |
| } | |
| ] | |
| }, | |
| { | |
| test: [ | |
| /\.module\.css$/, | |
| /\.module\.(scss|sass)$/ | |
| ], | |
| use: { | |
| loader: 'error-loader', | |
| options: { | |
| reason: 'CSS Modules \u001b[1mcannot\u001b[22m be imported from within \u001b[1mnode_modules\u001b[22m.\nRead more: https://err.sh/next.js/css-modules-npm' | |
| } | |
| } | |
| }, | |
| { | |
| test: [ | |
| /(?<!\.module)\.css$/, | |
| /(?<!\.module)\.(scss|sass)$/ | |
| ], | |
| issuer: { | |
| include: [ | |
| /node_modules/ | |
| ] | |
| }, | |
| use: { | |
| loader: 'error-loader', | |
| options: { | |
| reason: 'Global CSS \u001b[1mcannot\u001b[22m be imported from within \u001b[1mnode_modules\u001b[22m.\nRead more: https://err.sh/next.js/css-npm' | |
| } | |
| } | |
| }, | |
| { | |
| test: [ | |
| /(?<!\.module)\.css$/, | |
| /(?<!\.module)\.(scss|sass)$/ | |
| ], | |
| use: { | |
| loader: 'error-loader', | |
| options: { | |
| reason: 'Global CSS \u001b[1mcannot\u001b[22m be imported from files other than your \u001b[1mCustom <App>\u001b[22m. Please move all global CSS imports to \u001b[36mpages/_app.js\u001b[39m.\nRead more: https://err.sh/next.js/css-global' | |
| } | |
| } | |
| }, | |
| { | |
| issuer: { | |
| test: /\.(css|scss|sass)$/ | |
| }, | |
| exclude: [ | |
| /\.(js|mjs|jsx|ts|tsx)$/, | |
| /\.html$/, | |
| /\.json$/ | |
| ], | |
| use: { | |
| loader: '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next/dist/compiled/file-loader/cjs.js', | |
| options: { | |
| name: 'static/media/[name].[hash].[ext]' | |
| } | |
| } | |
| } | |
| ] | |
| } | |
| ], | |
| strictExportPresence: true | |
| }, | |
| plugins: [ | |
| {}, | |
| { | |
| definitions: { | |
| 'process.env.NODE_ENV': '"production"', | |
| 'process.crossOrigin': undefined, | |
| 'process.browser': 'true', | |
| 'process.env.__NEXT_TEST_MODE': undefined, | |
| 'process.env.__NEXT_EXPORT_TRAILING_SLASH': 'false', | |
| 'process.env.__NEXT_MODERN_BUILD': 'false', | |
| 'process.env.__NEXT_GRANULAR_CHUNKS': 'true', | |
| 'process.env.__NEXT_BUILD_INDICATOR': 'true', | |
| 'process.env.__NEXT_PRERENDER_INDICATOR': 'true', | |
| 'process.env.__NEXT_PLUGINS': 'false', | |
| 'process.env.__NEXT_STRICT_MODE': 'false', | |
| 'process.env.__NEXT_REACT_MODE': '"legacy"', | |
| 'process.env.__NEXT_ROUTER_BASEPATH': '""', | |
| 'process.env.__NEXT_FID_POLYFILL': 'false' | |
| } | |
| }, | |
| { | |
| filename: 'react-loadable-manifest.json' | |
| }, | |
| { | |
| ampPages: new Set([]) | |
| }, | |
| { | |
| options: { | |
| context: null, | |
| hashFunction: 'md4', | |
| hashDigest: 'base64', | |
| hashDigestLength: 4 | |
| } | |
| }, | |
| { | |
| options: { | |
| checkResource: resource=>{return /react-is/.test(resource);}, | |
| checkContext: context=>{return /next-server[\\/]dist[\\/]/.test(context)||/next[\\/]dist[\\/]/.test(context);} | |
| }, | |
| checkIgnore: function () { [native code] } | |
| }, | |
| { | |
| buildId: 'Nxq-JZiXIEBoAwTGEDNNp', | |
| clientManifest: true, | |
| modern: false | |
| }, | |
| { | |
| options: { | |
| filename: 'static/css/[contenthash].css', | |
| moduleFilename: () => options.filename || DEFAULT_FILENAME, | |
| ignoreOrder: true, | |
| chunkFilename: 'static/css/[contenthash].css' | |
| }, | |
| __next_css_remove: true | |
| } | |
| ], | |
| mode: 'production', | |
| name: 'client', | |
| target: 'web', | |
| devtool: false | |
| }, | |
| { | |
| externals: [ | |
| function () { /* omitted long function */ } | |
| ], | |
| optimization: { | |
| checkWasmTypes: false, | |
| nodeEnv: false, | |
| splitChunks: false, | |
| runtimeChunk: undefined, | |
| minimize: false, | |
| minimizer: [ | |
| { | |
| cpus: 15, | |
| distDir: '/Users/demo/ws/next.js/examples/data-fetch/.next', | |
| workerThreads: false, | |
| options: { | |
| warningsFilter: ()=>true, | |
| sourceMap: false, | |
| cache: true, | |
| terserOptions: { | |
| parse: { | |
| ecma: 8 | |
| }, | |
| compress: { | |
| ecma: 5, | |
| warnings: false, | |
| comparisons: false, | |
| inline: 2 | |
| }, | |
| mangle: { | |
| safari10: true | |
| }, | |
| output: { | |
| ecma: 5, | |
| safari10: true, | |
| comments: false, | |
| ascii_only: true | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| __next_css_remove: true, | |
| options: { | |
| postcssOptions: { | |
| map: { | |
| inline: false, | |
| annotation: false | |
| } | |
| } | |
| } | |
| } | |
| ] | |
| }, | |
| context: '/Users/demo/ws/next.js/examples/data-fetch', | |
| node: { | |
| setImmediate: false | |
| }, | |
| entry: { | |
| 'static/Nxq-JZiXIEBoAwTGEDNNp/pages/a/b/preact.js': [ | |
| 'private-next-pages/a/b/preact.js' | |
| ], | |
| 'static/Nxq-JZiXIEBoAwTGEDNNp/pages/index.js': [ | |
| 'private-next-pages/index.js' | |
| ], | |
| 'static/Nxq-JZiXIEBoAwTGEDNNp/pages/_app.js': [ | |
| 'next/dist/pages/_app' | |
| ], | |
| 'static/Nxq-JZiXIEBoAwTGEDNNp/pages/_error.js': [ | |
| 'next/dist/pages/_error' | |
| ], | |
| 'static/Nxq-JZiXIEBoAwTGEDNNp/pages/_document.js': [ | |
| 'next/dist/pages/_document' | |
| ], | |
| 'init-server.js': 'next-plugin-loader?middleware=on-init-server!', | |
| 'on-error-server.js': 'next-plugin-loader?middleware=on-error-server!' | |
| }, | |
| output: { | |
| path: '/Users/demo/ws/next.js/examples/data-fetch/.next/server', | |
| filename: function () { /* omitted long function */ }, | |
| libraryTarget: 'commonjs2', | |
| hotUpdateChunkFilename: 'static/webpack/[id].[hash].hot-update.js', | |
| hotUpdateMainFilename: 'static/webpack/[hash].hot-update.json', | |
| chunkFilename: '[name].[contenthash].js', | |
| strictModuleExceptionHandling: true, | |
| crossOriginLoading: undefined, | |
| futureEmitAssets: true, | |
| webassemblyModuleFilename: 'static/wasm/[modulehash].wasm' | |
| }, | |
| performance: false, | |
| resolve: { | |
| extensions: [ | |
| '.js', | |
| '.mjs', | |
| '.jsx', | |
| '.json', | |
| '.wasm' | |
| ], | |
| modules: [ | |
| 'node_modules' | |
| ], | |
| alias: { | |
| 'next/head': 'next/dist/next-server/lib/head.js', | |
| 'next/router': 'next/dist/client/router.js', | |
| 'next/config': 'next/dist/next-server/lib/runtime-config.js', | |
| 'next/dynamic': 'next/dist/next-server/lib/dynamic.js', | |
| next: '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next', | |
| 'private-next-pages': '/Users/demo/ws/next.js/examples/data-fetch/pages', | |
| 'private-dot-next': '/Users/demo/ws/next.js/examples/data-fetch/.next' | |
| }, | |
| mainFields: [ | |
| 'main', | |
| 'module' | |
| ], | |
| plugins: [ | |
| { | |
| apply: function nothing() { | |
| // ¯\_(ツ)_/¯ | |
| }, | |
| makePlugin: (locator, filter) => pnp ? { | |
| apply: makeResolver(locator, filter), | |
| } : { | |
| apply: nothing, | |
| }, | |
| moduleLoader: module => pnp ? { | |
| apply: makeResolver(getModuleLocator(module)), | |
| } : { | |
| apply: nothing, | |
| }, | |
| topLevelLoader: { | |
| apply: function nothing() { | |
| // ¯\_(ツ)_/¯ | |
| } | |
| }, | |
| bind: function () { /* omitted long function */ }, | |
| tsLoaderOptions: function () { /* omitted long function */ }, | |
| forkTsCheckerOptions: function () { /* omitted long function */ } | |
| } | |
| ] | |
| }, | |
| resolveLoader: { | |
| alias: { | |
| 'emit-file-loader': '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next/dist/build/webpack/loaders/emit-file-loader', | |
| 'error-loader': '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next/dist/build/webpack/loaders/error-loader', | |
| 'next-babel-loader': '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next/dist/build/webpack/loaders/next-babel-loader', | |
| 'next-client-pages-loader': '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next/dist/build/webpack/loaders/next-client-pages-loader', | |
| 'next-data-loader': '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next/dist/build/webpack/loaders/next-data-loader', | |
| 'next-serverless-loader': '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next/dist/build/webpack/loaders/next-serverless-loader', | |
| 'noop-loader': '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next/dist/build/webpack/loaders/noop-loader', | |
| 'next-plugin-loader': '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next/dist/build/webpack/loaders/next-plugin-loader' | |
| }, | |
| modules: [ | |
| 'node_modules' | |
| ], | |
| plugins: [ | |
| { | |
| apply: function nothing() { | |
| // ¯\_(ツ)_/¯ | |
| }, | |
| makePlugin: (locator, filter) => pnp ? { | |
| apply: makeResolver(locator, filter), | |
| } : { | |
| apply: nothing, | |
| }, | |
| moduleLoader: module => pnp ? { | |
| apply: makeResolver(getModuleLocator(module)), | |
| } : { | |
| apply: nothing, | |
| }, | |
| topLevelLoader: { | |
| apply: function nothing() { | |
| // ¯\_(ツ)_/¯ | |
| } | |
| }, | |
| bind: function () { /* omitted long function */ }, | |
| tsLoaderOptions: function () { /* omitted long function */ }, | |
| forkTsCheckerOptions: function () { /* omitted long function */ } | |
| } | |
| ] | |
| }, | |
| module: { | |
| rules: [ | |
| { | |
| test: /\.(tsx|ts|js|mjs|jsx)$/, | |
| include: [ | |
| '/Users/demo/ws/next.js/examples/data-fetch', | |
| /next[\\\/]dist[\\\/]next-server[\\\/]lib/, | |
| /next[\\\/]dist[\\\/]client/, | |
| /next[\\\/]dist[\\\/]pages/, | |
| /[\\\/](strip-ansi|ansi-regex)[\\\/]/ | |
| ], | |
| exclude: function () { /* omitted long function */ }, | |
| use: { | |
| loader: 'next-babel-loader', | |
| options: { | |
| isServer: true, | |
| distDir: '/Users/demo/ws/next.js/examples/data-fetch/.next', | |
| pagesDir: '/Users/demo/ws/next.js/examples/data-fetch/pages', | |
| cwd: '/Users/demo/ws/next.js/examples/data-fetch', | |
| cache: true, | |
| babelPresetPlugins: [], | |
| hasModern: false, | |
| development: false | |
| } | |
| } | |
| }, | |
| { | |
| oneOf: [ | |
| { | |
| test: /a^/, | |
| loader: 'noop-loader', | |
| options: { | |
| __next_css_remove: true | |
| } | |
| }, | |
| { | |
| test: /\.(css|scss|sass)$/, | |
| issuer: { | |
| test: /pages[\\\/]_document\./ | |
| }, | |
| use: { | |
| loader: 'error-loader', | |
| options: { | |
| reason: 'CSS \u001b[1mcannot\u001b[22m be imported within \u001b[36mpages/_document.js\u001b[39m. Please move global styles to \u001b[36mpages/_app.js\u001b[39m.' | |
| } | |
| } | |
| }, | |
| { | |
| sideEffects: false, | |
| test: /\.module\.css$/, | |
| issuer: { | |
| include: [ | |
| '/Users/demo/ws/next.js/examples/data-fetch' | |
| ], | |
| exclude: /node_modules/ | |
| }, | |
| use: [ | |
| { | |
| loader: '/Users/demo/ws/next.js/examples/data-fetch/node_modules/css-loader/dist/cjs.js', | |
| options: { | |
| importLoaders: 1, | |
| sourceMap: true, | |
| onlyLocals: true, | |
| modules: { | |
| mode: 'pure', | |
| getLocalIdent: function () { /* omitted long function */ } | |
| } | |
| } | |
| }, | |
| { | |
| loader: '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next/dist/compiled/postcss-loader/index.js', | |
| options: { | |
| ident: '__nextjs_postcss', | |
| plugins: [ | |
| function () { /* omitted long function */ }, | |
| function () { /* omitted long function */ } | |
| ], | |
| sourceMap: true | |
| } | |
| } | |
| ] | |
| }, | |
| { | |
| sideEffects: false, | |
| test: /\.module\.(scss|sass)$/, | |
| issuer: { | |
| include: [ | |
| '/Users/demo/ws/next.js/examples/data-fetch' | |
| ], | |
| exclude: /node_modules/ | |
| }, | |
| use: [ | |
| { | |
| loader: '/Users/demo/ws/next.js/examples/data-fetch/node_modules/css-loader/dist/cjs.js', | |
| options: { | |
| importLoaders: 3, | |
| sourceMap: true, | |
| onlyLocals: true, | |
| modules: { | |
| mode: 'pure', | |
| getLocalIdent: function () { /* omitted long function */ } | |
| } | |
| } | |
| }, | |
| { | |
| loader: '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next/dist/compiled/postcss-loader/index.js', | |
| options: { | |
| ident: '__nextjs_postcss', | |
| plugins: [ | |
| function () { /* omitted long function */ }, | |
| function () { /* omitted long function */ } | |
| ], | |
| sourceMap: true | |
| } | |
| }, | |
| { | |
| loader: '/Users/demo/ws/next.js/examples/data-fetch/node_modules/resolve-url-loader/index.js', | |
| options: { | |
| sourceMap: true | |
| } | |
| }, | |
| { | |
| loader: '/Users/demo/ws/next.js/examples/data-fetch/node_modules/sass-loader/dist/cjs.js', | |
| options: { | |
| sourceMap: true, | |
| sassOptions: {} | |
| } | |
| } | |
| ] | |
| }, | |
| { | |
| test: [ | |
| /\.module\.css$/, | |
| /\.module\.(scss|sass)$/ | |
| ], | |
| use: { | |
| loader: 'error-loader', | |
| options: { | |
| reason: 'CSS Modules \u001b[1mcannot\u001b[22m be imported from within \u001b[1mnode_modules\u001b[22m.\nRead more: https://err.sh/next.js/css-modules-npm' | |
| } | |
| } | |
| }, | |
| { | |
| test: [ | |
| /(?<!\.module)\.css$/, | |
| /(?<!\.module)\.(scss|sass)$/ | |
| ], | |
| use: '/Users/demo/ws/next.js/examples/data-fetch/node_modules/next/dist/compiled/ignore-loader/index.js' | |
| }, | |
| { | |
| test: [ | |
| /(?<!\.module)\.css$/, | |
| /(?<!\.module)\.(scss|sass)$/ | |
| ], | |
| issuer: { | |
| include: [ | |
| /node_modules/ | |
| ] | |
| }, | |
| use: { | |
| loader: 'error-loader', | |
| options: { | |
| reason: 'Global CSS \u001b[1mcannot\u001b[22m be imported from within \u001b[1mnode_modules\u001b[22m.\nRead more: https://err.sh/next.js/css-npm' | |
| } | |
| } | |
| }, | |
| { | |
| test: [ | |
| /(?<!\.module)\.css$/, | |
| /(?<!\.module)\.(scss|sass)$/ | |
| ], | |
| use: { | |
| loader: 'error-loader', | |
| options: { | |
| reason: 'Global CSS \u001b[1mcannot\u001b[22m be imported from files other than your \u001b[1mCustom <App>\u001b[22m. Please move all global CSS imports to \u001b[36mpages/_app.js\u001b[39m.\nRead more: https://err.sh/next.js/css-global' | |
| } | |
| } | |
| } | |
| ] | |
| } | |
| ], | |
| strictExportPresence: true | |
| }, | |
| plugins: [ | |
| {}, | |
| { | |
| definitions: { | |
| 'process.env.NODE_ENV': '"production"', | |
| 'process.crossOrigin': undefined, | |
| 'process.browser': 'false', | |
| 'process.env.__NEXT_TEST_MODE': undefined, | |
| 'process.env.__NEXT_EXPORT_TRAILING_SLASH': 'false', | |
| 'process.env.__NEXT_MODERN_BUILD': 'false', | |
| 'process.env.__NEXT_GRANULAR_CHUNKS': 'true', | |
| 'process.env.__NEXT_BUILD_INDICATOR': 'true', | |
| 'process.env.__NEXT_PRERENDER_INDICATOR': 'true', | |
| 'process.env.__NEXT_PLUGINS': 'false', | |
| 'process.env.__NEXT_STRICT_MODE': 'false', | |
| 'process.env.__NEXT_REACT_MODE': '"legacy"', | |
| 'process.env.__NEXT_ROUTER_BASEPATH': '""', | |
| 'process.env.__NEXT_FID_POLYFILL': 'false', | |
| 'global.GENTLY': 'false' | |
| } | |
| }, | |
| { | |
| options: { | |
| context: null, | |
| hashFunction: 'md4', | |
| hashDigest: 'base64', | |
| hashDigestLength: 4 | |
| } | |
| }, | |
| { | |
| options: { | |
| checkResource: resource=>{return /react-is/.test(resource);}, | |
| checkContext: context=>{return /next-server[\\/]dist[\\/]/.test(context)||/next[\\/]dist[\\/]/.test(context);} | |
| }, | |
| checkIgnore: function () { [native code] } | |
| }, | |
| { | |
| serverless: false | |
| }, | |
| { | |
| options: { | |
| outputPath: '/Users/demo/ws/next.js/examples/data-fetch/.next/server' | |
| } | |
| }, | |
| {} | |
| ], | |
| mode: 'production', | |
| name: 'server', | |
| target: 'node', | |
| devtool: false | |
| } | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment