@@ -8,12 +8,12 @@ import {
88import { assign , generateCodeFrame , isEmptyObject } from '@intlify/shared'
99import { createFilter } from '@rollup/pluginutils'
1010import createDebug from 'debug'
11- import { globSync } from 'tinyglobby'
1211import { genImport , genSafeVariableName } from 'knitwork'
1312import { findStaticImports } from 'mlly'
1413import { createHash } from 'node:crypto'
1514import fs from 'node:fs'
1615import { dirname , parse as parsePath , resolve } from 'node:path'
16+ import { globSync } from 'tinyglobby'
1717import { parse } from 'vue/compiler-sfc'
1818import { checkVuePlugin , error , getVitePlugin , raiseError , resolveNamespace , warn } from '../utils'
1919import { getVueCompiler , parseVueRequest } from '../vue'
@@ -60,7 +60,11 @@ export function resourcePlugin(opts: ResolvedOptions, meta: UnpluginContextMeta)
6060
6161 const resourcePaths = new Set < string > ( )
6262 for ( const inc of opts . include || [ ] ) {
63- for ( const resourcePath of globSync ( inc , { ignore : opts . exclude , expandDirectories : false } ) ) {
63+ for ( const resourcePath of globSync ( inc , {
64+ ignore : opts . exclude ,
65+ expandDirectories : false ,
66+ absolute : true
67+ } ) ) {
6468 resourcePaths . add ( resourcePath )
6569 }
6670 }
0 commit comments