Skip to content

Commit

Permalink
Export Vue components as default, weird Vite bug I think
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwathan committed Jun 1, 2020
1 parent 7050ce6 commit d424e53
Show file tree
Hide file tree
Showing 353 changed files with 360 additions and 354 deletions.
10 changes: 8 additions & 2 deletions scripts/build-vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ rimraf('./vue/outline/*')
})
.then((component) => {
const fileName = `${camelcase(file.replace(/\.svg$/, ''), { pascalCase: true })}.js`
const content = dedent(component)
const content = dedent(component).replace(
'export function',
'export default function'
)
return fs.writeFile(`./vue/solid/${fileName}`, content).then(() => fileName)
})
})
Expand All @@ -55,7 +58,10 @@ rimraf('./vue/outline/*')
})
.then((component) => {
const fileName = `${camelcase(file.replace(/\.svg$/, ''), { pascalCase: true })}.js`
const content = dedent(component)
const content = dedent(component).replace(
'export function',
'export default function'
)
return fs.writeFile(`./vue/outline/${fileName}`, content).then(() => fileName)
})
})
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/Adjustments.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/Annotation.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/Archive.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/ArrowCircleDown.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/ArrowCircleLeft.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/ArrowCircleRight.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/ArrowCircleUp.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/ArrowDown.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/ArrowLeft.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/ArrowNarrowDown.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/ArrowNarrowLeft.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/ArrowNarrowRight.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/ArrowNarrowUp.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/ArrowRight.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/ArrowUp.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/ArrowsExpand.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/AtSymbol.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/BadgeCheck.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/Ban.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/Bell.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/BookOpen.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/Bookmark.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/BookmarkAlt.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/Briefcase.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/Calendar.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/Camera.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/Cash.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/ChartBar.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/ChartPie.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/ChartSquareBar.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/Chat.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/ChatAlt.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/ChatAlt2.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/Check.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/CheckCircle.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/ChevronDown.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/ChevronLeft.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/ChevronRight.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/ChevronUp.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/Clipboard.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/ClipboardCheck.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/ClipboardCopy.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/ClipboardList.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/Clock.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/CloudDownload.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/CloudUpload.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
2 changes: 1 addition & 1 deletion vue/outline/Code.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue"

export function render(_ctx, _cache) {
export default function render(_ctx, _cache) {
return (_openBlock(), _createBlock("svg", {
fill: "none",
viewBox: "0 0 24 24",
Expand Down
Loading

0 comments on commit d424e53

Please sign in to comment.