@ox-content/vite-plugin 0.8.0 → 0.10.0
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.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -8288,10 +8288,11 @@ async function resolveVueTemplate(templatePath, options, root) {
|
|
|
8288
8288
|
format: "esm"
|
|
8289
8289
|
});
|
|
8290
8290
|
await bundle.close();
|
|
8291
|
-
const
|
|
8291
|
+
const mod = await import(`${outfile}?t=${Date.now()}`);
|
|
8292
|
+
const Component = mod.default;
|
|
8292
8293
|
if (!Component) throw new Error(`[ox-content:og-image] Vue template must have a default export: ${templatePath}`);
|
|
8293
|
-
let extractedCss = "";
|
|
8294
|
-
try {
|
|
8294
|
+
let extractedCss = mod.__vize_css__ || "";
|
|
8295
|
+
if (!extractedCss) try {
|
|
8295
8296
|
let compilerSfc;
|
|
8296
8297
|
try {
|
|
8297
8298
|
compilerSfc = await import("@vue/compiler-sfc");
|