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.
- package/dist/cjs/version.cjs +1 -1
- package/dist/compiler/vite.js +9 -0
- package/dist/node/version.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/cjs/version.cjs
CHANGED
|
@@ -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.
|
|
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
|
package/dist/compiler/vite.js
CHANGED
|
@@ -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();
|
package/dist/node/version.js
CHANGED
package/dist/version.js
CHANGED