Skip to content

Instantly share code, notes, and snippets.

@GianlucaGuarini GianlucaGuarini/a.js
Last active Apr 18, 2019

What would you like to do?
Use always `module.exports = Object.freeze({})`
const b = require('./b')
b.b = 'c'
module.exports = {
a: 'a'
module.exports = {
b: 'b'
const a = require('./a')
const b = require('./b')
console.log(b) // => watch out!! { b: 'c' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.