modernizr-loader icon indicating copy to clipboard operation
modernizr-loader copied to clipboard

modernizr-loader does not work with json5-loader@4

Open terrymun opened this issue 4 years ago • 0 comments

It seems that modernizr-loader does not work with json5-loader@4 (it works for json5-loader@3 and below). I get the following error:

path\to\.modernizrrc:1
(function (exports, require, module, __filename, __dirname) { export default {minify:true,options:['setClasses'],'feature-detects':['css/transformstylepreserve3d','css/transitions']}
                                                              ^^^^^^
SyntaxError: Unexpected token export

terrymun avatar Oct 20 '20 08:10 terrymun