@plumeria/webpack-plugin 0.17.1 → 0.18.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.js CHANGED
@@ -86,7 +86,6 @@ class PlumeriaPlugin {
86
86
  const keyframeStylesSet = new Set();
87
87
  const varStylesSet = new Set();
88
88
  const themeStylesSet = new Set();
89
- const globalStylesSet = new Set();
90
89
  const baseStylesSet = new Set();
91
90
  for (const s of sortedStyles) {
92
91
  if (s.keyframeStyles?.trim().length > 0)
@@ -95,8 +94,6 @@ class PlumeriaPlugin {
95
94
  varStylesSet.add(s.varStyles);
96
95
  if (s.themeStyles?.trim().length > 0)
97
96
  themeStylesSet.add(s.themeStyles);
98
- if (s.globalStyles?.trim().length > 0)
99
- globalStylesSet.add(s.globalStyles);
100
97
  if (s.baseStyles?.trim().length > 0)
101
98
  baseStylesSet.add(s.baseStyles);
102
99
  }
@@ -104,7 +101,6 @@ class PlumeriaPlugin {
104
101
  ...Array.from(keyframeStylesSet),
105
102
  ...Array.from(varStylesSet),
106
103
  ...Array.from(themeStylesSet),
107
- ...Array.from(globalStylesSet),
108
104
  ...Array.from(baseStylesSet),
109
105
  ]
110
106
  .filter(Boolean)
@@ -546,7 +546,6 @@ function loader(source) {
546
546
  defineVarsObjectTable = defineVarsObjectTableLocal;
547
547
  defineThemeObjectTable = defineThemeObjectTableLocal;
548
548
  let extractedObject = null;
549
- const extractedGlobalObjects = [];
550
549
  let ast;
551
550
  try {
552
551
  ast = (0, core_1.parseSync)(source, {
@@ -577,11 +576,6 @@ function loader(source) {
577
576
  t.isObjectExpression(args[0])) {
578
577
  extractedObject = objectExpressionToObject(args[0], constTable, keyframesHashTable, variableTable, themeTable);
579
578
  }
580
- if (callee.property.name === 'global' &&
581
- args.length === 1 &&
582
- t.isObjectExpression(args[0])) {
583
- extractedGlobalObjects.push(objectExpressionToObject(args[0], constTable, keyframesHashTable, variableTable, themeTable));
584
- }
585
579
  }
586
580
  },
587
581
  },
@@ -597,11 +591,6 @@ function loader(source) {
597
591
  if (base)
598
592
  fileStyles.baseStyles = base;
599
593
  }
600
- if (extractedGlobalObjects.length > 0) {
601
- fileStyles.globalStyles = extractedGlobalObjects
602
- .map((obj) => (0, zss_engine_1.transpile)(obj, undefined, '--global').styleSheet)
603
- .join('\n');
604
- }
605
594
  if (Object.keys(keyframesObjectTable).length > 0) {
606
595
  fileStyles.keyframeStyles = Object.entries(keyframesObjectTable)
607
596
  .map(([hash, obj]) => (0, zss_engine_1.transpile)({ [`@keyframes ${hash}`]: obj }, undefined, '--global')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/webpack-plugin",
3
- "version": "0.17.1",
3
+ "version": "0.18.1",
4
4
  "description": "Plumeria Webpack plugin",
5
5
  "repository": {
6
6
  "type": "git",