fix: generate esm correctly (#5087)

This commit is contained in:
Jorge del Casar 2021-04-04 10:51:09 +02:00 committed by GitHub
parent 4d01811cf5
commit 9b1546f131
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 1 deletions

View File

@ -88,7 +88,12 @@ const svgo = {
function presets() {
return [
'@babel/preset-react',
'@babel/preset-env',
[
'@babel/preset-env',
{
modules: isESM ? false : 'auto',
},
],
[
'@emotion/babel-preset-css-prop',
{

View File

@ -5,6 +5,7 @@
"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/",

View File

@ -5,6 +5,7 @@
"homepage": "https://www.netlifycms.org",
"repository": "https://github.com/netlify/netlify-cms",
"bugs": "https://github.com/netlify/netlify-cms/issues",
"module": "dist/esm/index.js",
"main": "dist/netlify-cms.js",
"scripts": {
"webpack": "node --max_old_space_size=4096 ../../node_modules/webpack/bin/webpack.js",