sindresorhus/devtools-detect

How do you import this using browserify?

Closed this issue · 2 comments

After installing it using NPM, I could not do

import devtools from "devtools-detect";

or

var devtools = require('devtools-detect');

I had to install using Bower and then copy the devtools-detect.js file to /libs directory and then using browserify I could do:

import devtools from './libs/devtools-detect.js';

And then it worked.

Am I doing something wrong?

Sorry about that. I apparently forgot to set the main reference in package.json. Fixed now.

Thank you very much.