veryfront 0.1.1029 → 0.1.1030
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/esm/deno.js +1 -1
- package/esm/src/modules/react-loader/ssr-module-loader/preflight-imports.d.ts.map +1 -1
- package/esm/src/modules/react-loader/ssr-module-loader/preflight-imports.js +4 -1
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +4 -4
package/esm/deno.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preflight-imports.d.ts","sourceRoot":"","sources":["../../../../../src/src/modules/react-loader/ssr-module-loader/preflight-imports.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"preflight-imports.d.ts","sourceRoot":"","sources":["../../../../../src/src/modules/react-loader/ssr-module-loader/preflight-imports.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAE3F,UAAU,sBAAsB;IAC9B,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,cAAc,EAAE,aAAa,EAAE,CAAC;CACjC;AAED,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,WAAW,EAAE,EACtB,QAAQ,EAAE,MAAM,EAChB,EAAE,GAAE;IAAE,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;QAAE,MAAM,EAAE,OAAO,CAAA;KAAE,CAAC,CAAA;CAAuB,GAChF,OAAO,CAAC,sBAAsB,CAAC,CAmCjC"}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { createFileSystem } from "../../../platform/compat/fs.js";
|
|
2
|
+
import { isFrameworkSourcePath } from "../../../platform/compat/framework-source-resolver.js";
|
|
2
3
|
export async function preflightLocalImports(imports, filePath, fs = createFileSystem()) {
|
|
3
4
|
const validImports = [];
|
|
4
5
|
const missingImports = [];
|
|
6
|
+
const localFs = createFileSystem();
|
|
5
7
|
for (const imp of imports) {
|
|
6
8
|
if (!imp.absolutePath.startsWith("/")) {
|
|
7
9
|
validImports.push(imp);
|
|
8
10
|
continue;
|
|
9
11
|
}
|
|
12
|
+
const statFs = isFrameworkSourcePath(imp.absolutePath) ? localFs : fs;
|
|
10
13
|
try {
|
|
11
|
-
const stat = await
|
|
14
|
+
const stat = await statFs.stat(imp.absolutePath);
|
|
12
15
|
if (stat?.isFile) {
|
|
13
16
|
validImports.push(imp);
|
|
14
17
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "veryfront",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1030",
|
|
4
4
|
"description": "The simplest way to build AI-powered apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -326,9 +326,9 @@
|
|
|
326
326
|
"@types/react": "19.2.14",
|
|
327
327
|
"@types/react-dom": "19.2.3",
|
|
328
328
|
"ws": "8.21.0",
|
|
329
|
-
"@veryfront/ext-bundler-esbuild": "0.1.
|
|
330
|
-
"@veryfront/ext-content-mdx": "0.1.
|
|
331
|
-
"@veryfront/ext-css-tailwind": "0.1.
|
|
329
|
+
"@veryfront/ext-bundler-esbuild": "0.1.1030",
|
|
330
|
+
"@veryfront/ext-content-mdx": "0.1.1030",
|
|
331
|
+
"@veryfront/ext-css-tailwind": "0.1.1030"
|
|
332
332
|
},
|
|
333
333
|
"devDependencies": {
|
|
334
334
|
"@types/node": "20.9.0"
|