From 72c3765ff7e04a1dadc77f49b53a2e2da0181026 Mon Sep 17 00:00:00 2001 From: Erez Rokah Date: Wed, 14 Apr 2021 14:33:40 +0400 Subject: [PATCH] fix: Revert "fix: generate esm correctly (#5087)" (#5271) This reverts commit 9b1546f131772185b3d39d18b6e57dc41ff5c7ca. --- babel.config.js | 7 +------ packages/netlify-cms-app/package.json | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/babel.config.js b/babel.config.js index ff109df5..b7c1efbf 100644 --- a/babel.config.js +++ b/babel.config.js @@ -88,12 +88,7 @@ const svgo = { function presets() { return [ '@babel/preset-react', - [ - '@babel/preset-env', - { - modules: isESM ? false : 'auto', - }, - ], + '@babel/preset-env', [ '@emotion/babel-preset-css-prop', { diff --git a/packages/netlify-cms-app/package.json b/packages/netlify-cms-app/package.json index ca52d283..0ae6ac21 100644 --- a/packages/netlify-cms-app/package.json +++ b/packages/netlify-cms-app/package.json @@ -5,7 +5,6 @@ "homepage": "https://www.netlifycms.org", "repository": "https://github.com/netlify/netlify-cms/tree/master/packages/netlify-cms-app", "bugs": "https://github.com/netlify/netlify-cms/issues", - "module": "dist/esm/index.js", "main": "dist/netlify-cms-app.js", "files": [ "src/",