Skip to content

Commit d175a22

Browse files
committed
Upgrade acorn, remove object spread plugin
1 parent b5f402e commit d175a22

File tree

5 files changed

+5
-130
lines changed

5 files changed

+5
-130
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var acorn = require('acorn-node')
2929

3030
The API is the same as [acorn](https://github.com/acornjs/acorn), but the following syntax features are enabled by default:
3131

32-
- Object rest spread (via [acorn5-object-spread](https://github.com/adrianheine/acorn5-object-spread))
32+
- None right now.
3333

3434
And the following options have different defaults from acorn, to match Node modules:
3535

build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var buble = require('buble')
55

66
var HEADER = '/* Generated by `npm run build`, do not edit! */\n\n'
77

8-
function compile (name, output) {
8+
function compile (name, output) { // eslint-disable-line no-unused-vars
99
console.log(name, '→', output)
1010
mkdirp.sync(path.dirname(path.join(__dirname, output)))
1111
var source = fs.readFileSync(require.resolve(name), 'utf8')
@@ -17,4 +17,4 @@ function compile (name, output) {
1717
fs.writeFileSync(path.join(__dirname, output), HEADER + result.code, 'utf8')
1818
}
1919

20-
compile('acorn5-object-spread/inject', 'lib/object-spread/index.js')
20+
console.log('Nothing to do right now!')

index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ function mapOptions (opts) {
88
allowHashBang: true,
99
allowReturnOutsideFunction: true
1010
}, opts)
11-
opts.plugins = xtend(opts.plugins, {
12-
objectSpread: true
13-
})
11+
opts.plugins = xtend(opts.plugins, {})
1412
return opts
1513
}
1614

@@ -25,5 +23,3 @@ module.exports = exports = xtend(acorn, {
2523
return acorn.tokenizer(src, mapOptions(opts))
2624
}
2725
})
28-
29-
require('./lib/object-spread')(exports)

lib/object-spread/index.js

Lines changed: 0 additions & 120 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@
77
"url": "https://github.com/browserify/acorn-node/issues"
88
},
99
"dependencies": {
10-
"acorn": "^5.3.0",
10+
"acorn": "^5.4.1",
1111
"xtend": "^4.0.1"
1212
},
1313
"devDependencies": {
14-
"acorn5-object-spread": "^5.0.0",
1514
"buble": "^0.18.0",
1615
"mkdirp": "^0.5.1",
1716
"standard": "^10.0.3",

0 commit comments

Comments
 (0)