@weapp-vite/web 0.0.2 → 1.0.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/dist/index.mjs +340 -285
- package/dist/plugin.mjs +338 -283
- package/dist/runtime/index.mjs +2 -2
- package/package.json +15 -12
- package/dist/index.cjs +0 -15772
- package/dist/index.d.cts +0 -4
- package/dist/plugin-D_a0z32j.d.cts +0 -24
- package/dist/plugin.cjs +0 -14634
- package/dist/plugin.d.cts +0 -2
- package/dist/runtime/index.cjs +0 -1155
- package/dist/runtime/index.d.cts +0 -89
package/dist/index.d.cts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { W as WeappWebPluginOptions, t as transformWxssToCss, w as weappWebPlugin } from './plugin-D_a0z32j.cjs';
|
|
2
|
-
export { TemplateRenderer, TemplateScope, createTemplate, defineComponent, initializePageRoutes, injectStyle, navigateBack, navigateTo, reLaunch, redirectTo, registerApp, registerComponent, registerPage, removeStyle, renderTemplate, switchTab } from './runtime/index.cjs';
|
|
3
|
-
import 'vite';
|
|
4
|
-
import 'domhandler';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Plugin } from 'vite';
|
|
2
|
-
|
|
3
|
-
interface WxssTransformOptions {
|
|
4
|
-
/**
|
|
5
|
-
* How many CSS pixels should a single rpx represent.
|
|
6
|
-
* Default approximates a 750rpx layout projected to 375px screens.
|
|
7
|
-
*/
|
|
8
|
-
pxPerRpx?: number;
|
|
9
|
-
}
|
|
10
|
-
interface WxssTransformResult {
|
|
11
|
-
css: string;
|
|
12
|
-
}
|
|
13
|
-
declare function transformWxssToCss(source: string, options?: WxssTransformOptions): WxssTransformResult;
|
|
14
|
-
|
|
15
|
-
interface WeappWebPluginOptions {
|
|
16
|
-
wxss?: WxssTransformOptions;
|
|
17
|
-
/**
|
|
18
|
-
* Source root of the mini-program project. Defaults to `<root>/src`.
|
|
19
|
-
*/
|
|
20
|
-
srcDir?: string;
|
|
21
|
-
}
|
|
22
|
-
declare function weappWebPlugin(options?: WeappWebPluginOptions): Plugin;
|
|
23
|
-
|
|
24
|
-
export { type WeappWebPluginOptions as W, transformWxssToCss as t, weappWebPlugin as w };
|