Skip to content

Commit

Permalink
fix(language-plugin-pug): failed to load due to an invalid require path
Browse files Browse the repository at this point in the history
close #3930
  • Loading branch information
johnsoncodehk committed Mar 5, 2024
1 parent f0d3f4a commit 2f199a0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/language-plugin-pug/index.ts
Expand Up @@ -6,7 +6,7 @@ const plugin: VueLanguagePlugin = ({ modules }) => {

return {

name: require('../package.json').name,
name: require('./package.json').name,

version: 2,

Expand Down
7 changes: 7 additions & 0 deletions test-workspace/tsc/pug/main.vue
@@ -0,0 +1,7 @@
<template lang="pug">
div {{ msg }}
</template>

<script setup lang="ts">
const msg = 'Hello Pug';
</script>
11 changes: 11 additions & 0 deletions test-workspace/tsc/pug/tsconfig.json
@@ -0,0 +1,11 @@
{
"extends": "../../tsconfig.json",
"include": [
"**/*"
],
"vueCompilerOptions": {
"plugins": [
"../../../packages/language-plugin-pug"
]
},
}

0 comments on commit 2f199a0

Please sign in to comment.