Babelify plugs Babel's transpilation tools into the Browserify pipeline.
Questions tagged [babelify]
53 questions
0
votes
1 answer
Remove text/babel type to allow bundled js file to run in browser
I am using browserify to package all the require into a bundled js file suitable for running in the browser environment. The following code runs fine when I run the npm run build-dist command. How can I now change the package.json file to remove the…

Ajit Goel
- 4,180
- 7
- 59
- 107
0
votes
1 answer
Browserify Error { Error: Plugin 1 specified in "base" provided an invalid property of "loose" while parsing file: mypath\react-app.js
I try to use transform-es2015-classes plugin with gulp, browserify, reactify.
var gulp = require('gulp');
var browserify = require('browserify');
var babelify = require('babelify');
var source = require('vinyl-source-stream');
var buffer …

Steve Waters
- 3,348
- 9
- 54
- 94
0
votes
2 answers
browserify fails to parse jsx despite using babel-preset-react, babel-preset-es2015 and babel-preset-stage-3
I am using grunt to automate the whole process. This is what my configuration looks like:
browserify: {
dist: {
files: {
'<%= dirs.dest %>/index.js': [
'<%= dirs.src %>/index.js'
…

fabian enos
- 71
- 1
- 8
0
votes
2 answers
Browserify + WebStorm debug breaks routing in React-Router v4 BrowserRouter
I am writing a single page app with React for educational purposes. My React-Router v4 BrowserRouter handles client side routing correctly on CodeSandbox but not locally. In this case, the local server is the webstorm built-in devserver. HashRouter…

user2355058
- 211
- 3
- 15
0
votes
1 answer
I have a task file of GULP for compile js file with JSX code using babelify, but not work it
I have a project with react, I have already installed babelify, also gulp, when I use the gulp command, it works perfectly and generates my output file, however if I add JSX code to my app.js file, send me the following error:
> events.js:160
>>…

Emiliano
- 141
- 3
- 9
0
votes
1 answer
gulp file babelify task
I'm kind of lost trying to use babelify so I can use in my project ES6.
I should use it in the scrips-app part. Can anyone help me? How can I implement it? Because in all the examples I find on the internet, there are different…

NoHoney_k1ll
- 251
- 3
- 12
0
votes
0 answers
Why am I unable to import my main.jsx file while starting my react app?
This is the first react app i am trying to make but i am stuck with this error. the file structure seems to be correct and also my starting point.Please help me figure it out why it cannot find main.jsx module .
file structure
react-skeleton
|
+--…

Suraj Sharma
- 180
- 5
- 15
0
votes
1 answer
AngularJs testing for mix of ES6 and ES5 codebase
I have recently started using ES6 coding style for AngularJs1.x. Codebase contains both ES6 style coding as well as ES5 style coding. Would like to use ES6 style coding for test specs also.
Need help in understanding what config changes needs to…

abhinav singh
- 856
- 6
- 23
- 45