@devup-ui/next-plugin 1.0.13 → 1.0.14

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/plugin.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("node:fs"),a=require("node:path"),v=require("@devup-ui/webpack-plugin");function b(e,u={}){var p;if(process.env.TURBOPACK==="1"){e??(e={}),e.turbopack??(e.turbopack={}),(p=e.turbopack).rules??(p.rules={});const{package:r="@devup-ui/react",interfacePath:s=".df",cssFile:t=a.resolve(s,"devup-ui.css")}=u,n=a.join(s,"sheet.json"),d=a.join(s,"classMap.json");c.existsSync(s)||c.mkdirSync(s),c.existsSync(t)||c.writeFileSync(t,"/* devup-ui */");const i={[a.basename(t)]:[{loader:"@devup-ui/webpack-plugin/css-loader",options:{watch:process.env.NODE_ENV==="development"}}],"*.{tsx,ts,js,mjs}":[{loader:"@devup-ui/webpack-plugin/loader",options:{package:r,cssFile:t,sheetFile:n,classMapFile:d,watch:process.env.NODE_ENV==="development"}}]};return Object.assign(e.turbopack.rules,i),e}const{webpack:l}=e;return e.webpack=(r,s)=>(u.cssFile??(u.cssFile=a.resolve(u.interfacePath??".next/cache",`devup-ui_${s.buildId}.css`)),r.plugins.push(new v.DevupUIWebpackPlugin({...u,watch:s.dev})),typeof l=="function"?l(r,s):r),e}exports.DevupUI=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("node:fs"),a=require("node:path"),v=require("@devup-ui/webpack-plugin");function b(e,u={}){var p;if(process.env.TURBOPACK==="1"){e??(e={}),e.turbopack??(e.turbopack={}),(p=e.turbopack).rules??(p.rules={});const{package:r="@devup-ui/react",interfacePath:s="df",cssFile:t=a.resolve(s,"devup-ui.css")}=u,n=a.join(s,"sheet.json"),d=a.join(s,"classMap.json");c.existsSync(s)||c.mkdirSync(s),c.existsSync(t)||c.writeFileSync(t,"/* devup-ui */");const i={[a.basename(t)]:[{loader:"@devup-ui/webpack-plugin/css-loader",options:{watch:process.env.NODE_ENV==="development"}}],"*.{tsx,ts,js,mjs}":[{loader:"@devup-ui/webpack-plugin/loader",options:{package:r,cssFile:t,sheetFile:n,classMapFile:d,watch:process.env.NODE_ENV==="development"}}]};return Object.assign(e.turbopack.rules,i),e}const{webpack:l}=e;return e.webpack=(r,s)=>(u.cssFile??(u.cssFile=a.resolve(s.dev?u.interfacePath??"df":".next/cache",`devup-ui_${s.buildId}.css`)),r.plugins.push(new v.DevupUIWebpackPlugin({...u,watch:s.dev})),typeof l=="function"?l(r,s):r),e}exports.DevupUI=b;
package/dist/plugin.js CHANGED
@@ -1,4 +1,4 @@
1
- import { existsSync as p, mkdirSync as b, writeFileSync as k } from "node:fs";
1
+ import { existsSync as p, mkdirSync as n, writeFileSync as k } from "node:fs";
2
2
  import { resolve as l, join as d, basename as m } from "node:path";
3
3
  import { DevupUIWebpackPlugin as h } from "@devup-ui/webpack-plugin";
4
4
  function P(e, r = {}) {
@@ -7,11 +7,11 @@ function P(e, r = {}) {
7
7
  e ?? (e = {}), e.turbopack ?? (e.turbopack = {}), (c = e.turbopack).rules ?? (c.rules = {});
8
8
  const {
9
9
  package: a = "@devup-ui/react",
10
- interfacePath: s = ".df",
10
+ interfacePath: s = "df",
11
11
  cssFile: u = l(s, "devup-ui.css")
12
- } = r, i = d(s, "sheet.json"), n = d(s, "classMap.json");
13
- p(s) || b(s), p(u) || k(u, "/* devup-ui */");
14
- const v = {
12
+ } = r, v = d(s, "sheet.json"), b = d(s, "classMap.json");
13
+ p(s) || n(s), p(u) || k(u, "/* devup-ui */");
14
+ const i = {
15
15
  [m(u)]: [
16
16
  {
17
17
  loader: "@devup-ui/webpack-plugin/css-loader",
@@ -26,18 +26,18 @@ function P(e, r = {}) {
26
26
  options: {
27
27
  package: a,
28
28
  cssFile: u,
29
- sheetFile: i,
30
- classMapFile: n,
29
+ sheetFile: v,
30
+ classMapFile: b,
31
31
  watch: process.env.NODE_ENV === "development"
32
32
  }
33
33
  }
34
34
  ]
35
35
  };
36
- return Object.assign(e.turbopack.rules, v), e;
36
+ return Object.assign(e.turbopack.rules, i), e;
37
37
  }
38
38
  const { webpack: t } = e;
39
39
  return e.webpack = (a, s) => (r.cssFile ?? (r.cssFile = l(
40
- r.interfacePath ?? ".next/cache",
40
+ s.dev ? r.interfacePath ?? "df" : ".next/cache",
41
41
  `devup-ui_${s.buildId}.css`
42
42
  )), a.plugins.push(
43
43
  new h({
package/package.json CHANGED
@@ -19,7 +19,7 @@
19
19
  "webpack"
20
20
  ],
21
21
  "type": "module",
22
- "version": "1.0.13",
22
+ "version": "1.0.14",
23
23
  "publishConfig": {
24
24
  "access": "public"
25
25
  },
@@ -38,13 +38,15 @@
38
38
  "types": "./dist/index.d.ts",
39
39
  "dependencies": {
40
40
  "next": "^15.3",
41
- "@devup-ui/webpack-plugin": "1.0.13"
41
+ "browserslist": "latest",
42
+ "@devup-ui/webpack-plugin": "1.0.14"
42
43
  },
43
44
  "devDependencies": {
44
- "vite": "^7.0.0",
45
+ "vite": "^7.0.3",
45
46
  "vite-plugin-dts": "^4.5.4",
46
47
  "vitest": "^3.2.4",
47
- "typescript": "^5.8.3"
48
+ "typescript": "^5.8.3",
49
+ "@types/webpack": "^5.28.5"
48
50
  },
49
51
  "peerDependencies": {
50
52
  "@devup-ui/webpack-plugin": "*",