@atlaspack/optimizer-css 2.14.5-canary.190 → 2.14.5-canary.192

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaspack/optimizer-css
2
2
 
3
+ ## 2.14.30
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @atlaspack/utils@2.19.2
9
+ - @atlaspack/plugin@2.14.30
10
+
3
11
  ## 2.14.29
4
12
 
5
13
  ### Patch Changes
@@ -137,15 +137,11 @@ Atlaspack\'s default CSS minifer changed from cssnano to lightningcss, but a "cs
137
137
  return;
138
138
  }
139
139
  let defaultImport = null;
140
- // @ts-expect-error TS2345
141
140
  if (usedSymbols.has('default')) {
142
141
  let incoming = bundleGraph.getIncomingDependencies(asset);
143
- defaultImport = incoming.find(d =>
144
- // @ts-expect-error TS2345
145
- d.symbols.hasExportSymbol('default'));
142
+ defaultImport = incoming.find(d => d.symbols.hasExportSymbol('default'));
146
143
  if (defaultImport) {
147
144
  var _defaultImport$symbol;
148
- // @ts-expect-error TS2345
149
145
  let loc = (_defaultImport$symbol = defaultImport.symbols.get('default')) === null || _defaultImport$symbol === void 0 ? void 0 : _defaultImport$symbol.loc;
150
146
  logger.warn({
151
147
  message: 'CSS modules cannot be tree shaken when imported with a default specifier',
@@ -160,13 +156,10 @@ Atlaspack\'s default CSS minifer changed from cssnano to lightningcss, but a "cs
160
156
  });
161
157
  }
162
158
  }
163
-
164
- // @ts-expect-error TS2345
165
159
  if (!defaultImport && !usedSymbols.has('*')) {
166
160
  for (let [symbol, {
167
161
  local
168
162
  }] of asset.symbols) {
169
- // @ts-expect-error TS2367
170
163
  if (local !== 'default' && !usedSymbols.has(symbol)) {
171
164
  unusedSymbols.push(local);
172
165
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/optimizer-css",
3
- "version": "2.14.5-canary.190+7a52bab62",
3
+ "version": "2.14.5-canary.192+dc6e4b2bb",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -16,9 +16,9 @@
16
16
  "node": ">= 16.0.0"
17
17
  },
18
18
  "dependencies": {
19
- "@atlaspack/diagnostic": "2.14.1-canary.258+7a52bab62",
20
- "@atlaspack/plugin": "2.14.5-canary.190+7a52bab62",
21
- "@atlaspack/utils": "2.14.5-canary.190+7a52bab62",
19
+ "@atlaspack/diagnostic": "2.14.1-canary.260+dc6e4b2bb",
20
+ "@atlaspack/plugin": "2.14.5-canary.192+dc6e4b2bb",
21
+ "@atlaspack/utils": "2.14.5-canary.192+dc6e4b2bb",
22
22
  "@parcel/source-map": "^2.1.1",
23
23
  "browserslist": "^4.6.6",
24
24
  "lightningcss": "^1.28.2",
@@ -35,5 +35,5 @@
35
35
  "check-ts": "tsc --emitDeclarationOnly --rootDir src",
36
36
  "build:lib": "gulp build --gulpfile ../../../gulpfile.js --cwd ."
37
37
  },
38
- "gitHead": "7a52bab6281e8edbfa66af248eb6f872c6b4b7bd"
38
+ "gitHead": "dc6e4b2bb99f371d225c296dbf96363fdac52333"
39
39
  }
@@ -98,15 +98,12 @@ Atlaspack\'s default CSS minifer changed from cssnano to lightningcss, but a "cs
98
98
  }
99
99
 
100
100
  let defaultImport = null;
101
- // @ts-expect-error TS2345
102
101
  if (usedSymbols.has('default')) {
103
102
  let incoming = bundleGraph.getIncomingDependencies(asset);
104
103
  defaultImport = incoming.find((d) =>
105
- // @ts-expect-error TS2345
106
104
  d.symbols.hasExportSymbol('default'),
107
105
  );
108
106
  if (defaultImport) {
109
- // @ts-expect-error TS2345
110
107
  let loc = defaultImport.symbols.get('default')?.loc;
111
108
  logger.warn({
112
109
  message:
@@ -130,10 +127,8 @@ Atlaspack\'s default CSS minifer changed from cssnano to lightningcss, but a "cs
130
127
  }
131
128
  }
132
129
 
133
- // @ts-expect-error TS2345
134
130
  if (!defaultImport && !usedSymbols.has('*')) {
135
131
  for (let [symbol, {local}] of asset.symbols) {
136
- // @ts-expect-error TS2367
137
132
  if (local !== 'default' && !usedSymbols.has(symbol)) {
138
133
  unusedSymbols.push(local);
139
134
  }