Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: emotion-js/emotion
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: emotion@10.0.7
Choose a base ref
...
head repository: emotion-js/emotion
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: emotion@10.0.8
Choose a head ref
  • 18 commits
  • 65 files changed
  • 9 contributors

Commits on Feb 4, 2019

  1. Copy the full SHA
    215dfe1 View commit details

Commits on Feb 9, 2019

  1. Copy the full SHA
    554a29d View commit details

Commits on Feb 14, 2019

  1. [WIP] - Site Redesign (#1201)

    * Site Redesign
    
    * Fix pages with large code examples makes the page horizontally scrollable in firefox and playground thing
    
    * Use color from file
    
    * Site Redesign work
    
    * Fix HR, links, and code typography styles
    
    * Thin out HR tag
    
    * gap spacing
    
    * typography adjustments
    
    * adjust node version
    
    * adjust node version
    
    * skip bundle analyzer on netlify builds
    
    * Get site working again and prepare for mobile work
    
    * remove unused code
    
    * use node 10
    
    * Remove header just to see if it works
    
    * New strategy
    
    * mobile work
    
    * Push latest
    
    * Max width
    
    * clean up codebase
    
    * more cleanup
    
    * Fix flow errors
    
    * Fix lint errors
    tkh44 authored and emmatown committed Feb 14, 2019
    Copy the full SHA
    0862810 View commit details
  2. Copy the full SHA
    25beecc View commit details

Commits on Feb 15, 2019

  1. Copy the full SHA
    a0d6a93 View commit details
  2. Set Analytics ID

    tkh44 authored Feb 15, 2019
    Copy the full SHA
    1bff583 View commit details
  3. Remove analytics options

    tkh44 authored Feb 15, 2019
    Copy the full SHA
    a7dfb87 View commit details

Commits on Feb 22, 2019

  1. Copy the full SHA
    d3a34b3 View commit details

Commits on Feb 23, 2019

  1. Copy the full SHA
    27079e1 View commit details
  2. Copy the full SHA
    3d0dbe3 View commit details
  3. Upgrade to jest 24 (#1238)

    * Upgrade to jest 24
    
    * Maybe fix tests
    
    * Maybe fix again
    
    * Try another fix
    emmatown authored Feb 23, 2019
    Copy the full SHA
    0a81cb9 View commit details

Commits on Feb 25, 2019

  1. Add labels for function declarations (#1240)

    * Add labels for function declarations
    
    * Change behaviour
    
    * Add more tests
    emmatown authored Feb 25, 2019
    Copy the full SHA
    7ecf3ae View commit details

Commits on Feb 26, 2019

  1. Fix a thing

    emmatown committed Feb 26, 2019
    Copy the full SHA
    971fa7c View commit details

Commits on Feb 28, 2019

  1. chore(package): Bump hoist-non-react-statics major (#1247)

    Bump was major because of dropped `react@0.13` support which was
    reintroduced in hoist-non-react-statics@3.2. h
    oist-non-react-statics@2.x does not support forwardRef.
    eps1lon authored and emmatown committed Feb 28, 2019
    Copy the full SHA
    edd5bde View commit details
  2. Update package.json (#1250)

    arcanis authored and emmatown committed Feb 28, 2019
    Copy the full SHA
    9d915dd View commit details
  3. Update package.json (#1251)

    arcanis authored and emmatown committed Feb 28, 2019
    Copy the full SHA
    9a1360a View commit details

Commits on Mar 11, 2019

  1. adds enzyme mount snapshot test using css from @emotion/core (#1256)

    * adds enzyme mount snapshot test using css from @emotion/core
    
    * adds jsx pragma to test
    
    * Skip printing css prop internal component
    
    * updates more test files to use @emotion/core
    
    * adds @emotion/core as a dev dep of jest-emotion
    
    * removes test for shallow rendering
    
    * updates printer tests to use react dom
    
    * removed unneeded usage of ClassName
    petegleeson authored and emmatown committed Mar 11, 2019
    Copy the full SHA
    014cc50 View commit details
  2. Publish

     - babel-plugin-emotion@10.0.8
     - @emotion/babel-plugin-jsx-pragmatic@0.1.1
     - @emotion/babel-preset-css-prop@10.0.8
     - @emotion/cache@10.0.8
     - @emotion/core@10.0.8
     - create-emotion@10.0.8
     - @emotion/css@10.0.8
     - emotion-server@10.0.8
     - emotion-theming@10.0.8
     - emotion@10.0.8
     - jest-emotion@10.0.8
     - @emotion/native@10.0.8
     - @emotion/primitives@10.0.8
     - @emotion/serialize@0.11.5
     - @emotion/styled-base@10.0.8
     - @emotion/styled@10.0.8
     - babel-preset-emotion-dev@9.2.6
     - benchmarks@0.8.26
     - emotion-site@9.2.14
    emmatown committed Mar 11, 2019
    Copy the full SHA
    1588cc8 View commit details
Showing with 2,910 additions and 2,322 deletions.
  1. +1 βˆ’1 .nvmrc
  2. +2 βˆ’0 README.md
  3. +7 βˆ’2 jest.config.js
  4. +2 βˆ’1 netlify.toml
  5. +8 βˆ’5 package.json
  6. +13 βˆ’0 packages/babel-plugin-emotion/__tests__/__fixtures__/function-declaration.js
  7. +84 βˆ’0 packages/babel-plugin-emotion/__tests__/__snapshots__/css.js.snap
  8. +36 βˆ’0 packages/babel-plugin-emotion/__tests__/__snapshots__/index.js.snap
  9. +7 βˆ’0 packages/babel-plugin-emotion/__tests__/css-macro/__fixtures__/inside-anonymous-arrow-function.js
  10. +7 βˆ’0 packages/babel-plugin-emotion/__tests__/css-macro/__fixtures__/inside-anonymous-function.js
  11. +7 βˆ’0 ...es/babel-plugin-emotion/__tests__/css-macro/__fixtures__/inside-non-pascal-case-arrow-function.js
  12. +84 βˆ’0 packages/babel-plugin-emotion/__tests__/css-macro/__snapshots__/index.js.snap
  13. +2 βˆ’2 packages/babel-plugin-emotion/package.json
  14. +37 βˆ’2 packages/babel-plugin-emotion/src/utils/label.js
  15. +8 βˆ’2 packages/babel-plugin-jsx-pragmatic/package.json
  16. +6 βˆ’3 packages/babel-preset-css-prop/package.json
  17. +1 βˆ’1 packages/cache/package.json
  18. +22 βˆ’13 packages/cache/src/index.js
  19. +229 βˆ’5 packages/core/__tests__/__snapshots__/warnings.js.snap
  20. +76 βˆ’21 packages/core/__tests__/warnings.js
  21. +8 βˆ’8 packages/core/package.json
  22. +4 βˆ’0 packages/core/src/jsx.js
  23. +3 βˆ’3 packages/create-emotion/package.json
  24. +3 βˆ’3 packages/css/package.json
  25. +3 βˆ’3 packages/emotion-server/package.json
  26. +4 βˆ’4 packages/emotion-theming/package.json
  27. +0 βˆ’2 packages/emotion/README.md
  28. +3 βˆ’3 packages/emotion/package.json
  29. +7 βˆ’3 packages/jest-emotion/package.json
  30. +10 βˆ’2 packages/jest-emotion/src/index.js
  31. +19 βˆ’0 packages/jest-emotion/test/__snapshots__/react-enzyme.test.js.snap
  32. +29 βˆ’29 packages/jest-emotion/test/matchers.test.js
  33. +38 βˆ’33 packages/jest-emotion/test/printer.test.js
  34. +17 βˆ’0 packages/jest-emotion/test/react-enzyme.test.js
  35. +2 βˆ’2 packages/native/package.json
  36. +3 βˆ’3 packages/primitives/package.json
  37. +1 βˆ’1 packages/serialize/package.json
  38. +1 βˆ’1 packages/serialize/types/index.d.ts
  39. +2 βˆ’2 packages/styled-base/package.json
  40. +3 βˆ’3 packages/styled/package.json
  41. +1 βˆ’1 scripts/babel-preset-emotion-dev/package.json
  42. +1 βˆ’0 scripts/babel-preset-emotion-dev/src/index.js
  43. +2 βˆ’2 scripts/benchmarks/package.json
  44. +6 βˆ’0 site/gatsby-config.js
  45. +8 βˆ’1 site/gatsby-node.js
  46. +10 βˆ’8 site/package.json
  47. +0 βˆ’76 site/src/components/DocSidebar.js
  48. +162 βˆ’194 site/src/components/DocWrapper.js
  49. +37 βˆ’0 site/src/components/HeaderLogoImage.js
  50. +12 βˆ’2 site/src/components/Link.js
  51. +84 βˆ’62 site/src/components/Playground.js
  52. +25 βˆ’22 site/src/components/Search.js
  53. +101 βˆ’0 site/src/components/SiteHeader.js
  54. +7 βˆ’6 site/src/components/Title.js
  55. +0 βˆ’459 site/src/components/react-sidebar-fork.js
  56. +34 βˆ’176 site/src/layouts/index.js
  57. +6 βˆ’11 site/src/pages/community.js
  58. +0 βˆ’62 site/src/pages/docs.js
  59. +0 βˆ’226 site/src/pages/index.js
  60. +42 βˆ’30 site/src/templates/doc.js
  61. +1 βˆ’166 site/src/utils/algolia-styles.js
  62. +3 βˆ’13 site/src/utils/global.js
  63. +101 βˆ’51 site/src/utils/markdown-styles.js
  64. +10 βˆ’5 site/src/utils/style.js
  65. +1,458 βˆ’586 yarn.lock
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8
v10
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -80,6 +80,7 @@ Look here πŸ‘‰ _[emotion babel plugin feature table and documentation](https://g
- [stylelint](https://github.com/stylelint/stylelint) - A mighty, modern linter that helps you avoid errors and enforce conventions in your styles.
- [facepaint](https://github.com/emotion-js/facepaint)
- [emotion-vue](https://github.com/egoist/emotion-vue)
- [nuxt-community/emotion-module](https://github.com/nuxt-community/emotion-module) - Emotion module for Nuxt.js
- [ember-emotion](https://github.com/alexlafroscia/ember-emotion)
- [CSS to emotion transform](https://transform.now.sh/css-to-emotion/)
- [ShevyJS](https://github.com/kyleshevlin/shevyjs)
@@ -88,6 +89,7 @@ Look here πŸ‘‰ _[emotion babel plugin feature table and documentation](https://g

### In the Wild

- [abacusfi.com](https://abacusfi.com)
- [healthline.com](https://www.healthline.com)
- [nytimes.com](https://www.nytimes.com)
- [vault.crucible.gg](http://vault.crucible.gg/)
9 changes: 7 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -9,9 +9,14 @@ module.exports = {
'jest-watch-typeahead/filename',
'jest-watch-typeahead/testname'
],
testPathIgnorePatterns: ['/node_modules/', '/__fixtures__/', '/site/'],
testPathIgnorePatterns: [
'/node_modules/',
'/__fixtures__/',
'/site/',
'/types/'
],
moduleNameMapper: aliases.jest(),
setupTestFrameworkScriptFile: '<rootDir>/test/testSetup.js',
setupFilesAfterEnv: ['<rootDir>/test/testSetup.js'],
coveragePathIgnorePatterns: [
'/node_modules/',
'<rootDir>/packages/babel-plugin-emotion/test/util.js'
3 changes: 2 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -5,4 +5,5 @@
[build.environment]
NODE_VERSION = "10"
YARN_VERSION = "1.7.0"
YARN_FLAGS = "--frozen-lockfile"
YARN_FLAGS = "--frozen-lockfile"
NETLIFY = "true"
13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -25,8 +25,8 @@
"version-packages": "lerna version --preid=beta"
},
"resolutions": {
"**/react": "16.5.2",
"**/react-dom": "16.5.2",
"**/react": "16.8.1",
"**/react-dom": "16.8.1",
"**/browserslist": "^3.2.8"
},
"devDependencies": {
@@ -41,7 +41,7 @@
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^8.2.3",
"babel-flow-types": "^1.2.3",
"babel-jest": "^23.6.0",
"babel-jest": "^24.1.0",
"babel-plugin-closure-elimination": "^1.3.0",
"babel-plugin-codegen": "^3.0.0",
"babel-plugin-macros": "^2.0.0",
@@ -67,9 +67,9 @@
"eslint-plugin-standard": "^3.0.1",
"flow-bin": "^0.89.0",
"get-lerna-packages": "^0.1.0",
"hoist-non-react-statics": "^2.3.1",
"hoist-non-react-statics": "^3.3.0",
"husky": "^1.1.3",
"jest": "^23.6.0",
"jest": "^24.1.0",
"jest-in-case": "^1.0.2",
"jest-junit": "^5.1.0",
"jest-serializer-html": "^4.0.1",
@@ -228,5 +228,8 @@
"post-commit": "git update-index --again",
"pre-commit": "lint-staged"
}
},
"dependencies": {
"jest-environment-jsdom": "^24.0.0"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// @flow
import * as React from 'react'
import { jsx } from '@emotion/core'

function Logo(props) {
return (
<a
css={{
display: 'block'
}}
/>
)
}
84 changes: 84 additions & 0 deletions packages/babel-plugin-emotion/__tests__/__snapshots__/css.js.snap
Original file line number Diff line number Diff line change
@@ -187,6 +187,62 @@ function doThing() {
}"
`;
exports[`@emotion/babel-plugin-core css inside-anonymous-arrow-function 1`] = `
"import css from '@emotion/css'
export default () => {
css\`
color: hotpink;
\`
}
↓ ↓ ↓ ↓ ↓ ↓
import _css from \\"@emotion/css\\";
var _ref = process.env.NODE_ENV === \\"production\\" ? {
name: \\"1lrxbo5\\",
styles: \\"color:hotpink;\\"
} : {
name: \\"1lrxbo5\\",
styles: \\"color:hotpink;\\",
map: \\"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluc2lkZS1hbm9ueW1vdXMtYXJyb3ctZnVuY3Rpb24uanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBR0siLCJmaWxlIjoiaW5zaWRlLWFub255bW91cy1hcnJvdy1mdW5jdGlvbi5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBjc3MgZnJvbSAnQGVtb3Rpb24vY3NzJ1xuXG5leHBvcnQgZGVmYXVsdCAoKSA9PiB7XG4gIGNzc2BcbiAgICBjb2xvcjogaG90cGluaztcbiAgYFxufVxuIl19 */\\"
};
export default (() => {
_ref;
});"
`;
exports[`@emotion/babel-plugin-core css inside-anonymous-function 1`] = `
"import css from '@emotion/css'
export default () => {
css\`
color: hotpink;
\`
}
↓ ↓ ↓ ↓ ↓ ↓
import _css from \\"@emotion/css\\";
var _ref = process.env.NODE_ENV === \\"production\\" ? {
name: \\"1lrxbo5\\",
styles: \\"color:hotpink;\\"
} : {
name: \\"1lrxbo5\\",
styles: \\"color:hotpink;\\",
map: \\"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluc2lkZS1hbm9ueW1vdXMtZnVuY3Rpb24uanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBR0siLCJmaWxlIjoiaW5zaWRlLWFub255bW91cy1mdW5jdGlvbi5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBjc3MgZnJvbSAnQGVtb3Rpb24vY3NzJ1xuXG5leHBvcnQgZGVmYXVsdCAoKSA9PiB7XG4gIGNzc2BcbiAgICBjb2xvcjogaG90cGluaztcbiAgYFxufVxuIl19 */\\"
};
export default (() => {
_ref;
});"
`;
exports[`@emotion/babel-plugin-core css inside-class 1`] = `
"/** @jsx jsx */
import { Component } from 'react'
@@ -231,6 +287,34 @@ class SomeComponent extends Component {
}"
`;
exports[`@emotion/babel-plugin-core css inside-non-pascal-case-arrow-function 1`] = `
"import css from '@emotion/css'
let something = () => {
css\`
color: hotpink;
\`
}
↓ ↓ ↓ ↓ ↓ ↓
import _css from \\"@emotion/css\\";
var _ref = process.env.NODE_ENV === \\"production\\" ? {
name: \\"1lrxbo5\\",
styles: \\"color:hotpink;\\"
} : {
name: \\"1lrxbo5\\",
styles: \\"color:hotpink;\\",
map: \\"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluc2lkZS1ub24tcGFzY2FsLWNhc2UtYXJyb3ctZnVuY3Rpb24uanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBR0siLCJmaWxlIjoiaW5zaWRlLW5vbi1wYXNjYWwtY2FzZS1hcnJvdy1mdW5jdGlvbi5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBjc3MgZnJvbSAnQGVtb3Rpb24vY3NzJ1xuXG5sZXQgc29tZXRoaW5nID0gKCkgPT4ge1xuICBjc3NgXG4gICAgY29sb3I6IGhvdHBpbms7XG4gIGBcbn1cbiJdfQ== */\\"
};
let something = () => {
_ref;
};"
`;
exports[`@emotion/babel-plugin-core css label-1 1`] = `
"import css from '@emotion/css'
Original file line number Diff line number Diff line change
@@ -47,6 +47,42 @@ const Svg = <rect style={{
}} />;"
`;
exports[`@emotion/babel-plugin-core function-declaration 1`] = `
"// @flow
import * as React from 'react'
import { jsx } from '@emotion/core'
function Logo(props) {
return (
<a
css={{
display: 'block'
}}
/>
)
}
↓ ↓ ↓ ↓ ↓ ↓
// @flow
import * as React from 'react';
import { jsx } from '@emotion/core';
var _ref = process.env.NODE_ENV === \\"production\\" ? {
name: \\"jgxhdf-Logo\\",
styles: \\"display:block;label:Logo;\\"
} : {
name: \\"jgxhdf-Logo\\",
styles: \\"display:block;label:Logo;\\",
map: \\"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZ1bmN0aW9uLWRlY2xhcmF0aW9uLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU9NIiwiZmlsZSI6ImZ1bmN0aW9uLWRlY2xhcmF0aW9uLmpzIiwic291cmNlc0NvbnRlbnQiOlsiLy8gQGZsb3dcbmltcG9ydCAqIGFzIFJlYWN0IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vY29yZSdcblxuZnVuY3Rpb24gTG9nbyhwcm9wcykge1xuICByZXR1cm4gKFxuICAgIDxhXG4gICAgICBjc3M9e3tcbiAgICAgICAgZGlzcGxheTogJ2Jsb2NrJ1xuICAgICAgfX1cbiAgICAvPlxuICApXG59XG4iXX0= */\\"
};
function Logo(props) {
return <a css={_ref} />;
}"
`;
exports[`@emotion/babel-plugin-core import-namespace-does-not-throw 1`] = `
"import * as emotionCore from '@emotion/core'
// could probably support this for real but it's pretty rare so I'm not gonna spend time on it now
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import css from '@emotion/css/macro'

export default () => {
css`
color: hotpink;
`
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import css from '@emotion/css/macro'

export default () => {
css`
color: hotpink;
`
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import css from '@emotion/css/macro'

let something = () => {
css`
color: hotpink;
`
}
Original file line number Diff line number Diff line change
@@ -187,6 +187,62 @@ function doThing() {
}"
`;
exports[`@emotion/css/macro inside-anonymous-arrow-function 1`] = `
"import css from '@emotion/css/macro'
export default () => {
css\`
color: hotpink;
\`
}
↓ ↓ ↓ ↓ ↓ ↓
import _css from \\"@emotion/css\\";
var _ref = process.env.NODE_ENV === \\"production\\" ? {
name: \\"1lrxbo5\\",
styles: \\"color:hotpink;\\"
} : {
name: \\"1lrxbo5\\",
styles: \\"color:hotpink;\\",
map: \\"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluc2lkZS1hbm9ueW1vdXMtYXJyb3ctZnVuY3Rpb24uanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBR0siLCJmaWxlIjoiaW5zaWRlLWFub255bW91cy1hcnJvdy1mdW5jdGlvbi5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBjc3MgZnJvbSAnQGVtb3Rpb24vY3NzL21hY3JvJ1xuXG5leHBvcnQgZGVmYXVsdCAoKSA9PiB7XG4gIGNzc2BcbiAgICBjb2xvcjogaG90cGluaztcbiAgYFxufVxuIl19 */\\"
};
export default (() => {
_ref;
});"
`;
exports[`@emotion/css/macro inside-anonymous-function 1`] = `
"import css from '@emotion/css/macro'
export default () => {
css\`
color: hotpink;
\`
}
↓ ↓ ↓ ↓ ↓ ↓
import _css from \\"@emotion/css\\";
var _ref = process.env.NODE_ENV === \\"production\\" ? {
name: \\"1lrxbo5\\",
styles: \\"color:hotpink;\\"
} : {
name: \\"1lrxbo5\\",
styles: \\"color:hotpink;\\",
map: \\"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluc2lkZS1hbm9ueW1vdXMtZnVuY3Rpb24uanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBR0siLCJmaWxlIjoiaW5zaWRlLWFub255bW91cy1mdW5jdGlvbi5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBjc3MgZnJvbSAnQGVtb3Rpb24vY3NzL21hY3JvJ1xuXG5leHBvcnQgZGVmYXVsdCAoKSA9PiB7XG4gIGNzc2BcbiAgICBjb2xvcjogaG90cGluaztcbiAgYFxufVxuIl19 */\\"
};
export default (() => {
_ref;
});"
`;
exports[`@emotion/css/macro inside-class 1`] = `
"/** @jsx jsx */
import { Component } from 'react'
@@ -231,6 +287,34 @@ class SomeComponent extends Component {
}"
`;
exports[`@emotion/css/macro inside-non-pascal-case-arrow-function 1`] = `
"import css from '@emotion/css/macro'
let something = () => {
css\`
color: hotpink;
\`
}
↓ ↓ ↓ ↓ ↓ ↓
import _css from \\"@emotion/css\\";
var _ref = process.env.NODE_ENV === \\"production\\" ? {
name: \\"1lrxbo5\\",
styles: \\"color:hotpink;\\"
} : {
name: \\"1lrxbo5\\",
styles: \\"color:hotpink;\\",
map: \\"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluc2lkZS1ub24tcGFzY2FsLWNhc2UtYXJyb3ctZnVuY3Rpb24uanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBR0siLCJmaWxlIjoiaW5zaWRlLW5vbi1wYXNjYWwtY2FzZS1hcnJvdy1mdW5jdGlvbi5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBjc3MgZnJvbSAnQGVtb3Rpb24vY3NzL21hY3JvJ1xuXG5sZXQgc29tZXRoaW5nID0gKCkgPT4ge1xuICBjc3NgXG4gICAgY29sb3I6IGhvdHBpbms7XG4gIGBcbn1cbiJdfQ== */\\"
};
let something = () => {
_ref;
};"
`;
exports[`@emotion/css/macro label-1 1`] = `
"import css from '@emotion/css/macro'
4 changes: 2 additions & 2 deletions packages/babel-plugin-emotion/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "babel-plugin-emotion",
"version": "10.0.7",
"version": "10.0.8",
"description": "A recommended babel preprocessing plugin for emotion, The Next Generation of CSS-in-JS.",
"main": "dist/babel-plugin-emotion.cjs.js",
"files": [
@@ -12,7 +12,7 @@
"@babel/helper-module-imports": "^7.0.0",
"@emotion/hash": "0.7.1",
"@emotion/memoize": "0.7.1",
"@emotion/serialize": "^0.11.4",
"@emotion/serialize": "^0.11.5",
"babel-plugin-macros": "^2.0.0",
"babel-plugin-syntax-jsx": "^6.18.0",
"convert-source-map": "^1.5.0",
Loading