I\'m trying to subclass/extend the native Date object, without modifying the native object itself.
I\'ve tried this:
var util = require(\'util\')
You can also use github.com/loganfsmyth/babel-plugin-transform-builtin-extend
Example:
import 'babel-polyfill' export default class MyDate extends Date { constructor () { super(...arguments) } }