noofpi 1.1.0 → 1.1.1
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/{build-63DMFZJY.js → build-GGRF4JTM.js} +1 -1
- package/dist/{chunk-SSJ2KKBZ.js → chunk-M7TMNIVH.js} +12 -2
- package/dist/cli.js +3 -3
- package/dist/{dev-USSN6KFV.js → dev-Y5IW7464.js} +1 -1
- package/dist/runtime/silent-diagnostics.js +11 -0
- package/dist/{start-U6A3PBRI.js → start-IK3X6V3N.js} +1 -1
- package/package.json +1 -1
|
@@ -816,6 +816,7 @@ function noofpiPlugin(options) {
|
|
|
816
816
|
|
|
817
817
|
// src/vite/config.ts
|
|
818
818
|
import path12 from "path";
|
|
819
|
+
import { fileURLToPath } from "url";
|
|
819
820
|
import vue from "@vitejs/plugin-vue";
|
|
820
821
|
import tailwindcss from "@tailwindcss/vite";
|
|
821
822
|
import { mergeConfig } from "vite";
|
|
@@ -957,9 +958,18 @@ function createViteConfig(root, config, kind, fonts = NO_FONTS) {
|
|
|
957
958
|
imagesPlugin(config.images),
|
|
958
959
|
noofpiPlugin({ root, config, css: resolveCss(root, config, fonts) })
|
|
959
960
|
],
|
|
960
|
-
resolve: {
|
|
961
|
+
resolve: {
|
|
962
|
+
dedupe: ["vue", "vue-router"],
|
|
963
|
+
// vue-router reports through `nostics`; the stub keeps the console free of its warnings
|
|
964
|
+
alias: {
|
|
965
|
+
nostics: fileURLToPath(
|
|
966
|
+
new URL("./runtime/silent-diagnostics.js", import.meta.url)
|
|
967
|
+
)
|
|
968
|
+
}
|
|
969
|
+
},
|
|
961
970
|
// noofpi's runtime imports virtual modules, so it must go through vite instead of being externalized
|
|
962
|
-
|
|
971
|
+
// vue-router too: its `nostics` import has to go through the alias above
|
|
972
|
+
ssr: { noExternal: ["noofpi", "vue-router"] },
|
|
963
973
|
// Subpaths must be listed too: a prebundled `noofpi/runtime` would be a second copy of the runtime modules
|
|
964
974
|
// (different injection keys than the ones `createNoofpiApp` provides)
|
|
965
975
|
optimizeDeps: {
|
package/dist/cli.js
CHANGED
|
@@ -72,10 +72,10 @@ async function main() {
|
|
|
72
72
|
await loadEnvFiles(root, command === "dev" ? "development" : "production");
|
|
73
73
|
const config = await loadConfig(root);
|
|
74
74
|
if (command === "dev") {
|
|
75
|
-
const { startDev } = await import("./dev-
|
|
75
|
+
const { startDev } = await import("./dev-Y5IW7464.js");
|
|
76
76
|
await startDev(root, config, overrides);
|
|
77
77
|
} else if (command === "build") {
|
|
78
|
-
const { buildApp } = await import("./build-
|
|
78
|
+
const { buildApp } = await import("./build-GGRF4JTM.js");
|
|
79
79
|
const preset = option(args, "--preset");
|
|
80
80
|
await buildApp(
|
|
81
81
|
root,
|
|
@@ -83,7 +83,7 @@ async function main() {
|
|
|
83
83
|
preset ? assertBuildPreset(preset, "--preset") : void 0
|
|
84
84
|
);
|
|
85
85
|
} else {
|
|
86
|
-
const { startProd } = await import("./start-
|
|
86
|
+
const { startProd } = await import("./start-IK3X6V3N.js");
|
|
87
87
|
await startProd(root, config, overrides);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// src/runtime/silent-diagnostics.ts
|
|
2
|
+
var diagnostic = () => new Error();
|
|
3
|
+
var createConsoleReporter = () => () => {
|
|
4
|
+
};
|
|
5
|
+
var defineDiagnostics = (_options) => new Proxy({}, { get: () => diagnostic });
|
|
6
|
+
var defineProdDiagnostics = defineDiagnostics;
|
|
7
|
+
export {
|
|
8
|
+
createConsoleReporter,
|
|
9
|
+
defineDiagnostics,
|
|
10
|
+
defineProdDiagnostics
|
|
11
|
+
};
|