gdborton / webpack-parallel-uglify-plugin

A faster uglifyjs plugin.
466 stars 34 forks source link

Problem with file-loader #44

Closed remko closed 6 years ago

remko commented 6 years ago

I have a JS file with the following code:

   import 'file-loader!./foo.js';

This gives the following error:

    ERROR in minifying d41d8cd98f00b204e9800998ecf8427e.js
    S.input is not a function

where d41d8cd98f00b204e9800998ecf8427e.js corresponds to foo.js.

Is there a way to work around this problem (except excluding based on filename, since I can't predict the filename).

gdborton commented 6 years ago

I'm guessing this is loading the foo.js file directly, are the contents valid js?