You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0942086
Browse filesBrowse the repository at this point in the historyBrowse files
refactor: group resolving, loader, node, id and util sources
Eight more files leave `lib/` root: a new `lib/resolve/` takes `ResolverFactory`
and the two plugins that redirect a request before it reaches one
(`IgnorePlugin`, `NormalModuleReplacementPlugin`), while `LoaderOptionsPlugin`
and `LoaderTargetPlugin` join `lib/loaders/`, `NodeStuffPlugin` `lib/node/`,
`RecordIdsPlugin` `lib/ids/` and `RequestShortener` `lib/util/`.
`RequestShortener` keeps a re-export at its old path: `@nuxt/`- and
`@soda/friendly-errors-webpack-plugin` both declare webpack 5 support and
require it at the top level, for 1.6M weekly downloads. Nothing else here is
imported from outside — `LoaderTargetPlugin`'s one importer also requires
`lib/FunctionModulePlugin` and `lib/MultiEntryPlugin`, removed in webpack 5,
so it is recorded as unreachable rather than shimmed.
`schemas/plugins/IgnorePlugin.json` follows the file its `tsType` points at.
`types.d.ts` regenerates byte-identical.
Copy file name to clipboardExpand all lines: AGENTS.md
+10-3Lines changed: 10 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,17 +85,23 @@ The directory listings below are the canonical map of the repository. **Whenever
85
85
recording what each module exports and who uses it.
86
86
-`lib/hmr/` — Hot Module Replacement plugins.
87
87
-`lib/html/` — Experimental HTML support.
88
-
-`lib/ids/` — Module/chunk id assignment plugins.
88
+
-`lib/ids/` — Module/chunk id assignment plugins, and `RecordIdsPlugin`, which persists
89
+
the assignment across builds through `recordsPath`.
89
90
-`lib/javascript/` — JavaScript parsing (webpack's own ECMAScript parser, ported from acorn), generation, exports analysis. `syntax.js` serves every production a build reaches, so `grammar.js` (the full grammar) and `regexp.js` (the pattern validator) are installed onto the parser's prototype only when something asks for one — keep it that way and never `require` either from a path a build takes.
0 commit comments