From bcbd46239e54a7785ceda6d4a973093cdc69790b Mon Sep 17 00:00:00 2001 From: Yann Pringault Date: Tue, 8 Oct 2019 14:33:37 +0200 Subject: [PATCH] fix(docz-core): index.tsx imports in index.mdx --- core/docz-core/templates/gatsby-config.tpl.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/core/docz-core/templates/gatsby-config.tpl.js b/core/docz-core/templates/gatsby-config.tpl.js index e3738abd1..57a70a132 100644 --- a/core/docz-core/templates/gatsby-config.tpl.js +++ b/core/docz-core/templates/gatsby-config.tpl.js @@ -16,17 +16,18 @@ const config = { description: "<%- config.description %>" }, plugins: [ - { - resolve: 'gatsby-theme-docz', - options: <%- opts %> - },<% if (config.typescript) {%> + <% if (config.typescript) {%> { resolve: 'gatsby-plugin-typescript', options: { isTSX: true, allExtensions: true } - },<%}%><% if (isDoczRepo) {%> + },<%}%> + { + resolve: 'gatsby-theme-docz', + options: <%- opts %> + },<% if (isDoczRepo) {%> { resolve: 'gatsby-plugin-eslint', options: {