decaporg / decaporg/decap-cms

Un-minified bundled js

Open
#6,104 6 comments 0 reactions 0 assignees View on GitHub
type: feature
Dominant language
JavaScript
Stars
19.4k
Forks
3.1k
Avg merge
1d 14h
Merged PRs (30d)
9

Description

**Is your feature request related to a problem? Please describe.**

Often I find myself looking at call stacks like this:

![image](https://user-images.githubusercontent.com/15040698/148462093-67aea7e3-5136-4876-94c0-97e2b187ffe6.png)

And it's usually because I've done something stupid, but netlify-cms is not being very helpful in my attempt to figure out _what_ I did.

**Describe the solution you'd like**

Two `.js` outputs in the dist folder of the `netlify-cms` package (ideally, also the various other packages like `netlify-cms-app` etc. but `netlify-cms` would be a good start). Similar to [js-yaml](https://unpkg.com/browse/js-yaml@3.12.0/dist/):

![image](https://user-images.githubusercontent.com/15040698/148462347-b6202267-6ad6-4edf-a613-2adfbc70f58c.png)

Then the docs could be updated to refer to `index.min.js` instead of `index.js`. Or, to avoid accidentally expanding bundle sizes, they could be named `index.js` and `index.unminified.js`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.