UNPKG

31.5 kBSource Map (JSON)View Raw
1{"version":3,"file":"webpack.config.js","sourceRoot":"","sources":["../src/webpack.config.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gBAAgB,CAAC,MAAM;AACvB,qBAAqB;AACrB,wGAA6E;AAC7E,kDAA0B;AAC1B,+DAA0D;AAC1D,8EAAoD;AACpD,uCAMkB;AAClB,uCAAwC;AACxC,mCAAiC;AACjC,sFAA2D;AAC3D,uDAAyC;AACzC,gDAAwB;AACxB,4EAAkD;AAClD,gGAAwE;AACxE,kHAA0F;AAC1F,gEAAuC;AACvC,mDAA8F;AAC9F,0FAAuE;AACvE,sFAAqD;AAErD,qCAMkB;AAClB,+BAQe;AACf,uCAA6C;AAC7C,uCASmB;AACnB,0GAAkF;AAGlF,mCAAuD;AAEvD,2FAA2F;AAC3F,MAAM,kBAAkB,GAAG,gBAAO,CAAC,oBAAoB,EAAE,IAAI,CAAC,CAAC;AAC/D,MAAM,0BAA0B,GAAG,gBAAO,CAAC,sCAAsC,EAAE,IAAI,CAAC,CAAC;AACzF,MAAM,qBAAqB,GAAG,gBAAO,CAAC,2BAA2B,EAAE,KAAK,CAAC,CAAC;AAE1E,MAAM,IAAI,GAAG,gBAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAElC,SAAS,UAAU,CACjB,EAAE,UAAU,EAAE,WAAW,EAAiD,EAC1E,EAAE,OAAO,EAAiC;IAE1C,IAAI,UAAU,EAAE;QACd,kBAAkB;QAClB,IAAI,OAAO,KAAK,SAAS,EAAE;YACzB,8GAA8G;YAC9G,OAAO,OAAO,CAAC;SAChB;QACD,OAAO,kBAAkB,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC;KAClD;IACD,IAAI,WAAW,EAAE;QACf,OAAO,yBAAyB,CAAC;KAClC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,SAAS,CAChB,SAAoB,EACpB,IAAU,EACV,UAAkB,EAClB,QAAiC;I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Y,CAAC,MAAM,CAAC;aACtC;SACF;QACD,OAAO,EAAE;YACP,UAAU,EAAE,sBAAsB,CAAC,GAAG,CAAC,QAAQ,CAAC;YAChD,OAAO,EAAE;gBACP,sFAAsF;gBACtF,kDAAkD;gBAClD,4BAAgB;aACjB;YACD,QAAQ,EAAE,KAAK;SAChB;QACD,qDAAqD;QACrD,+CAA+C;QAE/C,wCAAwC;QACxC,WAAW,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE;KAChF,CAAC;IAEF,IAAI,CAAC,0BAA0B,EAAE;QAC/B,aAAa,GAAG,+BAAsB,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC;KAC5D;IAED,IAAI,QAAQ,EAAE;QACZ,8HAA8H;QAC9H,aAAa,CAAC,MAAM,GAAG,WAAW,CAAC;KACpC;IAED,IAAI,MAAM,EAAE;QACV,aAAa,GAAG,0BAAiB,CAAC,aAAa,CAAC,CAAC;KAClD;SAAM;QACL,aAAa,GAAG,sBAAa,CAAC,aAAa,EAAE,GAAG,EAAE;YAChD,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC,CAAC;KACJ;IAED,IAAI,CAAC,QAAQ,EAAE;QACb,aAAa,GAAG,sBAAa,CAAC,kBAAS,CAAC,aAAa,EAAE,gBAAU,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;KACtF;IAED,OAAO,aAAa,CAAC;AACvB,CAAC;AAlaD,4BAkaC","sourcesContent":["/** @internal */ /** */\n/* eslint-env node */\nimport ReactRefreshWebpackPlugin from '@pmmmwh/react-refresh-webpack-plugin';\nimport chalk from 'chalk';\nimport { CleanWebpackPlugin } from 'clean-webpack-plugin';\nimport CopyWebpackPlugin from 'copy-webpack-plugin';\nimport {\n getChromeIconConfig,\n getFaviconIconConfig,\n getSafariIconConfig,\n getSafariStartupImageConfig,\n IconOptions,\n} from 'expo-pwa';\nimport { readFileSync } from 'fs-extra';\nimport { boolish } from 'getenv';\nimport MiniCssExtractPlugin from 'mini-css-extract-plugin';\nimport { parse } from 'node-html-parser';\nimport path from 'path';\nimport PnpWebpackPlugin from 'pnp-webpack-plugin';\nimport ModuleNotFoundPlugin from 'react-dev-utils/ModuleNotFoundPlugin';\nimport WatchMissingNodeModulesPlugin from 'react-dev-utils/WatchMissingNodeModulesPlugin';\nimport resolveFrom from 'resolve-from';\nimport webpack, { Configuration, HotModuleReplacementPlugin, Options, Output } from 'webpack';\nimport WebpackDeepScopeAnalysisPlugin from 'webpack-deep-scope-plugin';\nimport ManifestPlugin from 'webpack-manifest-plugin';\n\nimport {\n withAlias,\n withDevServer,\n withNodeMocks,\n withOptimizations,\n withPlatformSourceMaps,\n} from './addons';\nimport {\n getAliases,\n getConfig,\n getMode,\n getModuleFileExtensions,\n getNativeModuleFileExtensions,\n getPathsAsync,\n getPublicPaths,\n} from './env';\nimport { createAllLoaders } from './loaders';\nimport {\n ApplePwaWebpackPlugin,\n ChromeIconsWebpackPlugin,\n ExpoDefinePlugin,\n ExpoHtmlWebpackPlugin,\n ExpoInterpolateHtmlPlugin,\n ExpoProgressBarPlugin,\n ExpoPwaManifestWebpackPlugin,\n FaviconWebpackPlugin,\n} from './plugins';\nimport ExpoAppManifestWebpackPlugin from './plugins/ExpoAppManifestWebpackPlugin';\nimport { HTMLLinkNode } from './plugins/ModifyHtmlWebpackPlugin';\nimport { Arguments, DevConfiguration, Environment, FilePaths, Mode } from './types';\nimport { overrideWithPropertyOrConfig } from './utils';\n\n// Source maps are resource heavy and can cause out of memory issue for large source files.\nconst shouldUseSourceMap = boolish('GENERATE_SOURCEMAP', true);\nconst shouldUseNativeCodeLoading = boolish('EXPO_WEBPACK_USE_NATIVE_CODE_LOADING', true);\nconst shouldUseReactRefresh = boolish('EXPO_WEBPACK_FAST_REFRESH', false);\n\nconst isCI = boolish('CI', false);\n\nfunction getDevtool(\n { production, development }: { production: boolean; development: boolean },\n { devtool }: { devtool?: Options.Devtool }\n): Options.Devtool {\n if (production) {\n // string or false\n if (devtool !== undefined) {\n // When big assets are involved sources maps can become expensive and cause your process to run out of memory.\n return devtool;\n }\n return shouldUseSourceMap ? 'source-map' : false;\n }\n if (development) {\n return 'cheap-module-source-map';\n }\n return false;\n}\n\nfunction getOutput(\n locations: FilePaths,\n mode: Mode,\n publicPath: string,\n platform: Environment['platform']\n): Output {\n const commonOutput: Output = {\n // We inferred the \"public path\" (such as / or /my-project) from homepage.\n // We use \"/\" in development.\n publicPath,\n // Build folder (default `web-build`)\n path: locations.production.folder,\n // this defaults to 'window', but by setting it to 'this' then\n // module chunks which are built will work in web workers as well.\n globalObject: 'this',\n };\n\n if (mode === 'production') {\n commonOutput.filename = 'static/js/[name].[contenthash:8].js';\n // There are also additional JS chunk files if you use code splitting.\n commonOutput.chunkFilename = 'static/js/[name].[contenthash:8].chunk.js';\n // Point sourcemap entries to original disk location (format as URL on Windows)\n commonOutput.devtoolModuleFilenameTemplate = (\n info: webpack.DevtoolModuleFilenameTemplateInfo\n ): string => path.relative(locations.root, info.absoluteResourcePath).replace(/\\\\/g, '/');\n } else {\n // Add comments that describe the file import/exports.\n // This will make it easier to debug.\n commonOutput.pathinfo = true;\n // Give the output bundle a constant name to prevent caching.\n // Also there are no actual files generated in dev.\n commonOutput.filename = 'static/js/bundle.js';\n // There are also additional JS chunk files if you use code splitting.\n commonOutput.chunkFilename = 'static/js/[name].chunk.js';\n // Point sourcemap entries to original disk location (format as URL on Windows)\n commonOutput.devtoolModuleFilenameTemplate = (\n info: webpack.DevtoolModuleFilenameTemplateInfo\n ): string => path.resolve(info.absoluteResourcePath).replace(/\\\\/g, '/');\n }\n\n if (!shouldUseNativeCodeLoading && isPlatformNative(platform)) {\n // Give the output bundle a constant name to prevent caching.\n // Also there are no actual files generated in dev.\n commonOutput.filename = `index.bundle`;\n }\n\n return commonOutput;\n}\n\nfunction isPlatformNative(platform: string): boolean {\n return ['ios', 'android'].includes(platform);\n}\n\nfunction getPlatformsExtensions(platform: string): string[] {\n if (isPlatformNative(platform)) {\n return getNativeModuleFileExtensions(platform, 'native');\n }\n return getModuleFileExtensions(platform);\n}\n\nexport default async function (\n env: Environment,\n argv: Arguments = {}\n): Promise<Configuration | DevConfiguration> {\n if ('report' in env) {\n console.warn(\n chalk.bgRed.black(\n `The \\`report\\` property of \\`@expo/webpack-config\\` is now deprecated.\\nhttps://expo.fyi/webpack-report-property-is-deprecated`\n )\n );\n }\n const config = getConfig(env);\n const mode = getMode(env);\n const isDev = mode === 'development';\n const isProd = mode === 'production';\n\n // Because the native React runtime is different to the browser we need to make\n // some core modifications to webpack.\n const isNative = ['ios', 'android'].includes(env.platform);\n\n // Enables deep scope analysis in production mode.\n // Remove unused import/exports\n // override: `env.removeUnusedImportExports`\n const deepScopeAnalysisEnabled = overrideWithPropertyOrConfig(\n env.removeUnusedImportExports,\n false\n // isProd\n );\n\n const locations = env.locations || (await getPathsAsync(env.projectRoot));\n\n const { publicPath, publicUrl } = getPublicPaths(env);\n\n const { build: buildConfig = {} } = config.web || {};\n\n const devtool = getDevtool(\n { production: isProd, development: isDev },\n buildConfig as {\n devtool: Options.Devtool;\n }\n );\n\n const appEntry: string[] = [];\n\n // In solutions like Gatsby the main entry point doesn't need to be known.\n if (locations.appMain) {\n appEntry.push(locations.appMain);\n }\n const webpackDevClientEntry = require.resolve('react-dev-utils/webpackHotDevClient');\n\n if (isNative) {\n const reactNativeModulePath = resolveFrom.silent(env.projectRoot, 'react-native');\n if (reactNativeModulePath) {\n for (const polyfill of [\n 'Core/InitializeCore.js',\n 'polyfills/Object.es7.js',\n 'polyfills/error-guard.js',\n 'polyfills/console.js',\n ]) {\n const resolvedPolyfill = resolveFrom.silent(\n env.projectRoot,\n `react-native/Libraries/${polyfill}`\n );\n if (resolvedPolyfill) appEntry.unshift(resolvedPolyfill);\n }\n }\n } else {\n // Add a loose requirement on the ResizeObserver polyfill if it's installed...\n // Avoid `withEntry` as we don't need so much complexity with this config.\n const resizeObserverPolyfill = resolveFrom.silent(\n env.projectRoot,\n 'resize-observer-polyfill/dist/ResizeObserver.global'\n );\n if (resizeObserverPolyfill) {\n appEntry.unshift(resizeObserverPolyfill);\n }\n\n if (isDev) {\n // https://github.com/facebook/create-react-app/blob/e59e0920f3bef0c2ac47bbf6b4ff3092c8ff08fb/packages/react-scripts/config/webpack.config.js#L144\n // Include an alternative client for WebpackDevServer. A client's job is to\n // connect to WebpackDevServer by a socket and get notified about changes.\n // When you save a file, the client will either apply hot updates (in case\n // of CSS changes), or refresh the page (in case of JS changes). When you\n // make a syntax error, this client will display a syntax error overlay.\n // Note: instead of the default WebpackDevServer client, we use a custom one\n // to bring better experience for Create React App users. You can replace\n // the line below with these two lines if you prefer the stock client:\n // require.resolve('webpack-dev-server/client') + '?/',\n // require.resolve('webpack/hot/dev-server'),\n appEntry.unshift(webpackDevClientEntry);\n }\n }\n\n let generatePWAImageAssets: boolean = !isNative && !isDev;\n if (!isDev && typeof env.pwa !== 'undefined') {\n generatePWAImageAssets = env.pwa;\n }\n\n const filesToCopy: any[] = [\n {\n from: locations.template.folder,\n to: locations.production.folder,\n toType: 'dir',\n noErrorOnMissing: true,\n globOptions: {\n dot: true,\n // We generate new versions of these based on the templates\n ignore: [\n '**/expo-service-worker.*',\n // '**/serve.json',\n // '**/index.html',\n '**/icon.png',\n // We copy this over in `withWorkbox` as it must be part of the Webpack `entry` and have templates replaced.\n '**/register-service-worker.js',\n ],\n },\n },\n {\n from: locations.template.serveJson,\n to: locations.production.serveJson,\n },\n ];\n\n if (env.offline === true) {\n filesToCopy.push({\n from: locations.template.serviceWorker,\n to: locations.production.serviceWorker,\n });\n }\n\n const templateIndex = parse(readFileSync(locations.template.indexHtml, { encoding: 'utf8' }));\n\n // @ts-ignore\n const templateLinks = templateIndex.querySelectorAll('link');\n const links: HTMLLinkNode[] = templateLinks.map((value: any) => ({\n rel: value.getAttribute('rel'),\n media: value.getAttribute('media'),\n href: value.getAttribute('href'),\n sizes: value.getAttribute('sizes'),\n node: value,\n }));\n // @ts-ignore\n const templateMeta = templateIndex.querySelectorAll('meta');\n const meta: HTMLLinkNode[] = templateMeta.map((value: any) => ({\n name: value.getAttribute('name'),\n content: value.getAttribute('content'),\n node: value,\n }));\n\n const [manifestLink] = links.filter(\n link => typeof link.rel === 'string' && link.rel.split(' ').includes('manifest')\n );\n let templateManifest = locations.template.manifest;\n // Only inject a manifest tag if the template is missing one.\n // This enables users to disable tag injection.\n const shouldInjectManifestTag = !manifestLink;\n if (manifestLink?.href) {\n // Often the manifest will be referenced as `/manifest.json` (to support public paths).\n // We've detected that the user has manually added a manifest tag to their template index.html which according\n // to our docs means they want to use a custom manifest.json instead of having a new one generated.\n //\n // Normalize the link (removing the beginning slash) so it can be resolved relative to the user's static folder.\n // Ref: https://docs.expo.io/guides/progressive-web-apps/#manual-setup\n if (manifestLink.href.startsWith('/')) {\n manifestLink.href = manifestLink.href.substring(1);\n }\n templateManifest = locations.template.get(manifestLink.href);\n }\n\n const ensureSourceAbsolute = (input: IconOptions | null): IconOptions | null => {\n if (!input) return input;\n return {\n ...input,\n src: locations.absolute(input.src),\n };\n };\n\n // TODO(Bacon): Move to expo/config - manifest code from XDL Project\n const publicConfig = {\n ...config,\n xde: true,\n developer: {\n tool: 'expo-cli',\n projectRoot: env.projectRoot,\n },\n packagerOpts: {\n dev: !isProd,\n minify: isProd,\n https: env.https,\n },\n };\n\n let webpackConfig: DevConfiguration = {\n mode,\n entry: {\n app: appEntry,\n },\n // https://webpack.js.org/configuration/other-options/#bail\n // Fail out on the first error instead of tolerating it.\n bail: isProd,\n devtool,\n // TODO(Bacon): Simplify this while ensuring gatsby support continues to work.\n context: isNative ? env.projectRoot ?? __dirname : __dirname,\n // configures where the build ends up\n output: getOutput(locations, mode, publicPath, env.platform),\n plugins: [\n // Delete the build folder\n isProd &&\n new CleanWebpackPlugin({\n cleanOnceBeforeBuildPatterns: [locations.production.folder],\n dry: false,\n verbose: false,\n }),\n // Copy the template files over\n isProd && new CopyWebpackPlugin({ patterns: filesToCopy }),\n\n // Generate the `index.html`\n new ExpoHtmlWebpackPlugin(env, templateIndex),\n\n ExpoInterpolateHtmlPlugin.fromEnv(env, ExpoHtmlWebpackPlugin),\n\n isNative &&\n new ExpoAppManifestWebpackPlugin(\n {\n template: locations.template.get('app.config.json'),\n path: 'app.config.json',\n publicPath,\n },\n publicConfig\n ),\n\n env.pwa &&\n new ExpoPwaManifestWebpackPlugin(\n {\n template: templateManifest,\n path: 'manifest.json',\n publicPath,\n inject: shouldInjectManifestTag,\n },\n config\n ),\n !isNative &&\n new FaviconWebpackPlugin(\n {\n projectRoot: env.projectRoot,\n publicPath,\n links,\n },\n ensureSourceAbsolute(getFaviconIconConfig(config))\n ),\n generatePWAImageAssets &&\n new ApplePwaWebpackPlugin(\n {\n projectRoot: env.projectRoot,\n publicPath,\n links,\n meta,\n },\n {\n name: env.config.web?.shortName,\n isFullScreen: env.config.web?.meta?.apple?.touchFullscreen,\n isWebAppCapable: !!env.config.web?.meta?.apple?.mobileWebAppCapable,\n barStyle: env.config.web?.meta?.apple?.barStyle,\n },\n ensureSourceAbsolute(getSafariIconConfig(env.config)),\n ensureSourceAbsolute(getSafariStartupImageConfig(env.config))\n ),\n generatePWAImageAssets &&\n new ChromeIconsWebpackPlugin(\n {\n projectRoot: env.projectRoot,\n publicPath,\n },\n ensureSourceAbsolute(getChromeIconConfig(config))\n ),\n\n // This gives some necessary context to module not found errors, such as\n // the requesting resource.\n new ModuleNotFoundPlugin(locations.root),\n\n new ExpoDefinePlugin({\n mode,\n publicUrl,\n config,\n }),\n\n // Disable chunking on native\n // https://gist.github.com/glennreyes/f538a369db0c449b681e86ef7f86a254#file-razzle-config-js\n isNative &&\n new webpack.optimize.LimitChunkCountPlugin({\n maxChunks: 1,\n }),\n\n // This is necessary to emit hot updates (currently CSS only):\n !isNative && isDev && new HotModuleReplacementPlugin(),\n\n // Experimental hot reloading for React .\n // https://github.com/facebook/react/tree/master/packages/react-refresh\n isDev &&\n shouldUseReactRefresh &&\n new ReactRefreshWebpackPlugin({\n overlay: {\n entry: webpackDevClientEntry,\n },\n }),\n\n // If you require a missing module and then `npm install` it, you still have\n // to restart the development server for Webpack to discover it. This plugin\n // makes the discovery automatic so you don't have to restart.\n // See https://github.com/facebook/create-react-app/issues/186\n isDev && new WatchMissingNodeModulesPlugin(locations.modules),\n\n !isNative &&\n isProd &&\n new MiniCssExtractPlugin({\n // Options similar to the same options in webpackOptions.output\n // both options are optional\n filename: 'static/css/[name].[contenthash:8].css',\n chunkFilename: 'static/css/[name].[contenthash:8].chunk.css',\n }),\n // Generate an asset manifest file with the following content:\n // - \"files\" key: Mapping of all asset filenames to their corresponding\n // output file so that tools can pick it up without having to parse\n // `index.html`\n // - \"entrypoints\" key: Array of files which are included in `index.html`,\n // can be used to reconstruct the HTML if necessary\n !isNative &&\n new ManifestPlugin({\n fileName: 'asset-manifest.json',\n publicPath,\n filter: ({ path }) => {\n if (\n path.match(\n /(apple-touch-startup-image|apple-touch-icon|chrome-icon|precache-manifest)/\n )\n ) {\n return false;\n }\n // Remove compressed versions and service workers\n return !(path.endsWith('.gz') || path.endsWith('worker.js'));\n },\n generate: (seed: Record<string, any>, files, entrypoints) => {\n const manifestFiles = files.reduce<Record<string, string>>((manifest, file) => {\n if (file.name) {\n manifest[file.name] = file.path;\n }\n return manifest;\n }, seed);\n const entrypointFiles = entrypoints.app.filter(fileName => !fileName.endsWith('.map'));\n\n return {\n files: manifestFiles,\n entrypoints: entrypointFiles,\n };\n },\n }),\n\n deepScopeAnalysisEnabled && new WebpackDeepScopeAnalysisPlugin(),\n\n // Skip using a progress bar in CI\n !isCI && new ExpoProgressBarPlugin(),\n ].filter(Boolean),\n module: {\n strictExportPresence: false,\n rules: [\n // Disable require.ensure because it breaks tree shaking.\n { parser: { requireEnsure: false } },\n {\n oneOf: createAllLoaders(env),\n },\n ].filter(Boolean),\n },\n resolveLoader: {\n plugins: [\n // Also related to Plug'n'Play, but this time it tells Webpack to load its loaders\n // from the current package.\n PnpWebpackPlugin.moduleLoader(module),\n ],\n },\n resolve: {\n extensions: getPlatformsExtensions(env.platform),\n plugins: [\n // Adds support for installing with Plug'n'Play, leading to faster installs and adding\n // guards against forgotten dependencies and such.\n PnpWebpackPlugin,\n ],\n symlinks: false,\n },\n // Turn off performance processing because we utilize\n // our own (CRA) hints via the FileSizeReporter\n\n // TODO: Bacon: Remove this higher value\n performance: isCI ? false : { maxAssetSize: 600000, maxEntrypointSize: 600000 },\n };\n\n if (!shouldUseNativeCodeLoading) {\n webpackConfig = withPlatformSourceMaps(webpackConfig, env);\n }\n\n if (isNative) {\n // https://github.com/webpack/webpack/blob/f06086c53b2277e421604c5cea6f32f5c5b6d117/declarations/WebpackOptions.d.ts#L504-L518\n webpackConfig.target = 'webworker';\n }\n\n if (isProd) {\n webpackConfig = withOptimizations(webpackConfig);\n } else {\n webpackConfig = withDevServer(webpackConfig, env, {\n allowedHost: argv.allowedHost,\n proxy: argv.proxy,\n });\n }\n\n if (!isNative) {\n webpackConfig = withNodeMocks(withAlias(webpackConfig, getAliases(env.projectRoot)));\n }\n\n return webpackConfig;\n}\n"]}
\No newline at end of file