@plumeria/next-plugin 8.0.0 → 8.0.2
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 +14 -0
- package/dist/turbopack.js +14 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.withPlumeria = withPlumeria;
|
|
7
|
+
const fs_1 = __importDefault(require("fs"));
|
|
4
8
|
function withPlumeria(nextConfig) {
|
|
9
|
+
const VIRTUAL_FILE_PATH = require.resolve('@plumeria/turbopack-loader/zero-virtual.css');
|
|
10
|
+
if (process.env.NODE_ENV === 'development') {
|
|
11
|
+
const cleanup = () => {
|
|
12
|
+
fs_1.default.writeFileSync(VIRTUAL_FILE_PATH, '/** Placeholder file */\n', 'utf-8');
|
|
13
|
+
};
|
|
14
|
+
process.on('SIGINT', cleanup);
|
|
15
|
+
}
|
|
16
|
+
if (process.env.NODE_ENV === 'production') {
|
|
17
|
+
fs_1.default.writeFileSync(VIRTUAL_FILE_PATH, '/** Placeholder file */\n', 'utf-8');
|
|
18
|
+
}
|
|
5
19
|
const originalWebpack = nextConfig.webpack;
|
|
6
20
|
return {
|
|
7
21
|
...nextConfig,
|
package/dist/turbopack.js
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.withPlumeria = void 0;
|
|
7
|
+
const fs_1 = __importDefault(require("fs"));
|
|
4
8
|
const withPlumeria = (nextConfig = {}) => {
|
|
9
|
+
const VIRTUAL_FILE_PATH = require.resolve('@plumeria/turbopack-loader/zero-virtual.css');
|
|
10
|
+
if (process.env.NODE_ENV === 'development') {
|
|
11
|
+
const cleanup = () => {
|
|
12
|
+
fs_1.default.writeFileSync(VIRTUAL_FILE_PATH, '/** Placeholder file */\n', 'utf-8');
|
|
13
|
+
};
|
|
14
|
+
process.on('SIGINT', cleanup);
|
|
15
|
+
}
|
|
16
|
+
if (process.env.NODE_ENV === 'production') {
|
|
17
|
+
fs_1.default.writeFileSync(VIRTUAL_FILE_PATH, '/** Placeholder file */\n', 'utf-8');
|
|
18
|
+
}
|
|
5
19
|
const reactLoaders = [
|
|
6
20
|
{
|
|
7
21
|
loader: '@plumeria/turbopack-loader',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plumeria/next-plugin",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.2",
|
|
4
4
|
"description": "Plumeria Next.js plugin",
|
|
5
5
|
"author": "Refirst 11",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dist/"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@plumeria/turbopack-loader": "^8.0.
|
|
36
|
+
"@plumeria/turbopack-loader": "^8.0.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"next": "^16.1.6",
|