octane 0.16.5 → 0.16.6

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.
@@ -21,7 +21,7 @@ __export(version_exports, {
21
21
  version: () => version
22
22
  });
23
23
  module.exports = __toCommonJS(version_exports);
24
- const version = "0.16.5";
24
+ const version = "0.16.6";
25
25
  // Annotate the CommonJS export names for ESM import in node:
26
26
  0 && (module.exports = {
27
27
  version
@@ -1195,6 +1195,15 @@ export function octane(options = {}) {
1195
1195
  });
1196
1196
  }
1197
1197
  },
1198
+ // Rolldown warns for every module that opens with a directive, and ported
1199
+ // React libraries open hundreds of modules with `'use client'`. Octane has
1200
+ // no Server Components, so that directive has nothing to preserve; drop its
1201
+ // warning as @vitejs/plugin-react does and pass every other log on.
1202
+ onLog(_level, log) {
1203
+ if (log.code === 'MODULE_LEVEL_DIRECTIVE' && log.message.includes('"use client"')) {
1204
+ return false;
1205
+ }
1206
+ },
1198
1207
  buildStart() {
1199
1208
  if (this.environment === undefined) {
1200
1209
  cssModuleProofStates.clear();
@@ -1,4 +1,4 @@
1
- const version = "0.16.5";
1
+ const version = "0.16.6";
2
2
  export {
3
3
  version
4
4
  };
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
- const version = "0.16.5";
1
+ const version = "0.16.6";
2
2
  export {
3
3
  version
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "octane",
3
- "version": "0.16.5",
3
+ "version": "0.16.6",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": [