@octanejs/vite-plugin 0.3.3 → 0.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/vite-plugin",
3
- "version": "0.3.3",
3
+ "version": "0.4.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "engines": {
@@ -46,17 +46,17 @@
46
46
  }
47
47
  },
48
48
  "dependencies": {
49
- "@octanejs/app-core": "0.1.5",
49
+ "@octanejs/app-core": "0.1.6",
50
50
  "@ripple-ts/adapter": "^0.4.0"
51
51
  },
52
52
  "peerDependencies": {
53
- "octane": "^0.12.0",
53
+ "octane": "^0.13.0",
54
54
  "vite": "^8.0.16"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@types/jsdom": "30.0.0",
58
58
  "@types/node": "^24.13.3",
59
- "octane": "0.12.0",
59
+ "octane": "0.13.0",
60
60
  "playwright": "^1.61.1",
61
61
  "playwright-webkit": "1.63.0",
62
62
  "vite": "^8.1.5"
package/src/index.js CHANGED
@@ -429,7 +429,7 @@ function collect_hydrate_module_paths(config) {
429
429
  * it). An explicit `profile` (true or false) always takes precedence over
430
430
  * `devtools`.
431
431
  *
432
- * @param {{ hmr?: boolean, profile?: boolean, devtools?: boolean, strong?: boolean, textTypes?: import('octane/compiler/vite').OctaneVitePluginOptions['textTypes'], knownAttributeSpreads?: import('octane/compiler/vite').OctaneVitePluginOptions['knownAttributeSpreads'], domBindingFixedProps?: import('octane/compiler/vite').OctaneVitePluginOptions['domBindingFixedProps'], opaqueSignalHandles?: boolean, exclude?: string[], requireDirective?: boolean, renderers?: import('@octanejs/app-core').ExperimentalRendererConfigOptions, cssModuleConstants?: import('octane/compiler/vite').OctaneVitePluginOptions['cssModuleConstants'] }} [inlineOptions]
432
+ * @param {{ hmr?: boolean, output?: 'js' | 'ts', profile?: boolean, devtools?: boolean, strong?: boolean, textTypes?: import('octane/compiler/vite').OctaneVitePluginOptions['textTypes'], knownAttributeSpreads?: import('octane/compiler/vite').OctaneVitePluginOptions['knownAttributeSpreads'], domBindingFixedProps?: import('octane/compiler/vite').OctaneVitePluginOptions['domBindingFixedProps'], opaqueSignalHandles?: boolean, exclude?: string[], requireDirective?: boolean, renderers?: import('@octanejs/app-core').ExperimentalRendererConfigOptions, cssModuleConstants?: import('octane/compiler/vite').OctaneVitePluginOptions['cssModuleConstants'] }} [inlineOptions]
433
433
  * @returns {Plugin[]}
434
434
  */
435
435
  export function octane(inlineOptions = {}) {
@@ -1385,6 +1385,7 @@ export function octane(inlineOptions = {}) {
1385
1385
  /**
1386
1386
  * @type {{
1387
1387
  * hmr?: boolean,
1388
+ * output?: 'js' | 'ts',
1388
1389
  * profile?: boolean | 'auto',
1389
1390
  * strong?: boolean,
1390
1391
  * textTypes?: import('octane/compiler/vite').OctaneVitePluginOptions['textTypes'],
@@ -1404,6 +1405,7 @@ export function octane(inlineOptions = {}) {
1404
1405
  __clientBuildId: () => clientBuild.buildId,
1405
1406
  };
1406
1407
  if (inlineOptions.hmr !== undefined) compilerOptions.hmr = inlineOptions.hmr;
1408
+ if (inlineOptions.output !== undefined) compilerOptions.output = inlineOptions.output;
1407
1409
  // Explicit `profile` wins; otherwise `devtools: true` opts into the
1408
1410
  // command-aware `'auto'` signal the compiler resolves to DEV-only profiling.
1409
1411
  if (inlineOptions.profile !== undefined) compilerOptions.profile = inlineOptions.profile;
package/types/index.d.ts CHANGED
@@ -11,6 +11,8 @@ import type {
11
11
  export * from '@octanejs/app-core';
12
12
 
13
13
  export interface OctanePluginOptions {
14
+ /** Compile through a typed intermediate; Vite emits JavaScript and composed maps. */
15
+ output?: OctaneVitePluginOptions['output'];
14
16
  /** Override the client HMR default (on in serve mode, off for SSR). */
15
17
  hmr?: boolean;
16
18
  /** Enable component profiling in client transforms. */