Unverified Commit 57bd3232 authored by Jimmy Lai's avatar Jimmy Lai Committed by GitHub

misc: refactor handleExternals (#56161)

This PR just moves handleExternal off the main webpack config file for better readability.
parent f95f8c52
This diff is collapsed.
This diff is collapsed.
...@@ -14,13 +14,13 @@ import { webpack, sources } from 'next/dist/compiled/webpack/webpack' ...@@ -14,13 +14,13 @@ import { webpack, sources } from 'next/dist/compiled/webpack/webpack'
import { import {
NODE_ESM_RESOLVE_OPTIONS, NODE_ESM_RESOLVE_OPTIONS,
NODE_RESOLVE_OPTIONS, NODE_RESOLVE_OPTIONS,
resolveExternal,
} from '../../webpack-config' } from '../../webpack-config'
import { NextConfigComplete } from '../../../server/config-shared' import { NextConfigComplete } from '../../../server/config-shared'
import { loadBindings } from '../../swc' import { loadBindings } from '../../swc'
import { isMatch } from 'next/dist/compiled/micromatch' import { isMatch } from 'next/dist/compiled/micromatch'
import { getModuleBuildInfo } from '../loaders/get-module-build-info' import { getModuleBuildInfo } from '../loaders/get-module-build-info'
import { getPageFilePath } from '../../entries' import { getPageFilePath } from '../../entries'
import { resolveExternal } from '../../handle-externals'
const PLUGIN_NAME = 'TraceEntryPointsPlugin' const PLUGIN_NAME = 'TraceEntryPointsPlugin'
export const TRACE_IGNORES = [ export const TRACE_IGNORES = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment