Comments (4)
As commented in babel/babel#843:
I've been busy for over an hour reading the docs and now the issues finding out why I can't compile modules but still can't find the answer.
What I personally gather from the documentation is that I shouldn't need browserify anymore to gather the dependencies. I'm just trying to get the simplest build possible working through the CLI but the only result I see is some formatting.
I'd really like to see the FAQ beefed up and see this thing answered. Also I'd like to see some extremely simple working examples without the use of build systems.
from website.
No you still need to use browserify. What gave you the assumption that you didn't? Babel turns ES6 module syntax into the format of another module loader. How are you expecting it to work?
from website.
Reading the module docs it says:
babel has the ability to transpile ES6 modules to the module system of your choice
"the ability" which means to me it's optional. Because modules are part of es6 i'd expected to be solved through a polyfill which should be automatically loaded for babel-node
.
from website.
@benvds By default it'll transpile ES6 modules into CommonJS which will work just fine in node, browserify and webpack so there's no polyfill required.
from website.
Related Issues (20)
- Consider replacing the word „blacklisting” HOT 3
- Dead anchor link at https://babeljs.io/docs/en/options#ineffective-browserslist-queries HOT 2
- [Bug]: Documentation for Rails is for Rails 6, but Rails is on Rails 7 HOT 7
- Wrong file mention HOT 1
- Unable to use decorators in repl HOT 2
- "Built-ins" throws on REPL HOT 5
- doc index page, jsx example has syntax error HOT 2
- https://babeljs.io/versions is out of date HOT 1
- The repl ("Try it out") feature on the website could really use a reset button HOT 1
- Configure redirects from `/en/` to `/` HOT 2
- Broken links HOT 7
- Website HOT 1
- [Bug]: Need to improve documentation for babel-plugin-proposal-decorators HOT 2
- How to get in touch regarding a security concern HOT 3
- REPL confusingly lists deprecated stage-x presets, stage-2 selected by default HOT 3
- REPL: cannot specify rhino as a target HOT 1
- JSX DEV transform is undocumented HOT 2
- [Bug]: "Get browser-compatible JavaScript out" Scrollbar Not working HOT 3
- The section in the docs on Polyfills is unclear HOT 1
- The content of the plugin development document should be merged into the current repository HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from website.