@monkeyplus/flow 5.0.0-rc.64 → 5.0.0-rc.65
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.mjs
CHANGED
|
@@ -29,7 +29,7 @@ import { isExternal as isExternal$1, ExternalsDefaults } from 'externality';
|
|
|
29
29
|
import { createHash } from 'node:crypto';
|
|
30
30
|
import MagicString from 'magic-string';
|
|
31
31
|
|
|
32
|
-
const version = "5.0.0-rc.
|
|
32
|
+
const version = "5.0.0-rc.65";
|
|
33
33
|
|
|
34
34
|
let _distDir = dirname(fileURLToPath(import.meta.url));
|
|
35
35
|
if (_distDir.endsWith("chunks"))
|
|
@@ -375,10 +375,10 @@ const createClient = async (flow) => {
|
|
|
375
375
|
};
|
|
376
376
|
const builClient = async (flow) => {
|
|
377
377
|
return await build$1({
|
|
378
|
+
base: flow.options.dev ? "/" : flow.options.app.baseURL,
|
|
378
379
|
root: flow.options.rootDir,
|
|
379
380
|
mode: "production",
|
|
380
381
|
build: {
|
|
381
|
-
assetsDir: "scripts",
|
|
382
382
|
target: "es2015",
|
|
383
383
|
outDir: ".vite",
|
|
384
384
|
manifest: true
|
|
@@ -440,7 +440,7 @@ const viteModule = defineFlowModule({
|
|
|
440
440
|
logger$1.success(`Client build in ${Date.now() - start}ms`);
|
|
441
441
|
});
|
|
442
442
|
flow.hook("generate:before", async () => {
|
|
443
|
-
const files = resolve(flow.options.rootDir, ".vite/
|
|
443
|
+
const files = resolve(flow.options.rootDir, ".vite/assets");
|
|
444
444
|
await fse.copy(files, resolve(flow.options.generate.dir, "assets"));
|
|
445
445
|
});
|
|
446
446
|
}
|
|
@@ -72,7 +72,7 @@ export const generateBundle = (config, bundle, _id) => {
|
|
|
72
72
|
export const externalRE = /^(https?:)?\/\//;
|
|
73
73
|
export const isExternalUrl = (url) => externalRE.test(url);
|
|
74
74
|
function toPublicPath(filename, publicBase) {
|
|
75
|
-
return isExternalUrl(filename) ? filename : joinURL(publicBase, filename
|
|
75
|
+
return isExternalUrl(filename) ? filename : joinURL(publicBase, filename);
|
|
76
76
|
}
|
|
77
77
|
const unaryTags = new Set(["link", "meta", "base"]);
|
|
78
78
|
function serializeTag({ tag, attrs, children }, indent = "") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monkeyplus/flow",
|
|
3
|
-
"version": "5.0.0-rc.
|
|
3
|
+
"version": "5.0.0-rc.65",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"dist"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@monkeyplus/flow-cli": "5.0.0-rc.
|
|
29
|
-
"@monkeyplus/flow-kit": "5.0.0-rc.
|
|
30
|
-
"@monkeyplus/flow-schema": "5.0.0-rc.
|
|
28
|
+
"@monkeyplus/flow-cli": "5.0.0-rc.65",
|
|
29
|
+
"@monkeyplus/flow-kit": "5.0.0-rc.65",
|
|
30
|
+
"@monkeyplus/flow-schema": "5.0.0-rc.65",
|
|
31
31
|
"@rollup/plugin-replace": "^4.0.0",
|
|
32
32
|
"@vueuse/head": "^0.7.6",
|
|
33
33
|
"c12": "^0.2.8",
|