@compiled/babel-plugin-css-in-js
Advanced tools
Comparing version 0.2.15-a3f0add8bdc3394e8057ec81d8eb147f932ef6ac.0 to 0.2.15
import { parse as babelParse, ParserOptions } from '@babel/core'; | ||
export default function compiledBabelPlugin(): { | ||
import { TransformerOptions } from '@compiled/ts-transform-css-in-js/dist/types'; | ||
export default function compiledBabelPlugin(_: any, opts?: TransformerOptions): { | ||
parserOverride(code: string, parserOpts: ParserOptions, parse: typeof babelParse): import("@babel/types").Program | import("@babel/types").File | null; | ||
}; |
@@ -23,7 +23,8 @@ "use strict"; | ||
}; | ||
function compiledBabelPlugin() { | ||
function compiledBabelPlugin(_, opts) { | ||
if (opts === void 0) { opts = {}; } | ||
return { | ||
parserOverride: function (code, parserOpts, parse) { | ||
var transformedCode = ts.transpileModule(code, { | ||
transformers: { before: [ts_transform_css_in_js_1.default(stubProgam)] }, | ||
transformers: { before: [ts_transform_css_in_js_1.default(stubProgam, { options: opts })] }, | ||
compilerOptions: { | ||
@@ -30,0 +31,0 @@ module: ts.ModuleKind.ESNext, |
@@ -1,1 +0,30 @@ | ||
{"name":"@compiled/babel-plugin-css-in-js","version":"0.2.15-a3f0add8bdc3394e8057ec81d8eb147f932ef6ac.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.15-a3f0add8bdc3394e8057ec81d8eb147f932ef6ac.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.15", | ||
"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.15", | ||
"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
Sorry, the diff of this file is not supported yet
7762
7
162
+ Added@compiled/ts-transform-css-in-js@0.2.15(transitive)
- Removed@compiled/ts-transform-css-in-js@0.2.15-a3f0add8bdc3394e8057ec81d8eb147f932ef6ac.0(transitive)