mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
fix(vite): strip query strings for style chunk filenames (#25764)
This commit is contained in:
parent
75f05e95f2
commit
3ac8b18cb6
@ -2,7 +2,7 @@ import { pathToFileURL } from 'node:url'
|
||||
import type { Plugin } from 'vite'
|
||||
import { dirname, relative } from 'pathe'
|
||||
import { genImport, genObjectFromRawEntries } from 'knitwork'
|
||||
import { filename } from 'pathe/utils'
|
||||
import { filename as _filename } from 'pathe/utils'
|
||||
import { parseQuery, parseURL } from 'ufo'
|
||||
import type { Component } from '@nuxt/schema'
|
||||
import MagicString from 'magic-string'
|
||||
@ -235,3 +235,7 @@ export function ssrStylesPlugin (options: SSRStylePluginOptions): Plugin {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function filename (name: string) {
|
||||
return _filename(name.replace(/\?.+$/, ''))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user