(this: RollupContext, options: RollupBuildOptions)
| 997 | } |
| 998 | // a production build reads the bundle from the first module it transforms |
| 999 | function rollupBuildStart(this: RollupContext, options: RollupBuildOptions) { |
| 1000 | startBuild.call(this) |
| 1001 | transformersAfter = laterTransformersOf(options.plugins ?? []) |
| 1002 | // as ark.json may be written later |
| 1003 | for (const path of settingsPathsOf(settingsRead?.cwd ?? process.cwd())) |
| 1004 | this.addWatchFile(path) |
| 1005 | const build = buildOf(this) |
| 1006 | scansByBuild.delete(build) |
| 1007 | pendingScans.delete(build) |
| 1008 | othersByBuild.delete(build) |
| 1009 | if (isServing || !prunesIn(!!environment?.production)) return |
| 1010 | const unread = unreadDefineOf(definedByBundler) |
| 1011 | if (unread) return warnOnce(this, writeUnprunedMessage(unread)) |
| 1012 | othersByBuild.set(build, new Map()) |
| 1013 | pendingScans.set(build, { |
| 1014 | inputs: Object.values(options.input), |
| 1015 | arrivals: new Map(), |
| 1016 | mappings: new Map() |
| 1017 | }) |
| 1018 | } |
| 1019 | const scanOf = ( |
| 1020 | context: RollupContext, |
| 1021 | file: string, |
nothing calls this directly
no test coverage detected