Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jayphelps/browserify-bug
https://github.com/jayphelps/browserify-bug
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jayphelps/browserify-bug
- Owner: jayphelps
- License: mit
- Created: 2015-09-21T18:31:52.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-21T18:55:59.000Z (about 9 years ago)
- Last Synced: 2023-03-22T22:37:16.198Z (over 1 year ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# browserify-bug
First confirm everything works as a regular npm-installed module
```
git clone https://github.com/jayphelps/browserify-bug.git
cd browserify-bug
npm install
npm start
# no errors
```Now `npm link anti-use-strict-mock` and try it again
```
cd ..
git clone https://github.com/jayphelps/anti-use-strict-mock.git
cd anti-use-strict-mock
npm link
cd ../browserify-bug
npm link anti-use-strict-mock
npm start
# Now it should error with "TypeError: Cannot set property 'foo' of undefined"
# If you examine output.js you'll see the module was transformed differently
# and a "use strict" added at the top.
```