Open oliviertassinari opened 7 years ago
Does import Metric from 'appmetrics.js'
not work? I guess I need an export default
?
I have noticed several things to do to make it work:
export default Metric;
package.json
toward the right entry point. Right now, it's pointing toward "main": "./src/appmetrics.js"
. But it's very common to ignore the node_modules
when using babel.I have been publishing that among other tools for my needs under browser-metrics.
Any interest in sending a pr?
It would be great to support it. For now, the best way I see to use this module is by copy-pasting the content into one of my files.