You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8a4c19c
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/guide/api-plugin.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,8 +43,8 @@ See also [Virtual Modules Convention](https://rolldown.rs/apis/plugin-api#virtua
43
43
Users will add plugins to the project `devDependencies` and configure them using the `plugins` array option.
44
44
45
45
```js [vite.config.js]
46
-
importvitePluginfrom'vite-plugin-feature'
47
46
importrollupPluginfrom'rollup-plugin-feature'
47
+
importvitePluginfrom'vite-plugin-feature'
48
48
49
49
exportdefaultdefineConfig({
50
50
plugins: [vitePlugin(), rollupPlugin()],
@@ -56,9 +56,9 @@ Falsy plugins will be ignored, which can be used to easily activate or deactivat
56
56
`plugins` also accepts presets including several plugins as a single element. This is useful for complex features (like framework integration) that are implemented using several plugins. The array will be flattened internally.
Copy file name to clipboardExpand all lines: docs/guide/build.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -202,8 +202,8 @@ export default defineConfig({
202
202
The entry file would contain exports that can be imported by users of your package:
203
203
204
204
```js [lib/main.js]
205
-
importFoofrom'./Foo.vue'
206
205
importBarfrom'./Bar.vue'
206
+
importFoofrom'./Foo.vue'
207
207
export { Foo, Bar }
208
208
```
209
209
@@ -334,8 +334,8 @@ experimental: {
334
334
If the hashed assets and public files aren't deployed together, options for each group can be defined independently using asset `type` included in the second `context` param given to the function.
0 commit comments