@compiled/webpack-loader 0.18.1 → 0.19.0

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/types.d.ts CHANGED
@@ -126,7 +126,7 @@ export interface CompiledExtractPluginOptions {
126
126
  /**
127
127
  * Whether to sort shorthand and longhand properties,
128
128
  * eg. `margin` before `margin-top` for enforced determinism.
129
- * Defaults to `false`.
129
+ * Defaults to `true`.
130
130
  */
131
131
  sortShorthand?: boolean;
132
132
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compiled/webpack-loader",
3
- "version": "0.18.1",
3
+ "version": "0.19.0",
4
4
  "description": "A familiar and performant compile time CSS-in-JS library for React.",
5
5
  "homepage": "https://compiledcssinjs.com/docs/pkg-webpack-loader",
6
6
  "bugs": "https://github.com/atlassian-labs/compiled/issues/new?assignees=&labels=bug&template=bug_report.md",
@@ -22,11 +22,11 @@
22
22
  "dependencies": {
23
23
  "@babel/core": "^7.21.8",
24
24
  "@babel/parser": "^7.21.8",
25
- "@compiled/babel-plugin": "^0.32.2",
26
- "@compiled/babel-plugin-strip-runtime": "^0.32.2",
27
- "@compiled/css": "^0.17.0",
28
- "@compiled/utils": "^0.13.0",
29
- "enhanced-resolve": "^5.15.0",
25
+ "@compiled/babel-plugin": "^0.33.0",
26
+ "@compiled/babel-plugin-strip-runtime": "^0.33.0",
27
+ "@compiled/css": "^0.18.0",
28
+ "@compiled/utils": "^0.13.1",
29
+ "enhanced-resolve": "^5.17.1",
30
30
  "loader-utils": "^2.0.4",
31
31
  "webpack-sources": "^3.2.3"
32
32
  },
@@ -119,8 +119,8 @@ describe('CompiledExtractPlugin', () => {
119
119
 
120
120
  // Extract the styles into said bundle
121
121
  expect(assets[cssFiles[0]]).toMatchInlineSnapshot(`
122
- "._19it1e35{border:2px solid coral}
123
- ._syaz1vyr{color:coral}
122
+ "
123
+ ._19it1e35{border:2px solid coral}._syaz1vyr{color:coral}
124
124
  "
125
125
  `);
126
126
  }, 10000);
@@ -129,12 +129,12 @@ describe('CompiledExtractPlugin', () => {
129
129
  const actual = await bundle(join(fixturesPath, 'babel.tsx'));
130
130
 
131
131
  expect(actual).toMatchInlineSnapshot(`
132
- "._19pk1ul9{margin-top:30px}
132
+ "
133
+ ._19itlf8h{border:2px solid blue}._19pk1ul9{margin-top:30px}
133
134
  ._19bvftgi{padding-left:8px}
134
135
  ._n3tdftgi{padding-bottom:8px}
135
136
  ._u5f3ftgi{padding-right:8px}
136
137
  ._ca0qftgi{padding-top:8px}
137
- ._19itlf8h{border:2px solid blue}
138
138
  ._1wyb1ul9{font-size:30px}
139
139
  ._syaz13q2{color:blue}
140
140
  "
@@ -155,30 +155,30 @@ describe('CompiledExtractPlugin', () => {
155
155
  const actual = await bundle(join(fixturesPath, 'binding-not-found.tsx'));
156
156
 
157
157
  expect(actual).toMatchInlineSnapshot(`
158
- "._syaz1r31{color:currentColor}
158
+ "
159
+ ._n7zl17qw{border-bottom:1px solid transparent}
160
+ ._n7zl1l01{border-bottom:1px solid rgba(135,119,217,0.2)}._syaz1r31{color:currentColor}
159
161
  ._ajmmnqa1{text-decoration-style:solid}
160
162
  ._1hmsglyw{text-decoration-line:none}
161
163
  ._4bfu1r31{text-decoration-color:currentColor}
162
- ._n7zl17qw{border-bottom:1px solid transparent}
163
- ._n7zl1l01{border-bottom:1px solid rgba(135,119,217,0.2)}
164
164
  ._syaz1cj8{color:var(--_xexnhp)}
165
165
  ._p12f1us4{max-width:140rem}
166
- ._18u01wug{margin-left:auto}
167
- ._otyridpf{margin-bottom:0}
168
- ._2hwx1wug{margin-right:auto}
169
- ._19pkidpf{margin-top:0}
170
166
  ._1xi2idpf{right:0}
171
167
  ._1ltvidpf{left:0}
172
168
  ._154iidpf{top:0}
173
169
  ._kqswstnw{position:absolute}
174
170
  ._1pbykb7n{z-index:1}
171
+ ._4cvr1h6o{align-items:center}
172
+ ._1e0c1txw{display:flex}
173
+ ._4t3i1jdh{height:9rem}
174
+ ._18u01wug{margin-left:auto}
175
+ ._otyridpf{margin-bottom:0}
176
+ ._2hwx1wug{margin-right:auto}
177
+ ._19pkidpf{margin-top:0}
175
178
  ._19bv1wto{padding-left:3rem}
176
179
  ._n3tdidpf{padding-bottom:0}
177
180
  ._u5f31wto{padding-right:3rem}
178
181
  ._ca0qidpf{padding-top:0}
179
- ._4cvr1h6o{align-items:center}
180
- ._1e0c1txw{display:flex}
181
- ._4t3i1jdh{height:9rem}
182
182
  "
183
183
  `);
184
184
  }, 10000);
@@ -187,9 +187,10 @@ describe('CompiledExtractPlugin', () => {
187
187
  const actual = await bundle(join(fixturesPath, 'extracted-component.tsx'));
188
188
 
189
189
  expect(actual).toMatchInlineSnapshot(`
190
- "._1wyb1fwx{font-size:12px}
191
- ._19bv1vi7{padding-left:32px}
190
+ "
192
191
  ._19itlf8h{border:2px solid blue}
192
+ ._1wyb1fwx{font-size:12px}
193
+ ._19bv1vi7{padding-left:32px}
193
194
  ._19pk1ul9{margin-top:30px}
194
195
  ._1wyb1ul9{font-size:30px}
195
196
  ._bfhk1gy6{background-color:yellow}
package/src/types.ts CHANGED
@@ -148,7 +148,7 @@ export interface CompiledExtractPluginOptions {
148
148
  /**
149
149
  * Whether to sort shorthand and longhand properties,
150
150
  * eg. `margin` before `margin-top` for enforced determinism.
151
- * Defaults to `false`.
151
+ * Defaults to `true`.
152
152
  */
153
153
  sortShorthand?: boolean;
154
154
  }