This repository has been archived by the owner on Jan 18, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: avoid adding render function when no template in an SFC (#387)
* test: make simple test more precise * test: add the no-template example for test * fix: when an SFC has no template leave render * test: fix import example * fix: missed template point * tests: add missing dependencies necessary for test
- Loading branch information
1 parent
3222451
commit 6960203
Showing
8 changed files
with
1,152 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "simple", | ||
"version": "0.0.0", | ||
"private": true, | ||
"scripts": { | ||
"build": "rollup -c" | ||
}, | ||
"dependencies": { | ||
"rollup": "^2.10.9", | ||
"rollup-plugin-vue": "link:../.." | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import VuePlugin from 'rollup-plugin-vue' | ||
|
||
export default [ | ||
{ | ||
input: 'src/HelloWorld.vue', | ||
output: { | ||
file: 'dist/HelloWorld.js', | ||
format: 'esm', | ||
sourcemap: 'inline', | ||
}, | ||
plugins: [VuePlugin()], | ||
external: ['vue'], | ||
}, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<script> | ||
import { h } from 'vue' | ||
export default { | ||
props: ['name'], | ||
render() { | ||
return h('div', 'my render') | ||
}, | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.