@pandacss/webpack 2.0.0-beta.15 → 2.0.0-beta.16
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.cjs +5 -2
- package/dist/index.js +5 -2
- package/dist/next.cjs +5 -2
- package/dist/next.js +5 -2
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -50,11 +50,14 @@ var PandaWebpackPlugin = class {
|
|
|
50
50
|
/** Watch-mode incremental sync: fold changed files into the driver before this
|
|
51
51
|
* rebuild's modules (including the layer-declaring CSS) are read. The driver
|
|
52
52
|
* re-reads changed files through its own fs. */
|
|
53
|
-
async #sync(cwd, changed, warn) {
|
|
53
|
+
async #sync(cwd, changed, removed, warn) {
|
|
54
54
|
await this.#build(cwd);
|
|
55
55
|
const driver = this.#driver;
|
|
56
56
|
let configChanged = false;
|
|
57
57
|
let designSystemChanged = false;
|
|
58
|
+
for (const file of removed) {
|
|
59
|
+
if (driver.isSourceFile(file)) driver.applyChange({ path: file, kind: "unlink" });
|
|
60
|
+
}
|
|
58
61
|
for (const file of changed) {
|
|
59
62
|
const designSystemFile = driver.isDesignSystemFile?.(file) ?? false;
|
|
60
63
|
if (designSystemFile) {
|
|
@@ -111,7 +114,7 @@ ${shown}${hidden}`);
|
|
|
111
114
|
compiler.hooks.beforeCompile.tapPromise(NAME, () => this.#build(cwd));
|
|
112
115
|
compiler.hooks.watchRun.tapPromise(
|
|
113
116
|
NAME,
|
|
114
|
-
(c) => this.#sync(cwd, c.modifiedFiles ?? [], (message) => logger?.warn(message))
|
|
117
|
+
(c) => this.#sync(cwd, c.modifiedFiles ?? [], c.removedFiles ?? [], (message) => logger?.warn(message))
|
|
115
118
|
);
|
|
116
119
|
}
|
|
117
120
|
};
|
package/dist/index.js
CHANGED
|
@@ -25,11 +25,14 @@ var PandaWebpackPlugin = class {
|
|
|
25
25
|
/** Watch-mode incremental sync: fold changed files into the driver before this
|
|
26
26
|
* rebuild's modules (including the layer-declaring CSS) are read. The driver
|
|
27
27
|
* re-reads changed files through its own fs. */
|
|
28
|
-
async #sync(cwd, changed, warn) {
|
|
28
|
+
async #sync(cwd, changed, removed, warn) {
|
|
29
29
|
await this.#build(cwd);
|
|
30
30
|
const driver = this.#driver;
|
|
31
31
|
let configChanged = false;
|
|
32
32
|
let designSystemChanged = false;
|
|
33
|
+
for (const file of removed) {
|
|
34
|
+
if (driver.isSourceFile(file)) driver.applyChange({ path: file, kind: "unlink" });
|
|
35
|
+
}
|
|
33
36
|
for (const file of changed) {
|
|
34
37
|
const designSystemFile = driver.isDesignSystemFile?.(file) ?? false;
|
|
35
38
|
if (designSystemFile) {
|
|
@@ -86,7 +89,7 @@ ${shown}${hidden}`);
|
|
|
86
89
|
compiler.hooks.beforeCompile.tapPromise(NAME, () => this.#build(cwd));
|
|
87
90
|
compiler.hooks.watchRun.tapPromise(
|
|
88
91
|
NAME,
|
|
89
|
-
(c) => this.#sync(cwd, c.modifiedFiles ?? [], (message) => logger?.warn(message))
|
|
92
|
+
(c) => this.#sync(cwd, c.modifiedFiles ?? [], c.removedFiles ?? [], (message) => logger?.warn(message))
|
|
90
93
|
);
|
|
91
94
|
}
|
|
92
95
|
};
|
package/dist/next.cjs
CHANGED
|
@@ -52,11 +52,14 @@ var PandaWebpackPlugin = class {
|
|
|
52
52
|
/** Watch-mode incremental sync: fold changed files into the driver before this
|
|
53
53
|
* rebuild's modules (including the layer-declaring CSS) are read. The driver
|
|
54
54
|
* re-reads changed files through its own fs. */
|
|
55
|
-
async #sync(cwd, changed, warn) {
|
|
55
|
+
async #sync(cwd, changed, removed, warn) {
|
|
56
56
|
await this.#build(cwd);
|
|
57
57
|
const driver = this.#driver;
|
|
58
58
|
let configChanged = false;
|
|
59
59
|
let designSystemChanged = false;
|
|
60
|
+
for (const file of removed) {
|
|
61
|
+
if (driver.isSourceFile(file)) driver.applyChange({ path: file, kind: "unlink" });
|
|
62
|
+
}
|
|
60
63
|
for (const file of changed) {
|
|
61
64
|
const designSystemFile = driver.isDesignSystemFile?.(file) ?? false;
|
|
62
65
|
if (designSystemFile) {
|
|
@@ -113,7 +116,7 @@ ${shown}${hidden}`);
|
|
|
113
116
|
compiler.hooks.beforeCompile.tapPromise(NAME, () => this.#build(cwd));
|
|
114
117
|
compiler.hooks.watchRun.tapPromise(
|
|
115
118
|
NAME,
|
|
116
|
-
(c) => this.#sync(cwd, c.modifiedFiles ?? [], (message) => logger?.warn(message))
|
|
119
|
+
(c) => this.#sync(cwd, c.modifiedFiles ?? [], c.removedFiles ?? [], (message) => logger?.warn(message))
|
|
117
120
|
);
|
|
118
121
|
}
|
|
119
122
|
};
|
package/dist/next.js
CHANGED
|
@@ -25,11 +25,14 @@ var PandaWebpackPlugin = class {
|
|
|
25
25
|
/** Watch-mode incremental sync: fold changed files into the driver before this
|
|
26
26
|
* rebuild's modules (including the layer-declaring CSS) are read. The driver
|
|
27
27
|
* re-reads changed files through its own fs. */
|
|
28
|
-
async #sync(cwd, changed, warn) {
|
|
28
|
+
async #sync(cwd, changed, removed, warn) {
|
|
29
29
|
await this.#build(cwd);
|
|
30
30
|
const driver = this.#driver;
|
|
31
31
|
let configChanged = false;
|
|
32
32
|
let designSystemChanged = false;
|
|
33
|
+
for (const file of removed) {
|
|
34
|
+
if (driver.isSourceFile(file)) driver.applyChange({ path: file, kind: "unlink" });
|
|
35
|
+
}
|
|
33
36
|
for (const file of changed) {
|
|
34
37
|
const designSystemFile = driver.isDesignSystemFile?.(file) ?? false;
|
|
35
38
|
if (designSystemFile) {
|
|
@@ -86,7 +89,7 @@ ${shown}${hidden}`);
|
|
|
86
89
|
compiler.hooks.beforeCompile.tapPromise(NAME, () => this.#build(cwd));
|
|
87
90
|
compiler.hooks.watchRun.tapPromise(
|
|
88
91
|
NAME,
|
|
89
|
-
(c) => this.#sync(cwd, c.modifiedFiles ?? [], (message) => logger?.warn(message))
|
|
92
|
+
(c) => this.#sync(cwd, c.modifiedFiles ?? [], c.removedFiles ?? [], (message) => logger?.warn(message))
|
|
90
93
|
);
|
|
91
94
|
}
|
|
92
95
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/webpack",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.16",
|
|
4
4
|
"description": "webpack plugin for Panda CSS (Next.js compatible)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"dist"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@pandacss/compiler": "2.0.0-beta.
|
|
43
|
-
"@pandacss/compiler-shared": "2.0.0-beta.
|
|
44
|
-
"@pandacss/transformer": "2.0.0-beta.
|
|
42
|
+
"@pandacss/compiler": "2.0.0-beta.16",
|
|
43
|
+
"@pandacss/compiler-shared": "2.0.0-beta.16",
|
|
44
|
+
"@pandacss/transformer": "2.0.0-beta.16"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"webpack": ">=5.0.0"
|