Open mediafreakch opened 8 years ago
There is a nasty bug in browserify that causes transforms to be applied twice.
Imagine a scenario where you want to pass some options to vueify specific to unit tests, but not when the component is required by another one:
vueify
//package.json "browserify": { "transform": [ "vueify" ] }
// karma.conf.js browserify: { transform: [ ['vueify', { less: { paths: [ './spec/support' ] } }] ] }
Due to the browserify bug the transform runs twice and breakes the generated JS code.
Is there a way for vueify to prevent that? if (!/.vue$/.test(file)) doesn't do it...
if (!/.vue$/.test(file))
There is a nasty bug in browserify that causes transforms to be applied twice.
Imagine a scenario where you want to pass some options to
vueify
specific to unit tests, but not when the component is required by another one:Due to the browserify bug the transform runs twice and breakes the generated JS code.
Is there a way for vueify to prevent that?
if (!/.vue$/.test(file))
doesn't do it...