File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
src/content/tutorial/1-vite-plugin
2-env-plugin/3-resolve-id-of-virtual-module Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ focus: /index.js
6
6
7
7
# Welcome to Vite Plugin tutorial
8
8
9
- Hey there, and welcome to Vite Plugin tutorial π!
9
+ Hey there, and welcome to Vite Plugin tutorial& nbsp ; π!
10
10
11
11
In this tutorial we'll go through steps for creating custom Vite plugins. We'll start by creating a custom Vite plugin for loading ` .yaml ` files.
12
12
@@ -28,4 +28,4 @@ const content = ["Initial content"];
28
28
export { content };
29
29
```
30
30
31
- At this point we should run into error when Vite fails to load ` .yaml ` file. β
31
+ At this point we should run into error when Vite fails to load ` .yaml ` file.& nbsp ; β
Original file line number Diff line number Diff line change @@ -34,4 +34,4 @@ Add required logic to Vite plugin's load hook:
34
34
- Convert contents of ` .yaml ` file into Javascript using ` parse ` from ` yaml ` package
35
35
- Serialize the Javascript object into ` string ` and return it as default export from the ` load ` hook
36
36
37
- Contents of ` content.yaml ` should appear in preview as JSON. β
37
+ Contents of ` content.yaml ` should appear in preview as JSON.& nbsp ; β
Original file line number Diff line number Diff line change @@ -63,4 +63,4 @@ To fix this we'll need to apply the `\0` prefix in the `load()` hook as well:
63
63
}
64
64
` ` `
65
65
66
- The code returned from ` load ` hook is now visible in the browser! β
66
+ The code returned from ` load ` hook is now visible in the browser! β
You canβt perform that action at this time.
0 commit comments