Open bennycode opened 9 years ago
It does, although you need to have coffeeify
ahead of aliasify
in your transform stack.
I tried that but then coffeify
complains about not being able to resolve the mapping for require 'CoreEvent'
.
Do you have a small example project I can try this out on? We're using coffeeify and aliasify together (although we're running coffeeify@0.6.0, which is a bit old.)
@bennyn I've made aliasify work with vueify having the exact same issue you had. This is how I've done it in my gulpfile:
var aliasifyConfig = {
"aliases": {
"app": "./static/"
},
appliesTo: {
"includeExtensions": ['.js', '.vue']
}
}
return browserify({
entries: [entry],
})
.transform(babelify)
.transform(vueify)
.transform(aliasify, aliasifyConfig)
.bundle()
I read this section on browserify docs on how to make it follow different extensions, you would need to put .coffee
in includeExtensions
and I'm quite sure it would start working for you too.
Cheers, Miguel
I am using grunt-browserify with these transforms declared in my
package.json
:When
aliasify
scans my CoffeeScript files then I get an error because it does not like CoffeScript symbols like?=
:What can I do to make aliasify work with CoffeeScript?
I want to replace statements like: