Skip to content

Commit

Permalink
chore: have chunks in a separate folder (#4491)
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Nov 14, 2023
1 parent 9abde20 commit ac3d300
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/vitest/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const require = createRequire(import.meta.url)
const pkg = require('./package.json')

const entries = [
'src/paths.ts',
'src/index.ts',
'src/node/cli.ts',
'src/node/cli-wrapper.ts',
Expand Down Expand Up @@ -103,9 +104,9 @@ export default ({ watch }) => defineConfig([
.filter(i => !['src', 'index', 'dist', 'node_modules'].some(j => i.includes(j)) && i.match(/^[\w_-]+$/))),
)
if (parts.length)
return `chunk-${parts.slice(-2).join('-')}.[hash].js`
return `chunks/${parts.slice(-2).join('-')}.[hash].js`
}
return 'vendor-[name].[hash].js'
return 'vendor/[name].[hash].js'
},
},
external,
Expand Down

0 comments on commit ac3d300

Please sign in to comment.