@jay-framework/rollup-plugin 0.10.0 → 0.11.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.
Files changed (2) hide show
  1. package/dist/index.js +6 -1
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -328,8 +328,13 @@ async function loadCssFile(context, jayContext, id, isVite) {
328
328
  JAY_IMPORT_RESOLVER,
329
329
  jayContext.projectRoot
330
330
  );
331
+ if (jayHtml.val?.linkedCssFiles) {
332
+ for (const cssFile of jayHtml.val.linkedCssFiles) {
333
+ watchChangesFor(context, cssFile);
334
+ }
335
+ }
331
336
  console.info(`[load] end ${id}`);
332
- return { code: jayHtml.val.css };
337
+ return { code: jayHtml.val?.css };
333
338
  } else {
334
339
  console.info(`[load] rollup environment - css not supported - ignoring css ${id}`);
335
340
  return { code: "" };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jay-framework/rollup-plugin",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -27,16 +27,16 @@
27
27
  "test:watch": "vitest"
28
28
  },
29
29
  "dependencies": {
30
- "@jay-framework/compiler": "^0.10.0",
31
- "@jay-framework/compiler-jay-html": "^0.10.0",
30
+ "@jay-framework/compiler": "^0.11.0",
31
+ "@jay-framework/compiler-jay-html": "^0.11.0",
32
32
  "fast-glob": "^3.3.2",
33
33
  "typescript": "^5.3.3"
34
34
  },
35
35
  "devDependencies": {
36
- "@jay-framework/component": "^0.10.0",
37
- "@jay-framework/dev-environment": "^0.10.0",
38
- "@jay-framework/runtime": "^0.10.0",
39
- "@jay-framework/secure": "^0.10.0",
36
+ "@jay-framework/component": "^0.11.0",
37
+ "@jay-framework/dev-environment": "^0.11.0",
38
+ "@jay-framework/runtime": "^0.11.0",
39
+ "@jay-framework/secure": "^0.11.0",
40
40
  "@types/node": "^20.11.5",
41
41
  "rimraf": "^5.0.5",
42
42
  "rollup": "^4.9.5",