fix: generate esm correctly (#5087)
This commit is contained in:
parent
4d01811cf5
commit
9b1546f131
@ -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',
|
||||
{
|
||||
|
@ -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/",
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user