-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
specifying browserify options (plugins, extensions) #359
Comments
Just ran into this issue as well! Custom logic seems a bit hacky--is there any chance @substack would accept an upstream PR to add something like this to browserify core? Alternately, perhaps we could carve out a typescript-specific solution? I feel like now that Choo has typescript support it would be great if Bankai supported it out-of-the-box too! |
From irc:
|
Yep, thanks for adding that. I also agree with you that custom logic might be confusing. I suggested a `bankai` package.json key but yosh mentioned that the duplication might be annoying (having both `bankai.browserify.plugin` and `browserify.transform`). I think that may be a minor problem compared to the alternatives tho.
…On 31 December 2017 21:54:10 CET, Seth Thompson ***@***.***> wrote:
From irc:
> \<s3ththompson\>: goto-bus-stop: just ran into bankai #359
(supporting typescript plugin in browserify) and saw you opened an
issue! is there any chance upstream browserify would accept a PR to
start reading a plugin config key in package.json?
> \<substack\>: s3ththompson: package.json is for transforms only,
because you might have a dependency with a package.json transform
configured
> plugins aren't so clean as that
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#359 (comment)
--
Sent from mobile. Please excuse my brevity.
|
I wonder what this would look like; perhaps a separate issue might be cool for this? I'm open to the idea, especially because so far it seems to be the only direct use case we have for a plugin! |
adding support for a module-scoped |
@goto-bus-stop yeah, that seems reasonable! |
ref #285, #262
currently you can only specify browserify transforms using the
browserify.transform
key in package.json. altlangs like typescript and coffeescript use custom (non-.js) extensions though which cannot be configured in package.json.@yoshuawuyts & i chatted about this recently--adding some custom logic to bankai that reads additional configuration from the application's package.json only (not from package.json in dependencies) could be a nice option:
this still leaves out plugins that need things like functions in their options, but you could work around that by wrapping it in a small plugin like so:
anyone have more thoughts on this?
The text was updated successfully, but these errors were encountered: