@atlaspack/transformer-css 2.14.18 → 2.14.20
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 +18 -0
- package/lib/CSSTransformer.js +5 -0
- package/package.json +3 -3
- package/src/CSSTransformer.js +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaspack/transformer-css
|
|
2
2
|
|
|
3
|
+
## 2.14.20
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#702](https://github.com/atlassian-labs/atlaspack/pull/702) [`daaa768`](https://github.com/atlassian-labs/atlaspack/commit/daaa7688786772d7e3713b71c5bba6b89ec704aa) Thanks [@alshdavid](https://github.com/alshdavid)! - Fixes to Flow types
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`daaa768`](https://github.com/atlassian-labs/atlaspack/commit/daaa7688786772d7e3713b71c5bba6b89ec704aa)]:
|
|
10
|
+
- @atlaspack/plugin@2.14.20
|
|
11
|
+
- @atlaspack/utils@2.17.2
|
|
12
|
+
|
|
13
|
+
## 2.14.19
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies []:
|
|
18
|
+
- @atlaspack/utils@2.17.1
|
|
19
|
+
- @atlaspack/plugin@2.14.19
|
|
20
|
+
|
|
3
21
|
## 2.14.18
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/lib/CSSTransformer.js
CHANGED
|
@@ -118,12 +118,14 @@ var _default = exports.default = new (_plugin().Transformer)({
|
|
|
118
118
|
res = transformStyleAttribute({
|
|
119
119
|
code,
|
|
120
120
|
analyzeDependencies: true,
|
|
121
|
+
// $FlowFixMe
|
|
121
122
|
errorRecovery: (config === null || config === void 0 ? void 0 : config.errorRecovery) || false,
|
|
122
123
|
targets
|
|
123
124
|
});
|
|
124
125
|
} else {
|
|
125
126
|
let cssModules = false;
|
|
126
127
|
if (asset.meta.type !== 'tag' && asset.meta.cssModulesCompiled == null) {
|
|
128
|
+
// $FlowFixMe
|
|
127
129
|
let cssModulesConfig = config === null || config === void 0 ? void 0 : config.cssModules;
|
|
128
130
|
let isCSSModule = /\.module\./.test(asset.filePath);
|
|
129
131
|
if (asset.isSource) {
|
|
@@ -155,8 +157,11 @@ var _default = exports.default = new (_plugin().Transformer)({
|
|
|
155
157
|
preserveImports: true
|
|
156
158
|
} : false,
|
|
157
159
|
sourceMap: !!asset.env.sourceMap,
|
|
160
|
+
// $FlowFixMe
|
|
158
161
|
drafts: config === null || config === void 0 ? void 0 : config.drafts,
|
|
162
|
+
// $FlowFixMe
|
|
159
163
|
pseudoClasses: config === null || config === void 0 ? void 0 : config.pseudoClasses,
|
|
164
|
+
// $FlowFixMe
|
|
160
165
|
errorRecovery: (config === null || config === void 0 ? void 0 : config.errorRecovery) || false,
|
|
161
166
|
targets
|
|
162
167
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/transformer-css",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.20",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@atlaspack/diagnostic": "2.14.1",
|
|
19
|
-
"@atlaspack/plugin": "2.14.
|
|
19
|
+
"@atlaspack/plugin": "2.14.20",
|
|
20
20
|
"@parcel/source-map": "^2.1.1",
|
|
21
|
-
"@atlaspack/utils": "2.17.
|
|
21
|
+
"@atlaspack/utils": "2.17.2",
|
|
22
22
|
"browserslist": "^4.6.6",
|
|
23
23
|
"lightningcss": "^1.28.2",
|
|
24
24
|
"nullthrows": "^1.1.1"
|
package/src/CSSTransformer.js
CHANGED
|
@@ -69,6 +69,7 @@ export default (new Transformer({
|
|
|
69
69
|
res = transformStyleAttribute({
|
|
70
70
|
code,
|
|
71
71
|
analyzeDependencies: true,
|
|
72
|
+
// $FlowFixMe
|
|
72
73
|
errorRecovery: config?.errorRecovery || false,
|
|
73
74
|
targets,
|
|
74
75
|
});
|
|
@@ -78,6 +79,7 @@ export default (new Transformer({
|
|
|
78
79
|
asset.meta.type !== 'tag' &&
|
|
79
80
|
asset.meta.cssModulesCompiled == null
|
|
80
81
|
) {
|
|
82
|
+
// $FlowFixMe
|
|
81
83
|
let cssModulesConfig = config?.cssModules;
|
|
82
84
|
let isCSSModule = /\.module\./.test(asset.filePath);
|
|
83
85
|
if (asset.isSource) {
|
|
@@ -126,8 +128,11 @@ export default (new Transformer({
|
|
|
126
128
|
}
|
|
127
129
|
: false,
|
|
128
130
|
sourceMap: !!asset.env.sourceMap,
|
|
131
|
+
// $FlowFixMe
|
|
129
132
|
drafts: config?.drafts,
|
|
133
|
+
// $FlowFixMe
|
|
130
134
|
pseudoClasses: config?.pseudoClasses,
|
|
135
|
+
// $FlowFixMe
|
|
131
136
|
errorRecovery: config?.errorRecovery || false,
|
|
132
137
|
targets,
|
|
133
138
|
});
|
|
@@ -361,7 +366,7 @@ export default (new Transformer({
|
|
|
361
366
|
asset.setBuffer(buffer);
|
|
362
367
|
return assets;
|
|
363
368
|
},
|
|
364
|
-
}): Transformer);
|
|
369
|
+
}): Transformer<mixed>);
|
|
365
370
|
|
|
366
371
|
let cache = new Map();
|
|
367
372
|
|