Improve standalone build
- Dominant language
- JavaScript
- Stars
- 441
- Forks
- 254
- PR merge metrics
- No merged PRs in 30d
Description
The standalone build has some kind of AMD shim exposed globally.
This make it impossible to use in an environment WITHOUT AMD but with libraries which DOES support AMD.
Currently I had to add this line after syn.js
``` html
delete window.define;
```
I think a Browserify build is a better solution, as it does not pollute the global namespace.
Hope this help
Contributor guide
Research direction
Start by locating the standalone build and syn.js, then inspect how the AMD shim is added to the browser global namespace. Compare the current build with the proposed Browserify approach; done means the standalone build works without AMD while avoiding a global define, with the relevant build checks or browser usage verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- build-system, frontend
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100