@plumeria/next-plugin 2.4.1 → 3.0.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/dist/index.js +9 -15
- package/dist/turbopack.js +0 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.withPlumeria = withPlumeria;
|
|
4
|
-
const webpack_plugin_1 = require("@plumeria/webpack-plugin");
|
|
5
4
|
function withPlumeria(nextConfig) {
|
|
6
5
|
const originalWebpack = nextConfig.webpack;
|
|
7
6
|
return {
|
|
@@ -10,20 +9,15 @@ function withPlumeria(nextConfig) {
|
|
|
10
9
|
if (typeof originalWebpack === 'function') {
|
|
11
10
|
config = originalWebpack(config, context);
|
|
12
11
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
});
|
|
23
|
-
if (!config.plugins?.some((p) => p instanceof webpack_plugin_1.PlumeriaPlugin)) {
|
|
24
|
-
config.plugins?.push(new webpack_plugin_1.PlumeriaPlugin());
|
|
25
|
-
}
|
|
26
|
-
}
|
|
12
|
+
config.watchOptions = {
|
|
13
|
+
ignored: ['node_modules', '.next', '.git'],
|
|
14
|
+
};
|
|
15
|
+
config.module?.rules?.unshift({
|
|
16
|
+
enforce: 'pre',
|
|
17
|
+
test: /\.(tsx|ts|jsx|js)$/,
|
|
18
|
+
exclude: [/node_modules/, /\.next/, /\.git/],
|
|
19
|
+
use: require.resolve('@plumeria/webpack-plugin'),
|
|
20
|
+
});
|
|
27
21
|
return config;
|
|
28
22
|
},
|
|
29
23
|
};
|
package/dist/turbopack.js
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.withPlumeria = void 0;
|
|
4
4
|
const withPlumeria = (nextConfig = {}) => {
|
|
5
|
-
if (process.env.NODE_ENV === 'production')
|
|
6
|
-
return nextConfig;
|
|
7
5
|
const reactLoaders = [
|
|
8
6
|
{
|
|
9
7
|
loader: '@plumeria/turbopack-loader',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plumeria/next-plugin",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
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": "^
|
|
37
|
-
"@plumeria/turbopack-loader": "^
|
|
36
|
+
"@plumeria/webpack-plugin": "^3.0.0",
|
|
37
|
+
"@plumeria/turbopack-loader": "^3.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"next": "16.0.10",
|