@octanejs/vite-plugin 0.1.42 → 0.1.44

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/vite-plugin",
3
- "version": "0.1.42",
3
+ "version": "0.1.44",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "engines": {
@@ -47,17 +47,17 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@ripple-ts/adapter": "^0.3.118",
50
- "@octanejs/app-core": "0.0.38"
50
+ "@octanejs/app-core": "0.0.40"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "vite": "^8.0.16",
54
- "octane": "0.1.42"
54
+ "octane": "0.1.44"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@types/node": "^24.13.3",
58
58
  "playwright": "^1.61.1",
59
59
  "type-fest": "^5.8.0",
60
60
  "vite": "^8.1.5",
61
- "octane": "0.1.42"
61
+ "octane": "0.1.44"
62
62
  }
63
63
  }
package/src/index.js CHANGED
@@ -221,7 +221,7 @@ function collect_hydrate_module_paths(config) {
221
221
  * it). An explicit `profile` (true or false) always takes precedence over
222
222
  * `devtools`.
223
223
  *
224
- * @param {{ hmr?: boolean, profile?: boolean, devtools?: boolean, strong?: boolean, exclude?: string[], requireDirective?: boolean, renderers?: import('@octanejs/app-core').ExperimentalRendererConfigOptions }} [inlineOptions]
224
+ * @param {{ hmr?: boolean, profile?: boolean, devtools?: boolean, strong?: boolean, exclude?: string[], requireDirective?: boolean, renderers?: import('@octanejs/app-core').ExperimentalRendererConfigOptions, cssModuleConstants?: import('octane/compiler/vite').OctaneVitePluginOptions['cssModuleConstants'] }} [inlineOptions]
225
225
  * @returns {Plugin[]}
226
226
  */
227
227
  export function octane(inlineOptions = {}) {
@@ -884,6 +884,7 @@ export function octane(inlineOptions = {}) {
884
884
  * exclude?: string[],
885
885
  * requireDirective?: boolean,
886
886
  * renderers?: import('@octanejs/app-core').ExperimentalRendererConfigOptions,
887
+ * cssModuleConstants?: import('octane/compiler/vite').OctaneVitePluginOptions['cssModuleConstants'],
887
888
  * }}
888
889
  */
889
890
  const compilerOptions = {};
@@ -898,6 +899,9 @@ export function octane(inlineOptions = {}) {
898
899
  compilerOptions.requireDirective = inlineOptions.requireDirective;
899
900
  }
900
901
  if (inlineOptions.renderers !== undefined) compilerOptions.renderers = inlineOptions.renderers;
902
+ if (inlineOptions.cssModuleConstants !== undefined) {
903
+ compilerOptions.cssModuleConstants = inlineOptions.cssModuleConstants;
904
+ }
901
905
  const compilerPlugin = /** @type {Plugin} */ (octaneCompiler(compilerOptions));
902
906
  const compilerConfigHook = compilerPlugin.config;
903
907
  if (typeof compilerConfigHook === 'function') {
package/types/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import type { Plugin, ViteDevServer } from 'vite';
2
+ import type { OctaneVitePluginOptions } from 'octane/compiler/vite';
2
3
  import type {
3
4
  ConfigModuleRunner,
4
5
  ExperimentalRendererConfigOptions,
@@ -42,6 +43,8 @@ export interface OctanePluginOptions {
42
43
  * reads `compiler.renderers` from `octane.config.ts` before transforming modules.
43
44
  */
44
45
  renderers?: ExperimentalRendererConfigOptions;
46
+ /** @experimental Authenticate immutable CSS-module exports in production builds. */
47
+ cssModuleConstants?: OctaneVitePluginOptions['cssModuleConstants'];
45
48
  }
46
49
 
47
50
  /** The Octane compiler plugin plus Vite app/metaframework integration. */