Package Exports
- gatsby-plugin-emotion
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gatsby-plugin-emotion) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
gatsby-plugin-emotion
Provide support for using the css-in-js library Emotion including server side rendering.
This plugin supports Emotion v10+
Older versions should use versions of this plugin which support Emotion 8 and 9. Check out the Emotion 10 migration guide for more information on how to upgrade.
Install
npm install --save gatsby-plugin-emotion @emotion/core @emotion/styledHow to use
Add the plugin to your gatsby-config.js.
module.exports = {
plugins: [
{
resolve: `gatsby-plugin-emotion`,
options: {
// Accepts all options defined by `babel-plugin-emotion` plugin.
},
},
],
}