Skip to content

Commit

Permalink
use NormalizedOutputOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Disservin committed Jul 27, 2023
1 parent 9dac35b commit f92b16f
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions packages/vite/src/node/plugins/reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,8 @@ export function buildReporterPlugin(config: ResolvedConfig): Plugin {
compressedCount = 0
},

renderChunk(code, chunk) {
const rollupOptionsOutput = config.build.rollupOptions.output
const inlineDynamic = (
Array.isArray(rollupOptionsOutput)
? rollupOptionsOutput[0]
: rollupOptionsOutput
)?.inlineDynamicImports

if (!inlineDynamic) {
renderChunk(code, chunk, options) {
if (!options.inlineDynamicImports) {
for (const id of chunk.moduleIds) {
const module = this.getModuleInfo(id)
if (!module) continue
Expand Down

0 comments on commit f92b16f

Please sign in to comment.