Skip to content

Commit ca7d8bc

Browse files
author
Sébastien Chopin
committed
No extension needed to import vue files
1 parent 5b3dc23 commit ca7d8bc

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

examples/nested-components/pages/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
</template>
2323

2424
<script>
25-
import Post from '~components/post.vue'
26-
import vP from '~components/paragraph.vue'
25+
import Post from '~components/post'
26+
import vP from '~components/paragraph'
2727
const vHr = { render: (h) => h('hr', { class: 'hr' }) }
2828
2929
export default {

lib/build/webpack/base.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ module.exports = function () {
2424
publicPath: urlJoin(this.options.router.base, '/_nuxt/')
2525
},
2626
resolve: {
27+
extensions: ['.js', '.vue'],
2728
// Disable for now
2829
alias: {
2930
'~': join(this.srcDir),

0 commit comments

Comments
 (0)