@marko/vite 3.1.6 → 4.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/README.md +0 -20
- package/dist/index.d.ts +3 -4
- package/dist/index.mjs +674 -103
- package/dist/manifest-generator.d.ts +1 -1
- package/dist/read-once-persisted-store.d.ts +6 -0
- package/dist/render-assets-runtime.d.ts +6 -0
- package/dist/serializer.d.ts +1 -1
- package/dist/server-entry-template.d.ts +1 -1
- package/package.json +20 -30
- package/dist/babel-plugin-cjs-interop.js +0 -117
- package/dist/babel-plugin-cjs-interop.mjs +0 -7
- package/dist/chunk-2E5QX7AF.mjs +0 -83
- package/dist/chunk-6IJ5UJ3N.mjs +0 -29
- package/dist/chunk-AEF7OQDP.mjs +0 -93
- package/dist/chunk-DCBMHGK4.mjs +0 -20
- package/dist/chunk-FCWFM7VD.mjs +0 -63
- package/dist/chunk-J6VIHWF4.mjs +0 -85
- package/dist/chunk-KIYHBIE6.mjs +0 -0
- package/dist/chunk-NTHVNXFC.mjs +0 -104
- package/dist/chunk-Y3E2OP42.mjs +0 -61
- package/dist/components/vite.marko +0 -74
- package/dist/esbuild-plugin.js +0 -113
- package/dist/esbuild-plugin.mjs +0 -6
- package/dist/index.js +0 -687
- package/dist/manifest-generator.js +0 -113
- package/dist/manifest-generator.mjs +0 -9
- package/dist/render-assets-transform.js +0 -41
- package/dist/render-assets-transform.mjs +0 -22
- package/dist/resolve.js +0 -94
- package/dist/resolve.mjs +0 -8
- package/dist/serializer.js +0 -127
- package/dist/serializer.mjs +0 -6
- package/dist/server-entry-template.js +0 -57
- package/dist/server-entry-template.mjs +0 -6
- package/dist/store/file-store.d.ts +0 -11
- package/dist/store/file-store.js +0 -91
- package/dist/store/file-store.mjs +0 -6
- package/dist/store/index.d.ts +0 -3
- package/dist/store/index.js +0 -41
- package/dist/store/index.mjs +0 -11
- package/dist/store/memory-store.d.ts +0 -8
- package/dist/store/memory-store.js +0 -38
- package/dist/store/memory-store.mjs +0 -6
- package/dist/store/types.d.ts +0 -5
- package/dist/store/types.js +0 -16
- package/dist/store/types.mjs +0 -0
package/README.md
CHANGED
|
@@ -118,26 +118,6 @@ marko({ runtimeId: "MY_MARKO_RUNTIME_ID" });
|
|
|
118
118
|
|
|
119
119
|
Set this to `false` to opt out of [linked mode](#linked-mode). When this is false, the plugin will only handle resolving and transforming `.marko` files.
|
|
120
120
|
|
|
121
|
-
### options.store
|
|
122
|
-
|
|
123
|
-
Storage mechanism to preserve data between SSR and client builds when building in linked mode. Two implementations are available:
|
|
124
|
-
|
|
125
|
-
- FileStore _(default)_
|
|
126
|
-
|
|
127
|
-
```js
|
|
128
|
-
import { FileStore } from "@marko/vite";
|
|
129
|
-
const store = new FileStore();
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
Reads/writes data to the file system. Use this when running the SSR and client builds in seperate processes such as when using Vite from the command line or npm scripts.
|
|
133
|
-
|
|
134
|
-
- MemoryStore
|
|
135
|
-
```js
|
|
136
|
-
import { MemoryStore } from "@marko/vite";
|
|
137
|
-
const store = new MemoryStore();
|
|
138
|
-
```
|
|
139
|
-
Reads/writes data to memory. This option can be used when building with Vite programatically.
|
|
140
|
-
|
|
141
121
|
### options.basePathVar
|
|
142
122
|
|
|
143
123
|
Set this to variable/identifier which all asset base paths should be prefixed with. All asset paths used by Vite will either be relative (if possible) or prefixed with this identifier. The identifier must be defined as a string before any other server code executes.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type * as vite from "vite";
|
|
2
2
|
import type * as Compiler from "@marko/compiler";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
export declare namespace API {
|
|
4
|
+
type getMarkoAssetCodeForEntry = (id: string) => string | void;
|
|
5
|
+
}
|
|
6
6
|
export interface Options {
|
|
7
7
|
linked?: boolean;
|
|
8
8
|
compiler?: string;
|
|
@@ -10,6 +10,5 @@ export interface Options {
|
|
|
10
10
|
translator?: string;
|
|
11
11
|
basePathVar?: string;
|
|
12
12
|
babelConfig?: Compiler.Config["babelConfig"];
|
|
13
|
-
store?: BuildStore;
|
|
14
13
|
}
|
|
15
14
|
export default function markoPlugin(opts?: Options): vite.Plugin[];
|