Open hrkksm10 opened 4 years ago
oh thank's
The corresponding config in expanded format (verified to work with webpack@"^5.75.0"
and imports-loader@"^4.0.1"
):
module: {
rules: [
{
test: require.resolve('snapsvg/dist/snap.svg.js'),
use: [
{
loader: 'imports-loader',
options: {
wrapper: 'window',
}
},
{
loader: 'imports-loader',
options: {
additionalCode: 'module.exports = 0;'
}
}
]
}
]
}
not work
work