@shijiu/jsview-vue 1.9.633 → 1.9.643
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/dom/bin/jsview-browser-debug-dom.min.js +1 -1
- package/dom/bin/jsview-dom.min.js +1 -1
- package/package.json +1 -1
- package/patches/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +277 -277
- package/patches/node_modules/vite/dist/node/chunks/dep-0fc8e132.js +16 -2
- package/patches/node_modules/vite/dist/node/jsview.vite.config.js +0 -7
- package/patches/node_modules/vue-router/dist/vue-router.mjs +3595 -0
- package/samples/DemoHomepage/router.js +1 -1
- package/samples/DemoHomepage/views/Homepage.vue +1 -1
- package/samples/HashHistory/router.js +1 -1
- package/samples/NinePatchDemo/Item.vue +1 -1
- package/samples/SoundPool/App.vue +4 -4
- package/samples/VideoDemo/components/Controllor.vue +2 -2
- package/scripts/jsview-install-local-packages.js +5 -5
- package/scripts/jsview-post-install.js +10 -8
- package/scripts/jsview-run-android.js +5 -3
- package/utils/JsViewVueWidget/BrowserDebugWidget/BrowserQrcode.vue +2 -1
|
@@ -12555,6 +12555,20 @@ function printServerUrls(urls, optionsHost, info) {
|
|
|
12555
12555
|
const note = `use ${picocolors.exports.white(picocolors.exports.bold('--host'))} to expose`;
|
|
12556
12556
|
info(picocolors.exports.dim(` ${picocolors.exports.green('➜')} ${picocolors.exports.bold('Network')}: ${note}`));
|
|
12557
12557
|
}
|
|
12558
|
+
// JsView Modified >>>
|
|
12559
|
+
if (urls.network.length > 0) {
|
|
12560
|
+
const saveUrlToCache = async function () {
|
|
12561
|
+
const fs = await import('fs');
|
|
12562
|
+
const path = await import('path')
|
|
12563
|
+
const jsviewCacheDir = path.resolve('node_modules', '.vite', 'jsview')
|
|
12564
|
+
const urlCachePath = path.resolve(jsviewCacheDir, 'network.mjs')
|
|
12565
|
+
fs.mkdirSync(jsviewCacheDir, { recursive : true });
|
|
12566
|
+
fs.writeFileSync(urlCachePath, `export default "${urls.network[0]}"`)
|
|
12567
|
+
}
|
|
12568
|
+
|
|
12569
|
+
saveUrlToCache();
|
|
12570
|
+
}
|
|
12571
|
+
// JsView Modified <<<
|
|
12558
12572
|
}
|
|
12559
12573
|
|
|
12560
12574
|
const writeColors = {
|
|
@@ -40741,10 +40755,10 @@ function preload(baseModule, deps, importerUrl) {
|
|
|
40741
40755
|
function buildImportAnalysisPlugin(config) {
|
|
40742
40756
|
const ssr = !!config.build.ssr;
|
|
40743
40757
|
const isWorker = config.isWorker;
|
|
40744
|
-
|
|
40758
|
+
// JsView Modified >>>
|
|
40745
40759
|
// const insertPreload = !(ssr || !!config.build.lib || isWorker);
|
|
40746
40760
|
const insertPreload = false;
|
|
40747
|
-
|
|
40761
|
+
// JsView Modified <<<
|
|
40748
40762
|
const relativePreloadUrls = config.base === './' || config.base === '';
|
|
40749
40763
|
const scriptRel = config.build.polyfillModulePreload
|
|
40750
40764
|
? `'modulepreload'`
|
|
@@ -30,13 +30,6 @@ export default defineConfig({
|
|
|
30
30
|
},
|
|
31
31
|
plugins: [
|
|
32
32
|
fullReload('node_modules/@shijiu/jsview-vue/**/*'),
|
|
33
|
-
//vue({
|
|
34
|
-
//template: {
|
|
35
|
-
//compilerOptions: {
|
|
36
|
-
//isCustomElement: (tag) => tag === 'fdiv'
|
|
37
|
-
//}
|
|
38
|
-
//}
|
|
39
|
-
//})
|
|
40
33
|
],
|
|
41
34
|
resolve: {
|
|
42
35
|
alias: {
|