Skip to content

Browser compatibility #123

@emahuni

Description

@emahuni

The previous versions had a dependency on nodejs specific modules and am happy to see that that is no longer the case in the latest versions. However, just one little thing still lingers; require('os'), in the index.js file. A fix for this will mean that this will work well in the browser as well.

here is the offending code snippet from index.js

const os = require('os');
const pico = require('./lib/picomatch');

const isWindows = os.platform() === 'win32';

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions