@bamboocss/vite 1.21.0 → 1.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client.d.ts +13 -0
- package/dist/index.cjs +530 -28
- package/dist/index.d.cts +52 -7
- package/dist/index.d.mts +52 -7
- package/dist/index.mjs +531 -31
- package/package.json +12 -10
package/client.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ambient declaration for the virtual stylesheet, so `import 'virtual:bamboo.css'`
|
|
3
|
+
* typechecks.
|
|
4
|
+
*
|
|
5
|
+
* Reference it once, next to the `vite/client` reference a vite project already has:
|
|
6
|
+
*
|
|
7
|
+
* /// <reference types="@bamboocss/vite/client" />
|
|
8
|
+
*
|
|
9
|
+
* Shipped as a separate entry rather than folded into the package's own types, because a
|
|
10
|
+
* `declare module` in the main entry would apply to every consumer of the exported API —
|
|
11
|
+
* including builds that do not use the plugin.
|
|
12
|
+
*/
|
|
13
|
+
declare module 'virtual:bamboo.css' {}
|