@base44-preview/vite-plugin 1.0.36-pr.122.6d86015 → 1.0.36-pr.122.cc41b41

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.
@@ -1 +1 @@
1
- {"version":3,"file":"base44-runtime-plugin.d.ts","sourceRoot":"","sources":["../src/base44-runtime-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAkFnC,wBAAgB,mBAAmB,IAAI,MAAM,CA6B5C"}
1
+ {"version":3,"file":"base44-runtime-plugin.d.ts","sourceRoot":"","sources":["../src/base44-runtime-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AA4EnC,wBAAgB,mBAAmB,IAAI,MAAM,CA0B5C"}
@@ -24,18 +24,13 @@ const SPECIFIER = "base44:runtime";
24
24
  // Rollup convention: a resolved virtual id starts with NUL so no other plugin
25
25
  // (and no filesystem lookup) tries to claim it.
26
26
  const RESOLVED = "\0base44:runtime";
27
- // Reserved so a server route importing one fails with an explanation instead of
28
- // a bare "failed to resolve import". Both need bindings on the deployed script
29
- // that full-stack uploads do not carry yet, so neither can work by resolving a
30
- // module here — see the PR description.
27
+ // Reserved so a route importing it fails with an explanation instead of a bare
28
+ // "failed to resolve import". Actors are never imported — they live in the app's
29
+ // actors directory, in server routes exactly as in backend functions.
31
30
  const ACTORS_REASON = "Actors are defined in the app's actors directory, not imported into a route.";
32
- const PRIVATE_DATA_SOURCES_REASON = "Private data sources are not wired into server routes.";
33
31
  function unsupportedReason(id) {
34
32
  if (id === "base44:runtime/actors")
35
33
  return ACTORS_REASON;
36
- if (id === "base44:private-data-sources" || id.startsWith("base44:private-data-sources/")) {
37
- return PRIVATE_DATA_SOURCES_REASON;
38
- }
39
34
  return null;
40
35
  }
41
36
  /**
@@ -88,8 +83,7 @@ export function base44RuntimePlugin() {
88
83
  // `cloudflare:workers` has no browser equivalent, so a client-side import
89
84
  // would bundle a module that cannot run. Fail with the reason instead.
90
85
  if (this.environment?.name === "client") {
91
- this.error(`"${SPECIFIER}" is server-only it reads Worker bindings, which do not ` +
92
- `exist in the browser. Move this import into a server route.`);
86
+ this.error(`"${SPECIFIER}" is server-only. Move this import into a server route.`);
93
87
  }
94
88
  return RESOLVED;
95
89
  },
@@ -1 +1 @@
1
- {"version":3,"file":"base44-runtime-plugin.js","sourceRoot":"","sources":["../src/base44-runtime-plugin.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,MAAM,SAAS,GAAG,gBAAgB,CAAC;AACnC,8EAA8E;AAC9E,gDAAgD;AAChD,MAAM,QAAQ,GAAG,kBAAkB,CAAC;AAEpC,gFAAgF;AAChF,+EAA+E;AAC/E,+EAA+E;AAC/E,wCAAwC;AACxC,MAAM,aAAa,GACjB,8EAA8E,CAAC;AACjF,MAAM,2BAA2B,GAC/B,wDAAwD,CAAC;AAE3D,SAAS,iBAAiB,CAAC,EAAU;IACnC,IAAI,EAAE,KAAK,uBAAuB;QAAE,OAAO,aAAa,CAAC;IACzD,IAAI,EAAE,KAAK,6BAA6B,IAAI,EAAE,CAAC,UAAU,CAAC,8BAA8B,CAAC,EAAE,CAAC;QAC1F,OAAO,2BAA2B,CAAC;IACrC,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,cAAc,GAAG;;;;;;;;;;;;;;CActB,CAAC;AAEF,MAAM,UAAU,mBAAmB;IACjC,OAAO;QACL,IAAI,EAAE,gBAAgB;QACtB,0EAA0E;QAC1E,+BAA+B;QAC/B,OAAO,EAAE,KAAK;QAEd,SAAS,CAAC,EAAE;YACV,MAAM,MAAM,GAAG,iBAAiB,CAAC,EAAE,CAAC,CAAC;YACrC,IAAI,MAAM,EAAE,CAAC;gBACX,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,wCAAwC,MAA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,IAAI,EAAE,wCAAwC,MAAM,EAAE,CAAC,CAAC;YACrE,CAAC;YACD,IAAI,EAAE,KAAK,SAAS;gBAAE,OAAO,IAAI,CAAC;YAElC,0EAA0E;YAC1E,uEAAuE;YACvE,IAAI,IAAI,CAAC,WAAW,EAAE,IAAI,KAAK,QAAQ,EAAE,CAAC;gBACxC,IAAI,CAAC,KAAK,CAAC,IAAI,SAAS,yDAAyD,CAAC,CAAC;YACrF,CAAC;YACD,OAAO,QAAQ,CAAC;QAClB,CAAC;QAED,IAAI,CAAC,EAAE;YACL,OAAO,EAAE,KAAK,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC;QACjD,CAAC;KACF,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/vite-plugin",
3
- "version": "1.0.36-pr.122.6d86015",
3
+ "version": "1.0.36-pr.122.cc41b41",
4
4
  "description": "The Vite plugin for base44 based applications",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -28,20 +28,14 @@ const SPECIFIER = "base44:runtime";
28
28
  // (and no filesystem lookup) tries to claim it.
29
29
  const RESOLVED = "\0base44:runtime";
30
30
 
31
- // Reserved so a server route importing one fails with an explanation instead of
32
- // a bare "failed to resolve import". Both need bindings on the deployed script
33
- // that full-stack uploads do not carry yet, so neither can work by resolving a
34
- // module here — see the PR description.
31
+ // Reserved so a route importing it fails with an explanation instead of a bare
32
+ // "failed to resolve import". Actors are never imported — they live in the app's
33
+ // actors directory, in server routes exactly as in backend functions.
35
34
  const ACTORS_REASON =
36
35
  "Actors are defined in the app's actors directory, not imported into a route.";
37
- const PRIVATE_DATA_SOURCES_REASON =
38
- "Private data sources are not wired into server routes.";
39
36
 
40
37
  function unsupportedReason(id: string): string | null {
41
38
  if (id === "base44:runtime/actors") return ACTORS_REASON;
42
- if (id === "base44:private-data-sources" || id.startsWith("base44:private-data-sources/")) {
43
- return PRIVATE_DATA_SOURCES_REASON;
44
- }
45
39
  return null;
46
40
  }
47
41
 
@@ -97,10 +91,7 @@ export function base44RuntimePlugin(): Plugin {
97
91
  // `cloudflare:workers` has no browser equivalent, so a client-side import
98
92
  // would bundle a module that cannot run. Fail with the reason instead.
99
93
  if (this.environment?.name === "client") {
100
- this.error(
101
- `"${SPECIFIER}" is server-only — it reads Worker bindings, which do not ` +
102
- `exist in the browser. Move this import into a server route.`
103
- );
94
+ this.error(`"${SPECIFIER}" is server-only. Move this import into a server route.`);
104
95
  }
105
96
  return RESOLVED;
106
97
  },