Buckets:
silverwolf-x/project / packages /next /src /build /webpack /plugins /wellknown-errors-plugin /parse-dynamic-code-evaluation-error.ts
| import type { webpack } from 'next/dist/compiled/webpack/webpack' | |
| import { formatModuleTrace, getModuleTrace } from './getModuleTrace' | |
| import { SimpleWebpackError } from './simpleWebpackError' | |
| export function getDynamicCodeEvaluationError( | |
| message: string, | |
| module: webpack.NormalModule, | |
| compilation: webpack.Compilation, | |
| compiler: webpack.Compiler | |
| ): SimpleWebpackError { | |
| const { moduleTrace } = getModuleTrace(module, compilation, compiler) | |
| const { formattedModuleTrace, lastInternalFileName, invalidImportMessage } = | |
| formatModuleTrace(compiler, moduleTrace) | |
| return new SimpleWebpackError( | |
| lastInternalFileName, | |
| message + | |
| invalidImportMessage + | |
| '\n\nImport trace for requested module:\n' + | |
| formattedModuleTrace | |
| ) | |
| } | |
Xet Storage Details
- Size:
- 764 Bytes
- Xet hash:
- d70afc1226c2883a442365d3a4e90f1f3f6b7fc05e79ae51b51a9b62c24ba07a
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.