Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into docs/social-image-big-card
- Loading branch information
Showing
16 changed files
with
167 additions
and
177 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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
// https://github.com/tinylibs/tinybench | ||
import path from 'node:path' | ||
import url from 'node:url' | ||
import { performance } from 'node:perf_hooks' | ||
import * as rolldown from '@rolldown/node' | ||
|
||
const dirname = path.dirname(url.fileURLToPath(import.meta.url)) | ||
const start = performance.now() | ||
|
||
const build = await rolldown.rolldown({ | ||
input: path.join(dirname, 'index.js'), | ||
// @ts-ignore | ||
cwd: dirname, | ||
input: './index.js', | ||
resolve: { | ||
conditionNames: ['node', 'import'], | ||
alias: {}, | ||
} | ||
// This needs to be explicitly set for now because oxc resolver doesn't | ||
// assume default exports conditions. Rolldown will ship with a default that | ||
// aligns with Vite in the future. | ||
conditionNames: ['import'], | ||
}, | ||
}) | ||
|
||
await build.write() | ||
|
||
console.log(`bundled in ${(performance.now() - start).toFixed(2)}ms`) |
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,3 +1,3 @@ | ||
import * as vue from 'vue' | ||
import { createApp } from 'vue' | ||
|
||
export default vue | ||
export default createApp({}) |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { createApp } from 'vue' | ||
import { createRouter, createWebHistory } from 'vue-router' | ||
|
||
const router = createRouter({ | ||
history: createWebHistory(), | ||
}) | ||
const app = createApp({}) | ||
|
||
app.use(router) | ||
app.mount('#app') |
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 |
---|---|---|
|
@@ -37,4 +37,4 @@ | |
"unbuild": "^2.0.0", | ||
"vitest": "^0.34.6" | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Docs | ||
|
||
Rolldown is documented using [VitePress](https://vitepress.dev). You can find the source code for the site in `web/docs`. Check out the [Markdown Extensions Guide](https://vitepress.dev/guide/markdown) to learn about VitePress features. | ||
|
||
To contribute to the documentation, you can start the docs dev server running on the project root: | ||
|
||
``` | ||
yarn docs | ||
``` | ||
|
||
You can then edit the markdown files and see your changes instantly. The docs structure is configured at `web/docs/.vitepress/config.ts` (see the [Site Config Reference](https://vitepress.dev/reference/site-config)). | ||
|
||
If you'd like to review the built site, run in the project root: | ||
|
||
``` | ||
yarn docs:build | ||
yarn docs:preview | ||
``` | ||
|
||
This step isn't needed when contributing if you aren't modifying the docs build setup. |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.