Skip to content

Commit 47bcff8

Browse files
committed
fix: babel build via the workaround https://phabricator.babeljs.io/T2877#78089
Huh, it's to tricky to use Map/Set in ES5.
1 parent 853f907 commit 47bcff8

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

.babelrc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
{
22
"env": {
33
"development": {
4+
"passPerPreset": true,
45
"presets": [
5-
["es2015", {"modules": "commonjs"}]
6+
{ "plugins": [ "transform-runtime" ] },
7+
{
8+
"passPerPreset": false,
9+
"presets": ["es2015"]
10+
}
611
],
712
"plugins": [
813
"syntax-async-functions",

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## master
22

3+
## 1.0.6 (August 15, 2016)
4+
- fix: babel build via the workaround https://phabricator.babeljs.io/T2877#78089 Huh, it's to tricky to use Map/Set in ES5.
5+
36
## 1.0.5 (August 13, 2016)
47
- fix: babel build process
58

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "graphql-compose-relay",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "Plugin for `graphql-compose` which wraps graphql types with Relay specific logic.",
55
"files": [
66
"es",
@@ -34,6 +34,7 @@
3434
"babel-plugin-transform-flow-strip-types": "6.8.0",
3535
"babel-plugin-transform-object-rest-spread": "6.8.0",
3636
"babel-plugin-transform-regenerator": "6.11.4",
37+
"babel-plugin-transform-runtime": "6.12.0",
3738
"babel-preset-es2015": "6.13.2",
3839
"chai": "3.5.0",
3940
"chai-as-promised": "5.3.0",
@@ -53,11 +54,14 @@
5354
"build": "npm run build-cjs && npm run build-flow && npm run build-es",
5455
"build-cjs": "rimraf lib && babel src --ignore __tests__,__mocks__ -d lib",
5556
"build-es": "rimraf es && BABEL_ENV=es babel src --ignore __tests__,__mocks__ -d es",
56-
"build-flow": "find ./src -name '*.js' -not -path '*/__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\\/src\\\//\\\/lib\\\//g'`.flow; done",
57+
"build-flow": "find ./src -name '*.js' -not -path '*/__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\/src\\//\\/lib\\//g'`.flow; done",
5758
"lint": "eslint src test *.js",
5859
"prepublish": "npm run test && npm run build",
5960
"test": "babel-node ./node_modules/.bin/_mocha --compilers js:babel-core/register --reporter dot --require ./resources/mocha-bootload src/**/__tests__/**/*-test.js",
6061
"watch": "babel-node ./resources/watch.js",
6162
"link": "npm link graphql && npm link graphql-compose && npm link"
63+
},
64+
"dependencies": {
65+
"babel-runtime": "6.11.6"
6266
}
6367
}

0 commit comments

Comments
 (0)