@codepress/codepress-engine 0.4.0-dev.tsc.20251014073506 → 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/README.md CHANGED
@@ -24,7 +24,7 @@ npm install @codepress/codepress-engine
24
24
 
25
25
  ```js
26
26
  // next.config.mjs (Next.js 14/15)
27
- import createSWCPlugin from "@codepress/codepress-engine/swc";
27
+ import { createSWCPlugin } from "@codepress/codepress-engine/swc";
28
28
 
29
29
  const nextConfig = {
30
30
  experimental: {
@@ -38,6 +38,13 @@ const nextConfig = {
38
38
  export default nextConfig;
39
39
  ```
40
40
 
41
+ Note: When using ESM (`next.config.mjs`), prefer the named import above due to CJS interop. For CommonJS configs you can use:
42
+
43
+ ```js
44
+ // next.config.cjs
45
+ const { createSWCPlugin } = require("@codepress/codepress-engine/swc");
46
+ ```
47
+
41
48
  The SWC plugin auto-detects your repository and branch from `git` and common CI env vars. WASM selection is automatic based on your Next.js / `@swc/core` version; see the WASM exports below for manual overrides.
42
49
 
43
50
  Optional options for `createSWCPlugin` (all are optional; omit to use auto-detection):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codepress/codepress-engine",
3
- "version": "0.4.0-dev.tsc.20251014073506",
3
+ "version": "0.4.0",
4
4
  "description": "CodePress engine - Babel and SWC plug-ins",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
Binary file
Binary file
Binary file