module-develop-kit 1.0.3 → 1.0.4
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.
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const a = '"use strict";!function(){var a=Date.now(),c=location.search.match(/(\\?|\\&)_t\\=[0-9]{0,13}/i);if(c){var e=c[0].slice(3);a-e>1e3&&(location.search=location.search.replace(e,a))}else location.href=location.href+(location.search?"&_t=":"?_t=")+a}();';
|
|
2
|
+
export {
|
|
3
|
+
a as default
|
|
4
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import e from "../../commonjs-virtual-dir/_virtual_router-random-params.js";
|
|
2
|
+
const a = () => ({
|
|
3
|
+
name: "vite-plugin-router-random-params",
|
|
4
|
+
enforce: "post",
|
|
5
|
+
transformIndexHtml(r) {
|
|
6
|
+
return {
|
|
7
|
+
html: r,
|
|
8
|
+
tags: [
|
|
9
|
+
{
|
|
10
|
+
tag: "script",
|
|
11
|
+
children: e,
|
|
12
|
+
// default head-prepend
|
|
13
|
+
injectTo: "head-prepend"
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
export {
|
|
20
|
+
a as vitePluginRouterRandomParams
|
|
21
|
+
};
|
|
@@ -40,4 +40,6 @@ export declare interface IVitePluginLegacyOptions extends Options {
|
|
|
40
40
|
*/
|
|
41
41
|
export declare const vitePluginCompatibilityDetection: (options?: IVitePluginCompatibilityDetectionOptions) => Plugin_2;
|
|
42
42
|
|
|
43
|
+
export declare const vitePluginRouterRandomParams: () => Plugin_2;
|
|
44
|
+
|
|
43
45
|
export { }
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { getCompatibilityPlugins as o } from "../src/vite-plugins/getCompatibilityPlugins.js";
|
|
2
|
-
import { vitePluginCompatibilityDetection as
|
|
2
|
+
import { vitePluginCompatibilityDetection as r } from "../src/vite-plugins/vitePluginCompatibilityDetection.js";
|
|
3
|
+
import { vitePluginRouterRandomParams as a } from "../src/vite-plugins/vitePluginRouterRandomParams.js";
|
|
3
4
|
export {
|
|
4
5
|
o as getCompatibilityPlugins,
|
|
5
|
-
|
|
6
|
+
r as vitePluginCompatibilityDetection,
|
|
7
|
+
a as vitePluginRouterRandomParams
|
|
6
8
|
};
|