alongubkin / alongubkin/spider
Native Require Support
- Lenguaje dominante
- JavaScript
- Estrellas
- 1.3k
- Forks
- 46
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Add native require support to Spider.
#### Proposed Syntax
```
require "util"
require (
"vm",
"lodash" as _,
"jashkenas/backbone" // GitHub repo
)
```
is compiled to:
```
var util = require("util"),
vm = require("vm"),
_ = require("lodash"),
backbone = require("backbone"); // after the compiler automatically installs the package
```
The `require` statement would also automatically use the added identifier so there's no need for `::` and `use`.
#### Problems
- How does this work in the Browser?
- How to combine this with ES6 modularisation features?
- Should we use [DuoJS](http://duojs.org/) by default (which solves the first issue)?
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.