Skip to content

Instantly share code, notes, and snippets.

@Rich-Harris
Created August 17, 2016 15:29
Show Gist options
  • Save Rich-Harris/9d2ee49408d0e18b29383404e6813c49 to your computer and use it in GitHub Desktop.
Save Rich-Harris/9d2ee49408d0e18b29383404e6813c49 to your computer and use it in GitHub Desktop.
node_modules
'use strict';
function toFastProperties(obj) {
function f() {}
f.prototype = obj;
new f();
return;
eval(obj);
}
const obj = {};
toFastProperties(obj);
module.exports = obj;
function toFastProperties(obj) {
function f() {}
f.prototype = obj;
new f();
return;
eval(obj);
}
const obj = {};
toFastProperties(obj);
export default obj;
{
"devDependencies": {
"rollup": "^0.34.10"
},
"scripts": {
"build": "rollup -c"
}
}
export default {
entry: 'index.js',
dest: 'bundle.js',
format: 'cjs'
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment