@monkeyplus/flow 5.0.0-rc.87 → 5.0.0-rc.88
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/chunks/index.mjs +2 -15
- package/package.json +4 -4
package/dist/chunks/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { fileURLToPath } from 'url';
|
|
|
5
5
|
import { defineUnimportPreset, createUnimport, toImports, scanDirExports } from 'unimport';
|
|
6
6
|
import { pathToFileURL } from 'node:url';
|
|
7
7
|
import { createUnplugin } from 'unplugin';
|
|
8
|
-
import { parseURL, parseQuery, joinURL
|
|
8
|
+
import { parseURL, parseQuery, joinURL } from 'ufo';
|
|
9
9
|
import fs from 'fs';
|
|
10
10
|
import escapeRE from 'escape-string-regexp';
|
|
11
11
|
import { camelCase, pascalCase } from 'scule';
|
|
@@ -26,7 +26,7 @@ import replace from '@rollup/plugin-replace';
|
|
|
26
26
|
import { sanitizeFilePath } from 'mlly';
|
|
27
27
|
import { resolveTSConfig } from 'pkg-types';
|
|
28
28
|
|
|
29
|
-
const version = "5.0.0-rc.
|
|
29
|
+
const version = "5.0.0-rc.88";
|
|
30
30
|
|
|
31
31
|
let _distDir = dirname(fileURLToPath(import.meta.url));
|
|
32
32
|
if (_distDir.endsWith("chunks"))
|
|
@@ -916,19 +916,6 @@ function cacheDirPlugin(rootDir, name) {
|
|
|
916
916
|
async function buildServer(ctx) {
|
|
917
917
|
const serverConfig = vite.mergeConfig(ctx.config, {
|
|
918
918
|
base: ctx.nuxt.options.dev ? joinURL(ctx.nuxt.options.app.baseURL.replace(/^\.\//, "/") || "/", ctx.nuxt.options.app.buildAssetsDir) : void 0,
|
|
919
|
-
experimental: {
|
|
920
|
-
renderBuiltUrl: (filename, { type, hostType }) => {
|
|
921
|
-
if (hostType !== "js") {
|
|
922
|
-
return { relative: true };
|
|
923
|
-
}
|
|
924
|
-
if (type === "public")
|
|
925
|
-
return { runtime: `globalThis.__publicAssetsURL(${JSON.stringify(filename)})` };
|
|
926
|
-
if (type === "asset") {
|
|
927
|
-
const relativeFilename = filename.replace(withTrailingSlash(withoutLeadingSlash(ctx.nuxt.options.app.buildAssetsDir)), "");
|
|
928
|
-
return { runtime: `globalThis.__buildAssetsURL(${JSON.stringify(relativeFilename)})` };
|
|
929
|
-
}
|
|
930
|
-
}
|
|
931
|
-
},
|
|
932
919
|
define: {
|
|
933
920
|
"process.server": true,
|
|
934
921
|
"process.client": false,
|
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.88",
|
|
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.88",
|
|
29
|
+
"@monkeyplus/flow-kit": "5.0.0-rc.88",
|
|
30
|
+
"@monkeyplus/flow-schema": "5.0.0-rc.88",
|
|
31
31
|
"@rollup/plugin-replace": "^4.0.0",
|
|
32
32
|
"@vueuse/head": "^0.7.6",
|
|
33
33
|
"c12": "^0.2.8",
|