@compiled/babel-plugin-css-in-js
Advanced tools
Comparing version 0.2.9-2b456e29bfd10be027a5b36b4c98a99f1440b5bc.0 to 0.2.9
@@ -22,3 +22,3 @@ "use strict"; | ||
var output = core_1.transformSync("\n import { styled } from '@compiled/css-in-js';\n\n styled.div`\n font-size: 12px;\n `;\n ", babelOpts); | ||
expect((_a = output) === null || _a === void 0 ? void 0 : _a.code).toMatchInlineSnapshot("\n \"import React from \\\"react\\\";\n import { Style } from '@compiled/css-in-js';\n React.forwardRef((props, ref) => <><Style hash=\\\"css-1x3e11p\\\">{[\\\".css-1x3e11p{font-size:12px;}\\\"]}</Style><div {...props} ref={ref} className={\\\"css-1x3e11p\\\" + (props.className ? \\\" \\\" + props.className : \\\"\\\")} /></>);\"\n "); | ||
expect((_a = output) === null || _a === void 0 ? void 0 : _a.code).toMatchInlineSnapshot("\n \"import React from \\\"react\\\";\n import { Style } from '@compiled/css-in-js';\n React.forwardRef(({\n as: C = \\\"div\\\",\n ...props\n }, ref) => <><Style hash=\\\"css-1x3e11p\\\">{[\\\".css-1x3e11p{font-size:12px;}\\\"]}</Style><C {...props} ref={ref} className={\\\"css-1x3e11p\\\" + (props.className ? \\\" \\\" + props.className : \\\"\\\")} /></>);\"\n "); | ||
}); | ||
@@ -25,0 +25,0 @@ it('should transform css prop', function () { |
@@ -1,1 +0,30 @@ | ||
{"name":"@compiled/babel-plugin-css-in-js","version":"0.2.9-2b456e29bfd10be027a5b36b4c98a99f1440b5bc.0","description":"The CSS in JS authoring experience you love without the runtime cost","author":"Michael Dougall","license":"Apache-2.0","homepage":"https://compiledcssinjs.com","bugs":"https://github.com/atlassian-labs/compiled-css-in-js/issues/new?assignees=&labels=bug&template=bug_report.md","repository":{"type":"git","url":"https://github.com/atlassian-labs/compiled-css-in-js.git","directory":"packages/babel-plugin"},"main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","files":["dist","src"],"dependencies":{"@babel/core":"^7.9.0","@compiled/ts-transform-css-in-js":"0.2.9-2b456e29bfd10be027a5b36b4c98a99f1440b5bc.0","typescript":"^3.7.3"},"devDependencies":{"@babel/plugin-syntax-jsx":"^7.8.3","@types/babel__core":"^7.1.6"}} | ||
{ | ||
"name": "@compiled/babel-plugin-css-in-js", | ||
"version": "0.2.9", | ||
"description": "The CSS in JS authoring experience you love without the runtime cost", | ||
"author": "Michael Dougall", | ||
"license": "Apache-2.0", | ||
"homepage": "https://compiledcssinjs.com", | ||
"bugs": "https://github.com/atlassian-labs/compiled-css-in-js/issues/new?assignees=&labels=bug&template=bug_report.md", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/atlassian-labs/compiled-css-in-js.git", | ||
"directory": "packages/babel-plugin" | ||
}, | ||
"main": "./dist/index.js", | ||
"module": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"files": [ | ||
"dist", | ||
"src" | ||
], | ||
"dependencies": { | ||
"@babel/core": "^7.9.0", | ||
"@compiled/ts-transform-css-in-js": "0.2.9", | ||
"typescript": "^3.7.3" | ||
}, | ||
"devDependencies": { | ||
"@babel/plugin-syntax-jsx": "^7.8.3", | ||
"@types/babel__core": "^7.1.6" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
10391
174
+ Added@compiled/ts-transform-css-in-js@0.2.9(transitive)
- Removed@compiled/ts-transform-css-in-js@0.2.9-2b456e29bfd10be027a5b36b4c98a99f1440b5bc.0(transitive)