@reticlehq/next 3.5.0 → 3.7.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.
Files changed (2) hide show
  1. package/index.cjs +8 -1
  2. package/package.json +2 -2
package/index.cjs CHANGED
@@ -429,7 +429,14 @@ function withReticle(nextConfig = {}, options = {}) {
429
429
  return {
430
430
  ...nextConfig,
431
431
  ...(allowedDevOrigins !== undefined ? { allowedDevOrigins } : {}),
432
- ...(supportsTurbopackKey() ? { turbopack: turbopackConfig(nextConfig.turbopack) } : {}),
432
+ ...(supportsTurbopackKey()
433
+ ? {
434
+ turbopack:
435
+ options.sourceMapping !== false
436
+ ? turbopackConfig(nextConfig.turbopack)
437
+ : (nextConfig.turbopack ?? {}),
438
+ }
439
+ : {}),
433
440
  // Expose the token to the client bundle as process.env.NEXT_PUBLIC_RETICLE_TOKEN (Next's convention
434
441
  // for client-readable env), so a dev-only client connect can present it. Minted here if the file
435
442
  // is missing: Next evaluates this once, so an empty value is frozen and a reload cannot pick a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reticlehq/next",
3
- "version": "3.5.0",
3
+ "version": "3.7.0",
4
4
  "description": "Next.js helper for Reticle: keeps SWC, adds source-file mapping via a dev-only webpack pre-loader (data-reticle-source).",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Reticle contributors",
@@ -38,7 +38,7 @@
38
38
  ],
39
39
  "dependencies": {
40
40
  "@babel/core": "^7.26.0",
41
- "@reticlehq/babel-plugin": "3.5.0"
41
+ "@reticlehq/babel-plugin": "3.7.0"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "next": ">=13"