hadars 0.1.15 → 0.1.16

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/cli.js CHANGED
@@ -805,7 +805,7 @@ async function processHtmlTemplate(templatePath) {
805
805
  let processedHtml = html;
806
806
  for (const { full, attrs, css } of matches) {
807
807
  try {
808
- const result = await postcss(plugins).process(css, { from: void 0 });
808
+ const result = await postcss(plugins).process(css, { from: templatePath });
809
809
  processedHtml = processedHtml.replace(full, `<style${attrs}>${result.css}</style>`);
810
810
  } catch (err) {
811
811
  console.warn("[hadars] PostCSS error processing <style> block in HTML template:", err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hadars",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "Minimal SSR framework for React — rspack, HMR, TypeScript, Bun/Node/Deno",
5
5
  "module": "./dist/index.js",
6
6
  "type": "module",
package/src/build.ts CHANGED
@@ -49,7 +49,7 @@ async function processHtmlTemplate(templatePath: string): Promise<string> {
49
49
  let processedHtml = html;
50
50
  for (const { full, attrs, css } of matches) {
51
51
  try {
52
- const result = await postcss(plugins).process(css, { from: undefined });
52
+ const result = await postcss(plugins).process(css, { from: templatePath });
53
53
  processedHtml = processedHtml.replace(full, `<style${attrs}>${result.css}</style>`);
54
54
  } catch (err) {
55
55
  console.warn('[hadars] PostCSS error processing <style> block in HTML template:', err);