webpack-contrib/expose-loader

Doesn't work when used in webpack config (inline works fine)

eerrecalde opened this issue · 0 comments

webpack: 4.19.1
expose-loader: 0.75

This (in my entry file) works fine:

import "expose-loader?$!jquery";
import "expose-loader?jQuery!jquery";

With this (in my webpack.config) doesn't work:
{ test: require.resolve('jquery'), use: [ { loader: 'expose-loader', options: 'jQuery' }, { loader: 'expose-loader', options: '$' } ] }