bankai: Babelify config for Browserify does not work with rc10
I use the following Browserify config:
"browserify": {
"transform": [
[
"babelify",
{
"presets": [
"env"
]
}
]
]
}
And Bankai can’t parse the import syntax:
Failed while processing 'scripts'.
--> index.js:2:1
|
2 | import { html, render } from 'lit-html';
| ^ Syntax Error
Hmmm. We're having trouble parsing a file.
The necessary modules are installed.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 18 (10 by maintainers)
Works-a like-a deh charm-a! (Mario voice)
🙏 thanks y’allz are super.
Oh, well don’t mind me then, that sounds perfect 😄 .
Passing
"global": trueto the babelify transform options should also make it run globally, im 80% sureOn 14 November 2017 14:58:06 CET, Yoshua Wuyts notifications@github.com wrote:
– Sent from mobile. Please excuse my brevity.
Thanks Yosh.