Skip to content

Latest commit

 

History

History
8 lines (4 loc) · 566 Bytes

browser.md

File metadata and controls

8 lines (4 loc) · 566 Bytes

Browser

Imports work on browser too. Browser imports are also relative and both JavaScript and Clio imports are supported.

Please note there is no require function in browser and because of limitations of browsers (for example file access limitations) some JavaScript or Clio modules will not work on the browser.

The default location for clio_environment is the value of window.location.origin, this can be overridden by setting window.clio.__basedir after loading the Clio run-time library and before calling the clio.process_scripts() function.