Comments (5)
Yes currently ES6 doesn't work.
Related: https://twitter.com/Kikobeats/status/777872609530740736
Definitely I need charliedowler's help for resolve this 😄 .
from atom-node-resolver2.
Hi,
I switched back to esprima and tried sourceType as you suggested. Imports won't work until this function is rewritten
astw(ast)(function(node) {
if (!isRequire(node)) return
It's looking for require statements instead of both require and import, I don't think upgrading node-resolver
to fully support es6 is as simple as bumping the esprima dependency.
What do you think?
Cheers,
Charlie
from atom-node-resolver2.
Actually I don't know how to walk into the AST. If you feel confortable doing that I can add you as collaborator
from atom-node-resolver2.
Hey,
I released a new patch version. I switch the package used for parsing the AST. Looks like we are near to get this working!
from atom-node-resolver2.
The current limitation is how to detect import
.
This libraries uses https://github.com/hughsk/is-require/blob/master/index.js that very basic and it depends of the node that you pass.
I isolate the case in a little example: https://gist.github.com/Kikobeats/89168d73f57fd8e6c17c0effe1403987
Related: acornjs/acorn#441
from atom-node-resolver2.
Related Issues (4)
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 atom-node-resolver2.