babel-plugin-styled-components
Advanced tools
Comparing version 1.8.0 to 1.9.0-0
@@ -8,2 +8,4 @@ "use strict"; | ||
var _pluginSyntaxJsx = _interopRequireDefault(require("@babel/plugin-syntax-jsx")); | ||
var _pure = _interopRequireDefault(require("./visitors/pure")); | ||
@@ -19,8 +21,38 @@ | ||
var _transpileCssProp = _interopRequireDefault(require("./visitors/transpileCssProp")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } | ||
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } | ||
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } | ||
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } | ||
function _default(_ref) { | ||
var t = _ref.types; | ||
return { | ||
inherits: _pluginSyntaxJsx.default, | ||
visitor: { | ||
// These visitors insert newly generated code and missing import/require statements | ||
Program: { | ||
enter(path, state) { | ||
state.required = false; | ||
state.items = []; | ||
}, | ||
exit(path, state) { | ||
var _path$node$body; | ||
(_path$node$body = path.node.body).push.apply(_path$node$body, _toConsumableArray(state.items)); | ||
} | ||
}, | ||
JSXAttribute(path, state) { | ||
(0, _transpileCssProp.default)(t)(path, state); | ||
}, | ||
CallExpression(path, state) { | ||
@@ -27,0 +59,0 @@ (0, _displayNameAndId.default)(t)(path, state); |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.usePureAnnotation = exports.useTranspileTemplateLiterals = exports.useMinify = exports.useFileName = exports.useSSR = exports.useDisplayName = void 0; | ||
exports.useCssProp = exports.usePureAnnotation = exports.useTranspileTemplateLiterals = exports.useMinify = exports.useFileName = exports.useSSR = exports.useDisplayName = void 0; | ||
@@ -49,2 +49,8 @@ function getOption(_ref, name) { | ||
exports.usePureAnnotation = usePureAnnotation; | ||
exports.usePureAnnotation = usePureAnnotation; | ||
var useCssProp = function useCssProp(state) { | ||
return getOption(state, 'cssProp', true); | ||
}; | ||
exports.useCssProp = useCssProp; |
{ | ||
"version": "1.8.0", | ||
"version": "1.9.0-0", | ||
"name": "babel-plugin-styled-components", | ||
@@ -30,2 +30,3 @@ "description": "Improve the debugging experience and add server-side rendering support to styled-components", | ||
"@babel/helper-annotate-as-pure": "^7.0.0", | ||
"@babel/plugin-syntax-jsx": "^7.0.0", | ||
"lodash": "^4.17.10" | ||
@@ -32,0 +33,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36288
18
709
4
2
+ Added@ampproject/remapping@2.3.0(transitive)
+ Added@babel/code-frame@7.24.7(transitive)
+ Added@babel/compat-data@7.25.4(transitive)
+ Added@babel/core@7.25.2(transitive)
+ Added@babel/generator@7.25.6(transitive)
+ Added@babel/helper-compilation-targets@7.25.2(transitive)
+ Added@babel/helper-module-imports@7.24.7(transitive)
+ Added@babel/helper-module-transforms@7.25.2(transitive)
+ Added@babel/helper-plugin-utils@7.24.8(transitive)
+ Added@babel/helper-simple-access@7.24.7(transitive)
+ Added@babel/helper-validator-option@7.24.8(transitive)
+ Added@babel/helpers@7.25.6(transitive)
+ Added@babel/highlight@7.24.7(transitive)
+ Added@babel/parser@7.25.6(transitive)
+ Added@babel/plugin-syntax-jsx@7.24.7(transitive)
+ Added@babel/template@7.25.0(transitive)
+ Added@babel/traverse@7.25.6(transitive)
+ Added@jridgewell/gen-mapping@0.3.5(transitive)
+ Added@jridgewell/resolve-uri@3.1.2(transitive)
+ Added@jridgewell/set-array@1.2.1(transitive)
+ Added@jridgewell/sourcemap-codec@1.5.0(transitive)
+ Added@jridgewell/trace-mapping@0.3.25(transitive)
+ Addedansi-styles@3.2.1(transitive)
+ Addedbrowserslist@4.24.0(transitive)
+ Addedcaniuse-lite@1.0.30001664(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedconvert-source-map@2.0.0(transitive)
+ Addeddebug@4.3.7(transitive)
+ Addedelectron-to-chromium@1.5.29(transitive)
+ Addedescalade@3.2.0(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedgensync@1.0.0-beta.2(transitive)
+ Addedglobals@11.12.0(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedjsesc@2.5.2(transitive)
+ Addedjson5@2.2.3(transitive)
+ Addedlru-cache@5.1.1(transitive)
+ Addedms@2.1.3(transitive)
+ Addednode-releases@2.0.18(transitive)
+ Addedsemver@6.3.1(transitive)
+ Addedsupports-color@5.5.0(transitive)
+ Addedupdate-browserslist-db@1.1.1(transitive)
+ Addedyallist@3.1.1(transitive)