@plumeria/next-plugin 2.2.2 → 2.2.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/dist/turbopack.js +11 -4
- package/package.json +3 -3
package/dist/turbopack.js
CHANGED
|
@@ -2,18 +2,25 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.withPlumeria = void 0;
|
|
4
4
|
const withPlumeria = (nextConfig = {}) => {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
const config = {
|
|
6
|
+
...nextConfig,
|
|
7
|
+
serverExternalPackages: [
|
|
8
|
+
...(nextConfig.serverExternalPackages ?? []),
|
|
9
|
+
'zss-engine',
|
|
10
|
+
],
|
|
11
|
+
};
|
|
7
12
|
const reactLoaders = [
|
|
8
13
|
{
|
|
9
14
|
loader: '@plumeria/turbopack-loader',
|
|
10
15
|
options: {},
|
|
11
16
|
},
|
|
12
17
|
];
|
|
18
|
+
if (process.env.NODE_ENV === 'production')
|
|
19
|
+
return config;
|
|
13
20
|
return {
|
|
14
|
-
...
|
|
21
|
+
...config,
|
|
15
22
|
turbopack: {
|
|
16
|
-
...
|
|
23
|
+
...config?.turbopack,
|
|
17
24
|
rules: {
|
|
18
25
|
'*.ts': {
|
|
19
26
|
loaders: reactLoaders,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plumeria/next-plugin",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.4",
|
|
4
4
|
"description": "Plumeria Next.js plugin",
|
|
5
5
|
"author": "Refirst 11",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"dist/"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@plumeria/webpack-plugin": "^2.2.
|
|
37
|
-
"@plumeria/turbopack-loader": "^2.2.
|
|
36
|
+
"@plumeria/webpack-plugin": "^2.2.4",
|
|
37
|
+
"@plumeria/turbopack-loader": "^2.2.4"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"next": "16.0.10",
|