vite-plugin-qingkuai 1.0.6 → 1.0.7

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 CHANGED
@@ -47,6 +47,9 @@ async function attachScopeForStyleSelectors(code, hash, sourceFile, map) {
47
47
  {
48
48
  postcssPlugin: "postcss-attach-scope-qingkuai",
49
49
  Rule(rule) {
50
+ if (rule.parent && "name" in rule?.parent && rule.parent.name === "keyframes") {
51
+ return;
52
+ }
50
53
  rule.selector = selectorParser((selectors) => {
51
54
  selectors.each((selector) => {
52
55
  const index = selector.nodes.findLastIndex(({ type }) => {
@@ -160,6 +163,7 @@ function qingkuaiPlugin() {
160
163
  style.loc.start.column - 1
161
164
  )
162
165
  );
166
+ console.log(attachScopeResult.code);
163
167
  return {
164
168
  code: attachScopeResult.code,
165
169
  map: {
package/dist/index.js CHANGED
@@ -45,6 +45,9 @@ async function attachScopeForStyleSelectors(code, hash, sourceFile, map) {
45
45
  {
46
46
  postcssPlugin: "postcss-attach-scope-qingkuai",
47
47
  Rule(rule) {
48
+ if (rule.parent && "name" in rule?.parent && rule.parent.name === "keyframes") {
49
+ return;
50
+ }
48
51
  rule.selector = selectorParser((selectors) => {
49
52
  selectors.each((selector) => {
50
53
  const index = selector.nodes.findLastIndex(({ type }) => {
@@ -158,6 +161,7 @@ function qingkuaiPlugin() {
158
161
  style.loc.start.column - 1
159
162
  )
160
163
  );
164
+ console.log(attachScopeResult.code);
161
165
  return {
162
166
  code: attachScopeResult.code,
163
167
  map: {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "vite-plugin-qingkuai",
3
3
  "author": "mlgq",
4
4
  "license": "MIT",
5
- "version": "1.0.6",
5
+ "version": "1.0.7",
6
6
  "type": "module",
7
7
  "keywords": [
8
8
  "vite",