Skip to content

Commit

Permalink
feat(legacy): support any separator before hash in fileNames (#15170)
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev authored Nov 29, 2023
1 parent 73ef074 commit ecab41a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-legacy/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const legacyEnvVarMarker = `__VITE_IS_LEGACY__`
const _require = createRequire(import.meta.url)

const nonLeadingHashInFileNameRE = /[^/]+\[hash(?::\d+)?\]/
const prefixedHashInFileNameRE = /[.-]?\[hash(:\d+)?\]/
const prefixedHashInFileNameRE = /\W?\[hash(:\d+)?\]/

function viteLegacyPlugin(options: Options = {}): Plugin[] {
let config: ResolvedConfig
Expand Down

0 comments on commit ecab41a

Please sign in to comment.