-
-
Notifications
You must be signed in to change notification settings - Fork 370
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3ba9791
commit 5705980
Showing
10 changed files
with
15 additions
and
64 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
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
const components = import.meta.glob<{ default: any }>('./*.vue', { eager: true }) | ||
const raws = import.meta.glob<string>('./*.vue', { as: 'raw', eager: true }) | ||
const components = import.meta.glob<{ default: any }>('./*.vue', { eager: true, import: 'default' }) | ||
const raws = import.meta.glob<string>('./*.vue', { eager: true, query: '?raw', import: 'default' }) | ||
|
||
export default Object.keys(components).map((id) => ({ | ||
component: components[id].default, | ||
component: components[id], | ||
raw: raws[id], | ||
language: '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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
const components = import.meta.glob<{ default: any }>('./*.vue', { eager: true }) | ||
const raws = import.meta.glob<string>('./*.vue', { as: 'raw', eager: true }) | ||
const components = import.meta.glob<{ default: any }>('./*.vue', { eager: true, import: 'default' }) | ||
const raws = import.meta.glob<string>('./*.vue', { eager: true, query: '?raw', import: 'default' }) | ||
|
||
export default Object.keys(components).map((id) => ({ | ||
component: components[id].default, | ||
component: components[id], | ||
raw: raws[id], | ||
language: '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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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