@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.
@@ -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
- // JsView Modified >>>
40758
+ // JsView Modified >>>
40745
40759
  // const insertPreload = !(ssr || !!config.build.lib || isWorker);
40746
40760
  const insertPreload = false;
40747
- // JsView Modified <<<
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: {