Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isWindows is not a function, when webpacked #9

Open
autotel opened this issue Mar 28, 2019 · 1 comment
Open

isWindows is not a function, when webpacked #9

autotel opened this issue Mar 28, 2019 · 1 comment

Comments

@autotel
Copy link

autotel commented Mar 28, 2019

This is used as dependency in "audio-loader" library. This is my context.
After transpiling my code with webpack, including the "audio-loader" library, the library fails because "isWindows is not a function". The library, however ran well when not transpiled.
I did a dirty patch, replacing the first lines of "./is-absolute/index.js" as:

'use strict';

var isRelative = require('is-relative');
var isWindows = require('is-windows');
if(typeof isWindows!="function") isWindows=()=>true;

I can't imagine why in the world the "isWindows" is exporting a boolean, and less why it is doing so only after webPacking it.

@MilesMorel
Copy link

Just ran into the same thing...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants