@cloudflare/vite-plugin 0.1.7 → 0.1.8
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.js +6 -4
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1656,7 +1656,7 @@ function getDevMiniflareOptions(resolvedPluginConfig, viteDevServer) {
|
|
|
1656
1656
|
const workflowEntrypointClassNames = workerToWorkflowEntrypointClassNamesMap.get(workerOptions.name);
|
|
1657
1657
|
assert4(
|
|
1658
1658
|
workflowEntrypointClassNames,
|
|
1659
|
-
`WorkflowEntrypoint class names not found for worker ${workerOptions.name}`
|
|
1659
|
+
`WorkflowEntrypoint class names not found for worker: ${workerOptions.name}`
|
|
1660
1660
|
);
|
|
1661
1661
|
for (const className of [...workflowEntrypointClassNames].sort()) {
|
|
1662
1662
|
wrappers.push(
|
|
@@ -1692,17 +1692,19 @@ function getDevMiniflareOptions(resolvedPluginConfig, viteDevServer) {
|
|
|
1692
1692
|
);
|
|
1693
1693
|
const moduleRE = new RegExp(MODULE_PATTERN);
|
|
1694
1694
|
const match = moduleRE.exec(rawSpecifier);
|
|
1695
|
-
assert4(match, `Unexpected error: no match for module ${rawSpecifier}.`);
|
|
1695
|
+
assert4(match, `Unexpected error: no match for module: ${rawSpecifier}.`);
|
|
1696
1696
|
const [full, moduleType, modulePath] = match;
|
|
1697
1697
|
assert4(
|
|
1698
1698
|
modulePath,
|
|
1699
|
-
`Unexpected error: module path not found in reference ${full}.`
|
|
1699
|
+
`Unexpected error: module path not found in reference: ${full}.`
|
|
1700
1700
|
);
|
|
1701
1701
|
let source;
|
|
1702
1702
|
try {
|
|
1703
1703
|
source = fs2.readFileSync(modulePath);
|
|
1704
1704
|
} catch (error) {
|
|
1705
|
-
throw new Error(
|
|
1705
|
+
throw new Error(
|
|
1706
|
+
`Import "${modulePath}" not found. Does the file exist?`
|
|
1707
|
+
);
|
|
1706
1708
|
}
|
|
1707
1709
|
return MiniflareResponse.json({
|
|
1708
1710
|
// Cap'n Proto expects byte arrays for `:Data` typed fields from JSON
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudflare/vite-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Cloudflare plugin for Vite",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@hattip/adapter-node": "^0.0.49",
|
|
38
38
|
"unenv": "2.0.0-rc.1",
|
|
39
39
|
"ws": "8.18.0",
|
|
40
|
-
"miniflare": "3.20250214.
|
|
40
|
+
"miniflare": "3.20250214.2"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@cloudflare/workers-types": "^4.20250214.0",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"undici": "^5.28.5",
|
|
51
51
|
"vite": "^6.1.0",
|
|
52
52
|
"vitest": "~3.0.5",
|
|
53
|
-
"@cloudflare/mock-npm-registry": "0.0.0",
|
|
54
53
|
"@cloudflare/workers-shared": "0.14.4",
|
|
55
|
-
"@cloudflare/
|
|
56
|
-
"wrangler": "3.
|
|
54
|
+
"@cloudflare/mock-npm-registry": "0.0.0",
|
|
55
|
+
"wrangler": "3.112.0",
|
|
56
|
+
"@cloudflare/workers-tsconfig": "0.0.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"vite": "^6.1.0",
|