Comments (1)
I believe the problem is more general. We should not force our clients to use TypeScript
and similar either.
Proposal:
Let's create a bundle:
- 2 single JS file, one ESM one CommonJS
- ES2017+
- 1 single CSS file
- 1
.d.ts
file - maybe a source map
And distribute this instead of the separate files right now.
As we specify sideEffects: false
webpack will still be able to tree-shake it, so I don't see any disadvantages.
from elements.
Related Issues (20)
- Add a more realistic API Key example
- UI for sending API request where authentication is optional
- Lack of Array Support in "Try It" for Parameters
- Deprecated flag not showing on deprecated endpoints
- Update React Example in Elements to Latest Version of Create-React-App
- elements conflicts with React 18 (and Next.js 13.4) HOT 3
- Elements demo site won't load due to CORS error.
- Use formatting for examples in request/response fields HOT 2
- Unable to fetch API description document HOT 1
- Sample request should not be hidden when Try It is hidden
- Render Server Variables in API Overview and Update Proposals Hook HOT 1
- Server Variable support in 'Try It' Section HOT 1
- Show AND authentication on API overview and Endpoint level HOT 1
- Add support for AND authentication in try it HOT 1
- Optional Auth support HOT 2
- Server variables in incorrect order HOT 4
- Request parameters are always sorted by requiredness and alphabetically HOT 1
- `process.env` is not defined for `@stoplight/mosaic` HOT 2
- stacked layout does not show openapi paths HOT 1
- Referring object tamper other objects through referenced one HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elements.