From 4c0cf5a14059b951aac8715ada8d1a3f13f7a65a Mon Sep 17 00:00:00 2001 From: mitchellhamilton Date: Mon, 11 Mar 2019 16:30:26 +1000 Subject: [PATCH] Whitespace because I think I messed up that release --- packages/babel-plugin-emotion/src/index.js | 1 - packages/babel-plugin-jsx-pragmatic/src/index.js | 1 - packages/babel-preset-css-prop/src/index.js | 1 + packages/cache/src/index.js | 1 - packages/create-emotion/src/index.js | 1 - packages/css/src/index.js | 1 + packages/serialize/src/index.js | 1 - 7 files changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/babel-plugin-emotion/src/index.js b/packages/babel-plugin-emotion/src/index.js index 84a6cbdd4..464ab6e4b 100644 --- a/packages/babel-plugin-emotion/src/index.js +++ b/packages/babel-plugin-emotion/src/index.js @@ -184,7 +184,6 @@ export default function(babel: *) { t.isArrayExpression(path.node.value.expression)) ) { let expressionPath = path.get('value.expression') - let sourceMap = state.emotionSourceMap && path.node.loc !== undefined ? getSourceMap(path.node.loc.start, state) diff --git a/packages/babel-plugin-jsx-pragmatic/src/index.js b/packages/babel-plugin-jsx-pragmatic/src/index.js index 3c3df7f4c..4c92452b7 100644 --- a/packages/babel-plugin-jsx-pragmatic/src/index.js +++ b/packages/babel-plugin-jsx-pragmatic/src/index.js @@ -2,7 +2,6 @@ import syntaxJsx from '@babel/plugin-syntax-jsx' export default function jsxPragmatic(babel) { const t = babel.types - function getPragmaImport(state) { return t.importDeclaration( [ diff --git a/packages/babel-preset-css-prop/src/index.js b/packages/babel-preset-css-prop/src/index.js index 3924b7864..f04b249da 100644 --- a/packages/babel-preset-css-prop/src/index.js +++ b/packages/babel-preset-css-prop/src/index.js @@ -8,6 +8,7 @@ let pragmaName = '___EmotionJSX' // this means if @babel/plugin-transform-react-jsx adds more options, it'll just work // and if babel-plugin-emotion adds more options we can add them since this lives in // the same repo as babel-plugin-emotion + export default ( api, { pragma, sourceMap, autoLabel, labelFormat, instances, ...options } = {} diff --git a/packages/cache/src/index.js b/packages/cache/src/index.js index 11ccc320a..29a8309db 100644 --- a/packages/cache/src/index.js +++ b/packages/cache/src/index.js @@ -11,7 +11,6 @@ let isBrowser = typeof document !== 'undefined' export type PrefixOption = | boolean | ((key: string, value: string, context: 1 | 2 | 3) => boolean) - type StylisPlugins = StylisPlugin[] | StylisPlugin export type Options = { diff --git a/packages/create-emotion/src/index.js b/packages/create-emotion/src/index.js index b49025394..fc18447df 100644 --- a/packages/create-emotion/src/index.js +++ b/packages/create-emotion/src/index.js @@ -16,7 +16,6 @@ function insertWithoutScoping(cache, serialized: SerializedStyles) { function merge(registered: Object, css: (*) => string, className: string) { const registeredStyles = [] - const rawClassName = getRegisteredStyles( registered, registeredStyles, diff --git a/packages/css/src/index.js b/packages/css/src/index.js index e6155e2dc..ac79c1dfa 100644 --- a/packages/css/src/index.js +++ b/packages/css/src/index.js @@ -1,4 +1,5 @@ // @flow + import type { Interpolation, SerializedStyles } from '@emotion/utils' import { serializeStyles } from '@emotion/serialize' diff --git a/packages/serialize/src/index.js b/packages/serialize/src/index.js index 148c82c74..71aa52aa7 100644 --- a/packages/serialize/src/index.js +++ b/packages/serialize/src/index.js @@ -9,7 +9,6 @@ import unitless from '@emotion/unitless' import memoize from '@emotion/memoize' let hyphenateRegex = /[A-Z]|^ms/g - let animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g const processStyleName = memoize((styleName: string) =>