-
Notifications
You must be signed in to change notification settings - Fork 2
Implementation of CommonJS require() function for use in client-side environments where synchronous loading is appropriate (e.g. browser extension).
salsita/browser-require
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
In browser extensions and other environments where scripts are known to be local, we can use a synchronous version of the CommonJS require() function to implement CommonJS module loading. This implementation is compatible with CommonJS module without requiring any wrapping or other modification. We use [javascript-stacktrace](https://github.com/eriwen/javascript-stacktrace) to generate a stacktrace on a variety of browser platforms. This is needed so that modules can be loaded using relative paths. so you'll need to make it is loaded before loading browser-require.
About
Implementation of CommonJS require() function for use in client-side environments where synchronous loading is appropriate (e.g. browser extension).
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published