Skip to content

weepy/browser-require

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

require

Dropin require polyfill for the browser

Really useful in development for when you don't want to crank up browserify.

Super simple.

Fully swappable with browserify and friends in production.

Installation

  1. Include the script and serve it (it won't work direct from the filesystem due to browser security)
<script src='require.js'></script>
  1. Code like a boss

  2. You can optionally include the PARSEJS library which will help point point any syntax errors in your code whilst

Production

It uses Sync XHR which is great for development, but not so much in production.

Forunately, you can swap out this library with browserify or similar in production.

About

`require` polyfill for the browser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages