Skip to content

Commit

Permalink
chore: fix some typos (#2715)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 authored Mar 27, 2021
1 parent 94b375e commit 91d2174
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/plugin-vue/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,15 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin {
},

async resolveId(id, importer) {
// serve subpart requests (*?vue) as virtual modules
// serve sub-part requests (*?vue) as virtual modules
if (parseVueRequest(id).query.vue) {
return id
}
},

load(id, ssr = !!options.ssr) {
const { filename, query } = parseVueRequest(id)
// select corresponding block for subpart virtual modules
// select corresponding block for sub-part virtual modules
if (query.vue) {
if (query.src) {
return fs.readFileSync(filename, 'utf-8')
Expand Down

0 comments on commit 91d2174

Please sign in to comment.