question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Babelify config for Browserify does not work with rc10

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:18 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
kahlilcommented, Nov 15, 2017

Works-a like-a deh charm-a! (Mario voice)

🙏 thanks y’allz are super.

1reaction
kahlilcommented, Nov 14, 2017

We have tree shaking, bundle flattening, and soon code splitting too (in #266). Would we be missing anything? (:

Oh, well don’t mind me then, that sounds perfect 😄 .

Read more comments on GitHub >

github_iconTop Results From Across the Web

I think I"m missing something on how this works #268 - GitHub
Browserify doesn't run transforms (including babelify) on dependencies in node_modules by default, because npm modules should be self contained ...
Read more >
How to get babelify 10 to target a browser - Stack Overflow
I've tried require("babelify").configure. I've tried having a file named babel.config.json, .babelrc, and .babelrc.json in the working directory ...
Read more >
Supported technologies: Browserify - Wallaby.js
loadTests() call in setup function. Node modules should not be listed in the files list; they are loaded automatically. The order of source...
Read more >
Gsap + Typescript + Browserify + Babelify Compilation Not ...
I've installed and imported GSAP and @types/gsap, and my file.ts import it well, but when i run gulp with the Typescript Gulp Configuration...
Read more >
bankai - NPM Package Overview - Socket - Socket.dev
No configuration, and no hassle - that's our promise. ... Feel free to file an issue: https://github.com/choojs/bankai/issues/new Do you enjoy using this ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found