@ox-content/vite-plugin 0.8.0 → 0.9.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 CHANGED
@@ -8288,10 +8288,11 @@ async function resolveVueTemplate(templatePath, options, root) {
8288
8288
  format: "esm"
8289
8289
  });
8290
8290
  await bundle.close();
8291
- const Component = (await import(`${outfile}?t=${Date.now()}`)).default;
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");