您好,欢迎访问一九零五行业门户网

javascript - 关于grunt插件browserify配置问题,求助

browserify: { options: { transform: ['brfs'], debug: true }, debug: { files: {'build/test.min.js': 'src/test.js'}, } }

只要加了transform: ['brfs'],就会报错,去掉就能正常编译,什么情况啊?
$ gruntrunning browserify:debug (browserify) task>> typeerror: cannot read property 'apply' of undefined while parsing file: x:\users\javascript\desktop\learn\learn_grunt\src\test.jswarning: error running grunt-browserify. use --force to continue.aborted due to warnings.

回复内容: browserify: { options: { transform: ['brfs'], debug: true }, debug: { files: {'build/test.min.js': 'src/test.js'}, } }

只要加了transform: ['brfs'],就会报错,去掉就能正常编译,什么情况啊?
$ gruntrunning browserify:debug (browserify) task>> typeerror: cannot read property 'apply' of undefined while parsing file: x:\users\javascript\desktop\learn\learn_grunt\src\test.jswarning: error running grunt-browserify. use --force to continue.aborted due to warnings.

其它类似信息

推荐信息