@plumeria/next-plugin 19.14.2 → 19.14.4

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) zss-in-js contributer
3
+ Copyright (c) zss-in-js contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/dist/index.js CHANGED
@@ -35,10 +35,12 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.withPlumeria = withPlumeria;
37
37
  const fs = __importStar(require("fs"));
38
+ const path = __importStar(require("path"));
38
39
  const turbopack_loader_1 = require("@plumeria/turbopack-loader");
39
40
  const guard_1 = require("@plumeria/eslint-plugin/guard");
40
41
  const lint_1 = require("./lint");
41
42
  const isRuleConfigItem = (rule) => !Array.isArray(rule) && typeof rule === 'object' && rule !== null;
43
+ const loaderVersion = () => JSON.parse(fs.readFileSync(path.join(path.dirname(require.resolve('@plumeria/turbopack-loader')), '..', 'package.json'), 'utf8')).version;
42
44
  function withPlumeria(nextConfig = {}, { lint = true, ...options } = {}) {
43
45
  if (lint)
44
46
  (0, lint_1.startNextLintGuard)((0, guard_1.lintOverrides)(options));
@@ -49,10 +51,14 @@ function withPlumeria(nextConfig = {}, { lint = true, ...options } = {}) {
49
51
  fs.rmSync((0, turbopack_loader_1.devGenerationsPath)(process.cwd()), { force: true });
50
52
  }
51
53
  const originalWebpack = nextConfig.webpack;
54
+ const turbopackOptions = {
55
+ ...options,
56
+ version: loaderVersion(),
57
+ };
52
58
  const turbopackLoaders = [
53
59
  {
54
60
  loader: '@plumeria/turbopack-loader',
55
- options: options,
61
+ options: turbopackOptions,
56
62
  },
57
63
  ];
58
64
  const styleProp = options.styleProp ?? 'classStyle';
@@ -68,7 +74,7 @@ function withPlumeria(nextConfig = {}, { lint = true, ...options } = {}) {
68
74
  };
69
75
  const cssLoader = {
70
76
  loader: '@plumeria/turbopack-loader/css',
71
- options: options,
77
+ options: turbopackOptions,
72
78
  };
73
79
  const plumeriaRules = {
74
80
  '*.ts': ruleItem,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/next-plugin",
3
- "version": "19.14.2",
3
+ "version": "19.14.4",
4
4
  "description": "Plumeria Next.js plugin",
5
5
  "author": "Refirst 11",
6
6
  "license": "MIT",
@@ -37,8 +37,8 @@
37
37
  "dist/"
38
38
  ],
39
39
  "dependencies": {
40
- "@plumeria/eslint-plugin": "19.14.2",
41
- "@plumeria/turbopack-loader": "19.14.2"
40
+ "@plumeria/eslint-plugin": "19.14.4",
41
+ "@plumeria/turbopack-loader": "19.14.4"
42
42
  },
43
43
  "devDependencies": {
44
44
  "next": "^16.3.8",