upgrade to babel 5
This commit is contained in:
parent
562dba872d
commit
1a53d5ca46
3
index.js
Normal file
3
index.js
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
export * from "./src/index";
|
||||||
|
import "./plugins/flow";
|
||||||
|
import "./plugins/jsx";
|
||||||
@ -2,7 +2,7 @@
|
|||||||
"name": "acorn",
|
"name": "acorn",
|
||||||
"description": "ECMAScript parser",
|
"description": "ECMAScript parser",
|
||||||
"homepage": "https://github.com/marijnh/acorn",
|
"homepage": "https://github.com/marijnh/acorn",
|
||||||
"main": "src/index.js",
|
"main": "index.js",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=0.4.0"
|
"node": ">=0.4.0"
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
var acorn = require("..")
|
var acorn = require("../src/index")
|
||||||
|
|
||||||
var pp = acorn.Parser.prototype
|
var pp = acorn.Parser.prototype
|
||||||
var tt = acorn.tokTypes
|
var tt = acorn.tokTypes
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
var acorn = require("..")
|
var acorn = require("../src/index")
|
||||||
|
|
||||||
var tt = acorn.tokTypes;
|
var tt = acorn.tokTypes;
|
||||||
var tc = acorn.tokContexts;
|
var tc = acorn.tokContexts;
|
||||||
|
|||||||
@ -38,9 +38,6 @@ export {isIdentifierChar, isIdentifierStart} from "./identifier"
|
|||||||
export {Token} from "./tokenize"
|
export {Token} from "./tokenize"
|
||||||
export {isNewLine, lineBreak, lineBreakG} from "./whitespace"
|
export {isNewLine, lineBreak, lineBreakG} from "./whitespace"
|
||||||
|
|
||||||
import "../plugins/flow";
|
|
||||||
import "../plugins/jsx";
|
|
||||||
|
|
||||||
export const version = "1.0.0"
|
export const version = "1.0.0"
|
||||||
|
|
||||||
// The main exported interface (under `self.acorn` when in the
|
// The main exported interface (under `self.acorn` when in the
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user