-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Create Multiple target build steps: What's the designed behavior, is it supported #219
Comments
OK, the reproduction repo should work for illustrating my question regarding a way to properly do for my question. It felt a lot like flipping switches and breaking things that were previously OK. So the repo builds code, and I use target argument between variabts. Am I doing something redundant here? |
OK. After another day, I see better what's at play. First, let me reword my original requirement.
What I understand is that we delegate things to Rollup, Babel (including babel/preset-env), rollup-plugin-typescript2, etc. That the "bili/babel" preset does the handling of babel/preset-env. Also, babel/preset-env can load .browserslistrc So we have either to:
But which way would be simplest? I see a few ways, but I'm unsure which is "as designed" (or with lowest friction):
|
Hi @egoist, (Thanks for your work!),
I'm looking at setting up bili to transpile with babel modules when we want the transpiled code to have a version for both browser, and others (node is one).
I'm unsure if it's because I haven't understood the documentation about this, or I missed something.
Reproduction repo: renoirb/experiments-201907-bili-babel-preset-env-multiple-target-builds
I'm aware bili piggy back on
@babel/preset-env
. That we can pass an object with "targets" (e.g.{node: 10}
). But I'm unsure what it does when I do{node: 10, browsers: ['last 2 versions']}
AND usebili --target node
.When I look at log messages and debug, I see that it treats everything as a browser target. Is that normal?
Thank you
The text was updated successfully, but these errors were encountered: