Skip to content

Commit

Permalink
fix(build): append css
Browse files Browse the repository at this point in the history
  • Loading branch information
m0ksem committed Oct 17, 2023
1 parent 5acb13e commit 98960dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ui/build/plugins/append-component-css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ const parsePath = (path: string) => {
const isVuesticComponent = (filename: string) => {
// Va[ComponentName].vue_vue_type_script_lang.mjs
// Va[ComponentName].vue_vue_type_script_setup_true_lang.mjs
const isScriptFile = /Va\w*.vue_vue_type_script\w*_lang.mjs$$/.test(filename)
const isScriptFile = /Va\w*.vue_vue_type_script\w*_lang.m?js$/.test(filename)
if (isScriptFile) {
return true
}

// Va[ComponentName].mjs
const isTemplateFile = /Va\w*\.mjs$/.test(filename)
const isTemplateFile = /Va\w*\.m?js$/.test(filename)

// Va[ComponentName].vue_vue_type_script_lang.mjs
const scriptFilePath = filename.replace('.mjs', '.vue_vue_type_script_lang.mjs')
Expand Down

0 comments on commit 98960dc

Please sign in to comment.