chore: make ui bundle script windows compatible (#7197)

This commit is contained in:
Dan Ribbens
2024-07-22 13:10:07 -04:00
committed by GitHub
parent c45fbb9149
commit 7dab75d85e

View File

@@ -40,7 +40,7 @@ const useClientPlugin = {
contents = directive + '\n' + contents // Prepend our use client directive
if (originalWrite) {
const filePath = path.join(build.initialOptions.outdir, file.path.split('/').pop())
const filePath = path.join(build.initialOptions.outdir, path.basename(file.path))
const dirPath = path.dirname(filePath)
if (!fs.existsSync(dirPath)) {