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