@plumeria/turbopack-loader 7.6.1 → 8.0.1

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.d.ts CHANGED
@@ -6,8 +6,5 @@ interface LoaderContext {
6
6
  addDependency: (path: string) => void;
7
7
  clearDependencies: () => void;
8
8
  }
9
- declare global {
10
- var __plumeriaVirtualCssInitialized: boolean | undefined;
11
- }
12
9
  export default function loader(this: LoaderContext, source: string): Promise<void>;
13
10
  export {};
package/dist/index.js CHANGED
@@ -9,17 +9,10 @@ const fs_1 = __importDefault(require("fs"));
9
9
  const path_1 = __importDefault(require("path"));
10
10
  const zss_engine_1 = require("zss-engine");
11
11
  const utils_1 = require("@plumeria/utils");
12
- const isProduction = process.env.NODE_ENV === 'production';
13
- const VIRTUAL_FILE_PATH = path_1.default.resolve(__dirname, '..', 'zero-virtual.css');
14
- if (isProduction) {
15
- fs_1.default.writeFileSync(VIRTUAL_FILE_PATH, '/** Placeholder file */\n', 'utf-8');
16
- }
17
- else if (!global.__plumeriaVirtualCssInitialized) {
18
- global.__plumeriaVirtualCssInitialized = true;
19
- fs_1.default.writeFileSync(VIRTUAL_FILE_PATH, '/** Placeholder file */\n', 'utf-8');
20
- }
21
12
  async function loader(source) {
22
13
  const callback = this.async();
14
+ const isProduction = process.env.NODE_ENV === 'production';
15
+ const VIRTUAL_FILE_PATH = path_1.default.resolve(__dirname, '..', 'zero-virtual.css');
23
16
  if (this.resourcePath.includes('node_modules') ||
24
17
  !source.includes('@plumeria/core')) {
25
18
  return callback(null, source);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/turbopack-loader",
3
- "version": "7.6.1",
3
+ "version": "8.0.1",
4
4
  "description": "Plumeria Turbopack-loader",
5
5
  "author": "Refirst 11",
6
6
  "license": "MIT",
@@ -22,7 +22,7 @@
22
22
  "zero-virtual.css"
23
23
  ],
24
24
  "dependencies": {
25
- "@plumeria/utils": "^7.6.1"
25
+ "@plumeria/utils": "^8.0.1"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@swc/core": "1.15.8",