dont assume require is defined when setting up cjs loader
Merge pull request #257 from jonbretman/fix-require-not-defined-error

dont assume require is defined when setting up cjs loader