bitovi / bitovi/syn

Improve standalone build

Open
#90 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.