@compiled/parcel-transformer 0.14.1 → 0.14.2
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@compiled/parcel-transformer",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.2",
|
|
4
4
|
"description": "A familiar and performant compile time CSS-in-JS library for React.",
|
|
5
5
|
"homepage": "https://compiledcssinjs.com/docs/pkg-parcel-transformer",
|
|
6
6
|
"bugs": "https://github.com/atlassian-labs/compiled/issues/new?assignees=&labels=bug&template=bug_report.md",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@babel/core": "^7.21.8",
|
|
24
24
|
"@babel/generator": "^7.21.5",
|
|
25
|
-
"@compiled/babel-plugin": "^0.
|
|
25
|
+
"@compiled/babel-plugin": "^0.26.0",
|
|
26
26
|
"@compiled/babel-plugin-strip-runtime": "^0.25.0",
|
|
27
27
|
"@compiled/utils": "^0.9.0",
|
|
28
28
|
"@parcel/plugin": "^2.8.3",
|
|
@@ -204,6 +204,7 @@ it('transforms assets with compiled and extraction babel plugins', async () => {
|
|
|
204
204
|
expect(extractedComponent).toMatchInlineSnapshot(`
|
|
205
205
|
"var Button = (0, _react.forwardRef)(function(_ref, __cmplr) {
|
|
206
206
|
var _ref$as = _ref.as, C = _ref$as === void 0 ? "button" : _ref$as, __cmpls = _ref.style, __cmplp = _objectWithoutProperties(_ref, _excluded);
|
|
207
|
+
if (__cmplp.innerRef) throw new Error("Please use 'ref' instead of 'innerRef'.");
|
|
207
208
|
return /*#__PURE__*/ (0, _jsxRuntime.jsx)(C, _objectSpread(_objectSpread({}, __cmplp), {}, {
|
|
208
209
|
style: __cmpls,
|
|
209
210
|
ref: __cmplr,
|