@tileflow/vite 0.1.0-alpha.23 → 0.1.0-alpha.25
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 +9 -6
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -48,9 +48,9 @@ export default defineConfig({plugins: [tileflow()]});
|
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
Run the application's normal development or production-build command. At the default base, the
|
|
51
|
-
component can use `source={{
|
|
52
|
-
|
|
53
|
-
Config loading executes trusted imports and is not a sandbox.
|
|
51
|
+
component can use `source={{map: 'madrid'}}`; it reads `/tileflow/manifest.json`. The source selects
|
|
52
|
+
a Tileflow map, not a renderer or direct style. Do not also run a CLI build that overwrites the same
|
|
53
|
+
delivery manifest. Config loading executes trusted imports and is not a sandbox.
|
|
54
54
|
|
|
55
55
|
## Configure the worker
|
|
56
56
|
|
|
@@ -86,12 +86,15 @@ export default defineConfig({
|
|
|
86
86
|
|
|
87
87
|
In the application, pass the resulting public URL explicitly:
|
|
88
88
|
|
|
89
|
+
<!-- docs:check -->
|
|
90
|
+
|
|
89
91
|
```ts
|
|
92
|
+
import type {TileflowRuntimeSource} from '@tileflow/core/runtime';
|
|
93
|
+
|
|
90
94
|
const source = {
|
|
91
|
-
kind: 'tileflow' as const,
|
|
92
95
|
map: 'madrid',
|
|
93
96
|
manifestUrl: '/app/maps/manifest.json',
|
|
94
|
-
};
|
|
97
|
+
} satisfies TileflowRuntimeSource;
|
|
95
98
|
```
|
|
96
99
|
|
|
97
100
|
Development and production expose the same prefixed URL. The browser does not infer Vite's base;
|
|
@@ -112,7 +115,7 @@ and an `app-desktop` application scene defined, run in another terminal:
|
|
|
112
115
|
npx tileflow capture app-desktop --url http://127.0.0.1:5173/ --json
|
|
113
116
|
```
|
|
114
117
|
|
|
115
|
-
Use the application's actual loopback URL. Do not start a second `tileflow
|
|
118
|
+
Use the application's actual loopback URL. Do not start a second `tileflow preview` listener.
|
|
116
119
|
Local preparation needs no Tileflow key; rendering can still fetch remote map resources.
|
|
117
120
|
|
|
118
121
|
CI tests the accepted Vite major boundaries with packed packages and production builds. Future
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tileflow/vite",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.25",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Vite plugin for Tileflow map style development and static artifacts.",
|
|
6
6
|
"engines": {
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@tileflow/dev": ">=0.1.0-alpha.
|
|
44
|
+
"@tileflow/dev": ">=0.1.0-alpha.30 <0.1.0-beta.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"vite": ">=5 <9"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"vite": "^8.0.16",
|
|
51
|
-
"@tileflow/maps": "0.1.0-alpha.
|
|
51
|
+
"@tileflow/maps": "0.1.0-alpha.8"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"build": "tsup src/index.ts --format esm --dts --clean --external vite --platform node",
|