webpack-contrib / imports-loader

Imports Loader
MIT License
520 stars 63 forks source link

Using Alias does not work #25

Closed DutchKevv closed 4 years ago

DutchKevv commented 8 years ago

When doing something like this

require('imports?this=>global!bootstrap');

Where bootstrap is defined as an alias

resolve: {
    alias: {
        // Bootstrap
        'bootstrap'             : path.join(PATH_JS_VENDOR, 'bootstrap/bootstrap'),
    }
},

doesn't seem to work

DXCanas commented 6 years ago

Also running into this. Might it have something to do with the webpack's context?

DutchKevv commented 4 years ago

This topic is closed now, is it fixed .. ?

alexander-akait commented 4 years ago

Yes, ETA is tomorrow, tests were added

alexander-akait commented 4 years ago

If you will face with this issue again after release, feel free to open a new issue with reproducible test repo/configuration/example of code