Skip to content

Commit

Permalink
fix(build): append css to non-script components
Browse files Browse the repository at this point in the history
  • Loading branch information
m0ksem committed Oct 31, 2023
1 parent 05614bc commit 3deef37
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 @@ -31,8 +31,8 @@ const isVuesticComponent = (filename: string) => {
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')
const scriptSetupFilePath = filename.replace('.mjs', '.vue_vue_type_script_setup_true_lang.mjs')
const scriptFilePath = filename.replace(/\.(mjs|js)/, '.vue_vue_type_script_lang.mjs')
const scriptSetupFilePath = filename.replace(/\.(mjs|js)/, '.vue_vue_type_script_setup_true_lang.mjs')

const haveScript = existsSync(scriptFilePath) || existsSync(scriptSetupFilePath)

Expand Down

0 comments on commit 3deef37

Please sign in to comment.