{
  "presets": [
    <% if (style === '@emotion/styled') { %>
    [
      "@nrwl/next/babel",
      {
        "preset-react": {
          "runtime": "automatic",
          "importSource": "@emotion/react"
        }
      }
    ]
    <% } else { %>
    "@nrwl/next/babel"
    <% } %>
  ],
  "plugins": [
    <% if (style === '@emotion/styled') { %>"@emotion/babel-plugin"<% } %>
    <% if (style === 'styled-components') { %>["styled-components", { "pure": true, "ssr": true }]<% } %>
  ]
}
