Remove babel-runtime from packages' dependencies (#5218)

This commit is contained in:
Kai Cataldo 2017-01-27 09:04:35 -05:00 committed by Henry Zhu
parent e5aa501327
commit e09ea222c9
89 changed files with 46 additions and 185 deletions

View File

@ -72,5 +72,4 @@ bootstrap:
./node_modules/.bin/lerna bootstrap ./node_modules/.bin/lerna bootstrap
make build make build
cd packages/babel-runtime; \ cd packages/babel-runtime; \
npm install; \
node scripts/build-dist.js node scripts/build-dist.js

View File

@ -3,6 +3,14 @@ machine:
version: version:
6 6
dependencies:
pre:
- curl -o- -L https://yarnpkg.com/install.sh | bash
cache_directories:
- ~/.yarn-cache
override:
- yarn
test: test:
override: override:
- make test-ci - make test-ci

View File

@ -14,9 +14,6 @@
} }
}, },
"cacheDir": ".changelog", "cacheDir": ".changelog",
"bootstrapConfig": {
"ignore": "babel-runtime"
},
"publishConfig": { "publishConfig": {
"ignore": [ "ignore": [
"*.md", "*.md",

View File

@ -14,11 +14,9 @@
"babel-plugin-istanbul": "^2.0.1", "babel-plugin-istanbul": "^2.0.1",
"babel-plugin-transform-class-properties": "^6.6.0", "babel-plugin-transform-class-properties": "^6.6.0",
"babel-plugin-transform-flow-strip-types": "^6.3.13", "babel-plugin-transform-flow-strip-types": "^6.3.13",
"babel-plugin-transform-runtime": "^6.3.13",
"babel-preset-es2015": "^6.13.2", "babel-preset-es2015": "^6.13.2",
"babel-preset-stage-0": "^6.0.0", "babel-preset-stage-0": "^6.0.0",
"babel-register": "^6.14.0", "babel-register": "^6.14.0",
"babel-runtime": "^6.0.0",
"browserify": "^13.1.1", "browserify": "^13.1.1",
"bundle-collapser": "^1.2.1", "bundle-collapser": "^1.2.1",
"chai": "^3.5.0", "chai": "^3.5.0",
@ -58,7 +56,6 @@
"stage-0" "stage-0"
], ],
"plugins": [ "plugins": [
"transform-runtime",
"transform-class-properties", "transform-class-properties",
"transform-flow-strip-types" "transform-flow-strip-types"
], ],

View File

@ -19,7 +19,6 @@
"babel-core": "^6.22.1", "babel-core": "^6.22.1",
"babel-register": "^6.22.0", "babel-register": "^6.22.0",
"babel-polyfill": "^6.22.0", "babel-polyfill": "^6.22.0",
"babel-runtime": "^6.22.0",
"commander": "^2.8.1", "commander": "^2.8.1",
"convert-source-map": "^1.1.0", "convert-source-map": "^1.1.0",
"fs-readdir-recursive": "^1.0.0", "fs-readdir-recursive": "^1.0.0",

View File

@ -31,7 +31,6 @@
"babel-helpers": "^6.22.0", "babel-helpers": "^6.22.0",
"babel-messages": "^6.22.0", "babel-messages": "^6.22.0",
"babel-template": "^6.22.0", "babel-template": "^6.22.0",
"babel-runtime": "^6.22.0",
"babel-register": "^6.22.0", "babel-register": "^6.22.0",
"babel-traverse": "^6.22.1", "babel-traverse": "^6.22.1",
"babel-types": "^6.22.0", "babel-types": "^6.22.0",

View File

@ -1,22 +1,24 @@
export default class Store extends Map { export default class Store {
constructor() { constructor() {
super(); this._map = new Map();
this.dynamicData = {}; this._map.dynamicData = {};
} }
dynamicData: Object;
setDynamic(key, fn) { setDynamic(key, fn) {
this.dynamicData[key] = fn; this._map.dynamicData[key] = fn;
}
set(key: string, val) {
this._map.set(key, val);
} }
get(key: string): any { get(key: string): any {
if (this.has(key)) { if (this._map.has(key)) {
return super.get(key); return this._map.get(key);
} else { } else {
if (Object.prototype.hasOwnProperty.call(this.dynamicData, key)) { if (Object.prototype.hasOwnProperty.call(this._map.dynamicData, key)) {
const val = this.dynamicData[key](); const val = this._map.dynamicData[key]();
this.set(key, val); this._map.set(key, val);
return val; return val;
} }
} }

View File

@ -12,7 +12,6 @@
], ],
"dependencies": { "dependencies": {
"babel-messages": "^6.22.0", "babel-messages": "^6.22.0",
"babel-runtime": "^6.22.0",
"babel-types": "^6.22.0", "babel-types": "^6.22.0",
"detect-indent": "^5.0.0", "detect-indent": "^5.0.0",
"jsesc": "^1.3.0", "jsesc": "^1.3.0",

View File

@ -6,7 +6,6 @@
"license": "MIT", "license": "MIT",
"main": "lib/index.js", "main": "lib/index.js",
"dependencies": { "dependencies": {
"babel-runtime": "^6.22.0",
"babel-traverse": "^6.22.0", "babel-traverse": "^6.22.0",
"babel-types": "^6.22.0" "babel-types": "^6.22.0"
} }

View File

@ -7,7 +7,6 @@
"main": "lib/index.js", "main": "lib/index.js",
"dependencies": { "dependencies": {
"babel-helper-explode-assignable-expression": "^6.22.0", "babel-helper-explode-assignable-expression": "^6.22.0",
"babel-runtime": "^6.22.0",
"babel-types": "^6.22.0" "babel-types": "^6.22.0"
} }
} }

View File

@ -7,7 +7,6 @@
"main": "lib/index.js", "main": "lib/index.js",
"dependencies": { "dependencies": {
"babel-helper-explode-assignable-expression": "^6.22.0", "babel-helper-explode-assignable-expression": "^6.22.0",
"babel-runtime": "^6.22.0",
"babel-types": "^6.22.0" "babel-types": "^6.22.0"
} }
} }

View File

@ -6,7 +6,6 @@
"license": "MIT", "license": "MIT",
"main": "lib/index.js", "main": "lib/index.js",
"dependencies": { "dependencies": {
"babel-runtime": "^6.22.0",
"babel-types": "^6.22.0", "babel-types": "^6.22.0",
"esutils": "^2.0.0", "esutils": "^2.0.0",
"lodash": "^4.2.0" "lodash": "^4.2.0"

View File

@ -7,7 +7,6 @@
"main": "lib/index.js", "main": "lib/index.js",
"dependencies": { "dependencies": {
"babel-traverse": "^6.22.0", "babel-traverse": "^6.22.0",
"babel-runtime": "^6.22.0",
"babel-types": "^6.22.0", "babel-types": "^6.22.0",
"babel-helper-hoist-variables": "^6.22.0" "babel-helper-hoist-variables": "^6.22.0"
} }

View File

@ -6,7 +6,6 @@
"license": "MIT", "license": "MIT",
"main": "lib/index.js", "main": "lib/index.js",
"dependencies": { "dependencies": {
"babel-runtime": "^6.22.0",
"lodash": "^4.2.0", "lodash": "^4.2.0",
"babel-types": "^6.22.0", "babel-types": "^6.22.0",
"babel-helper-function-name": "^6.22.0" "babel-helper-function-name": "^6.22.0"

View File

@ -7,7 +7,6 @@
"main": "lib/index.js", "main": "lib/index.js",
"dependencies": { "dependencies": {
"babel-traverse": "^6.22.0", "babel-traverse": "^6.22.0",
"babel-runtime": "^6.22.0",
"babel-types": "^6.22.0" "babel-types": "^6.22.0"
} }
} }

View File

@ -6,7 +6,6 @@
"license": "MIT", "license": "MIT",
"main": "lib/index.js", "main": "lib/index.js",
"dependencies": { "dependencies": {
"babel-runtime": "^6.22.0",
"babel-traverse": "^6.22.0", "babel-traverse": "^6.22.0",
"babel-types": "^6.22.0", "babel-types": "^6.22.0",
"babel-helper-bindify-decorators": "^6.22.0" "babel-helper-bindify-decorators": "^6.22.0"

View File

@ -7,7 +7,6 @@
"repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-fixtures", "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-fixtures",
"main": "lib/index.js", "main": "lib/index.js",
"dependencies": { "dependencies": {
"babel-runtime": "^6.22.0",
"lodash": "^4.2.0", "lodash": "^4.2.0",
"try-resolve": "^1.0.0" "try-resolve": "^1.0.0"
} }

View File

@ -6,7 +6,6 @@
"license": "MIT", "license": "MIT",
"main": "lib/index.js", "main": "lib/index.js",
"dependencies": { "dependencies": {
"babel-runtime": "^6.22.0",
"babel-types": "^6.22.0", "babel-types": "^6.22.0",
"babel-traverse": "^6.22.0", "babel-traverse": "^6.22.0",
"babel-helper-get-function-arity": "^6.22.0", "babel-helper-get-function-arity": "^6.22.0",

View File

@ -6,7 +6,6 @@
"license": "MIT", "license": "MIT",
"main": "lib/index.js", "main": "lib/index.js",
"dependencies": { "dependencies": {
"babel-runtime": "^6.22.0",
"babel-types": "^6.22.0" "babel-types": "^6.22.0"
} }
} }

View File

@ -6,7 +6,6 @@
"license": "MIT", "license": "MIT",
"main": "lib/index.js", "main": "lib/index.js",
"dependencies": { "dependencies": {
"babel-runtime": "^6.22.0",
"babel-types": "^6.22.0" "babel-types": "^6.22.0"
} }
} }

View File

@ -6,7 +6,6 @@
"license": "MIT", "license": "MIT",
"main": "lib/index.js", "main": "lib/index.js",
"dependencies": { "dependencies": {
"babel-runtime": "^6.22.0",
"babel-types": "^6.22.0" "babel-types": "^6.22.0"
} }
} }

View File

@ -6,7 +6,6 @@
"license": "MIT", "license": "MIT",
"main": "lib/index.js", "main": "lib/index.js",
"dependencies": { "dependencies": {
"babel-runtime": "^6.22.0",
"babel-helper-transform-fixture-test-runner": "^6.22.0" "babel-helper-transform-fixture-test-runner": "^6.22.0"
} }
} }

View File

@ -6,7 +6,6 @@
"license": "MIT", "license": "MIT",
"main": "lib/index.js", "main": "lib/index.js",
"dependencies": { "dependencies": {
"babel-runtime": "^6.22.0",
"lodash": "^4.2.0", "lodash": "^4.2.0",
"babel-types": "^6.22.0" "babel-types": "^6.22.0"
} }

View File

@ -6,7 +6,6 @@
"license": "MIT", "license": "MIT",
"main": "lib/index.js", "main": "lib/index.js",
"dependencies": { "dependencies": {
"babel-runtime": "^6.22.0",
"babel-template": "^6.22.0", "babel-template": "^6.22.0",
"babel-types": "^6.22.0", "babel-types": "^6.22.0",
"babel-traverse": "^6.22.0", "babel-traverse": "^6.22.0",

View File

@ -7,7 +7,6 @@
"main": "lib/index.js", "main": "lib/index.js",
"dependencies": { "dependencies": {
"babel-helper-optimise-call-expression": "^6.22.0", "babel-helper-optimise-call-expression": "^6.22.0",
"babel-runtime": "^6.22.0",
"babel-traverse": "^6.22.0", "babel-traverse": "^6.22.0",
"babel-messages": "^6.22.0", "babel-messages": "^6.22.0",
"babel-template": "^6.22.0", "babel-template": "^6.22.0",

View File

@ -8,7 +8,6 @@
"repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-transform-fixture-test-runner", "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-transform-fixture-test-runner",
"main": "lib/index.js", "main": "lib/index.js",
"dependencies": { "dependencies": {
"babel-runtime": "^6.22.0",
"babel-core": "^6.22.0", "babel-core": "^6.22.0",
"babel-polyfill": "^6.22.0", "babel-polyfill": "^6.22.0",
"babel-helper-fixtures": "^6.22.0", "babel-helper-fixtures": "^6.22.0",

View File

@ -8,7 +8,6 @@
"repository": "https://github.com/babel/babel/tree/master/packages/babel-helpers", "repository": "https://github.com/babel/babel/tree/master/packages/babel-helpers",
"main": "lib/index.js", "main": "lib/index.js",
"dependencies": { "dependencies": {
"babel-runtime": "^6.22.0",
"babel-template": "^6.22.0" "babel-template": "^6.22.0"
} }
} }

View File

@ -6,8 +6,5 @@
"homepage": "https://babeljs.io/", "homepage": "https://babeljs.io/",
"license": "MIT", "license": "MIT",
"repository": "https://github.com/babel/babel/tree/master/packages/babel-messages", "repository": "https://github.com/babel/babel/tree/master/packages/babel-messages",
"main": "lib/index.js", "main": "lib/index.js"
"dependencies": {
"babel-runtime": "^6.22.0"
}
} }

View File

@ -8,9 +8,6 @@
"keywords": [ "keywords": [
"babel-plugin" "babel-plugin"
], ],
"dependencies": {
"babel-runtime": "^6.22.0"
},
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"
} }

View File

@ -8,9 +8,6 @@
"keywords": [ "keywords": [
"babel-plugin" "babel-plugin"
], ],
"dependencies": {
"babel-runtime": "^6.22.0"
},
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"
} }

View File

@ -9,8 +9,7 @@
"babel-plugin" "babel-plugin"
], ],
"dependencies": { "dependencies": {
"babel-plugin-syntax-async-functions": "^6.8.0", "babel-plugin-syntax-async-functions": "^6.8.0"
"babel-runtime": "^6.22.0"
}, },
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"

View File

@ -10,8 +10,7 @@
], ],
"dependencies": { "dependencies": {
"babel-helper-remap-async-to-generator": "^6.22.0", "babel-helper-remap-async-to-generator": "^6.22.0",
"babel-plugin-syntax-async-generators": "^6.5.0", "babel-plugin-syntax-async-generators": "^6.5.0"
"babel-runtime": "^6.22.0"
}, },
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"

View File

@ -10,8 +10,7 @@
], ],
"dependencies": { "dependencies": {
"babel-helper-remap-async-to-generator": "^6.22.0", "babel-helper-remap-async-to-generator": "^6.22.0",
"babel-plugin-syntax-async-functions": "^6.8.0", "babel-plugin-syntax-async-functions": "^6.8.0"
"babel-runtime": "^6.22.0"
}, },
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"

View File

@ -11,8 +11,7 @@
"dependencies": { "dependencies": {
"babel-plugin-syntax-async-functions": "^6.8.0", "babel-plugin-syntax-async-functions": "^6.8.0",
"babel-helper-remap-async-to-generator": "^6.22.0", "babel-helper-remap-async-to-generator": "^6.22.0",
"babel-types": "^6.22.0", "babel-types": "^6.22.0"
"babel-runtime": "^6.22.0"
}, },
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"

View File

@ -11,7 +11,6 @@
"dependencies": { "dependencies": {
"babel-helper-function-name": "^6.22.0", "babel-helper-function-name": "^6.22.0",
"babel-plugin-syntax-class-properties": "^6.8.0", "babel-plugin-syntax-class-properties": "^6.8.0",
"babel-runtime": "^6.22.0",
"babel-template": "^6.22.0" "babel-template": "^6.22.0"
}, },
"devDependencies": { "devDependencies": {

View File

@ -12,8 +12,7 @@
"babel-types": "^6.22.0", "babel-types": "^6.22.0",
"babel-plugin-syntax-decorators": "^6.13.0", "babel-plugin-syntax-decorators": "^6.13.0",
"babel-helper-explode-class": "^6.22.0", "babel-helper-explode-class": "^6.22.0",
"babel-template": "^6.22.0", "babel-template": "^6.22.0"
"babel-runtime": "^6.22.0"
}, },
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"

View File

@ -9,8 +9,7 @@
"babel-plugin" "babel-plugin"
], ],
"dependencies": { "dependencies": {
"babel-plugin-syntax-do-expressions": "^6.8.0", "babel-plugin-syntax-do-expressions": "^6.8.0"
"babel-runtime": "^6.22.0"
}, },
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"

View File

@ -8,9 +8,6 @@
"keywords": [ "keywords": [
"babel-plugin" "babel-plugin"
], ],
"dependencies": {
"babel-runtime": "^6.22.0"
},
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"
} }

View File

@ -8,9 +8,6 @@
"keywords": [ "keywords": [
"babel-plugin" "babel-plugin"
], ],
"dependencies": {
"babel-runtime": "^6.22.0"
},
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"
} }

View File

@ -9,8 +9,7 @@
"babel-traverse": "^6.22.0", "babel-traverse": "^6.22.0",
"babel-types": "^6.22.0", "babel-types": "^6.22.0",
"babel-template": "^6.22.0", "babel-template": "^6.22.0",
"lodash": "^4.2.0", "lodash": "^4.2.0"
"babel-runtime": "^6.22.0"
}, },
"keywords": [ "keywords": [
"babel-plugin" "babel-plugin"

View File

@ -13,7 +13,6 @@
"babel-traverse": "^6.22.0", "babel-traverse": "^6.22.0",
"babel-helper-define-map": "^6.22.0", "babel-helper-define-map": "^6.22.0",
"babel-messages": "^6.22.0", "babel-messages": "^6.22.0",
"babel-runtime": "^6.22.0",
"babel-types": "^6.22.0" "babel-types": "^6.22.0"
}, },
"keywords": [ "keywords": [

View File

@ -9,8 +9,7 @@
"babel-plugin" "babel-plugin"
], ],
"dependencies": { "dependencies": {
"babel-template": "^6.22.0", "babel-template": "^6.22.0"
"babel-runtime": "^6.22.0"
}, },
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"

View File

@ -8,9 +8,6 @@
"keywords": [ "keywords": [
"babel-plugin" "babel-plugin"
], ],
"dependencies": {
"babel-runtime": "^6.22.0"
},
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"
} }

View File

@ -9,7 +9,6 @@
"babel-plugin" "babel-plugin"
], ],
"dependencies": { "dependencies": {
"babel-runtime": "^6.22.0",
"babel-types": "^6.22.0" "babel-types": "^6.22.0"
}, },
"devDependencies": { "devDependencies": {

View File

@ -8,9 +8,6 @@
"keywords": [ "keywords": [
"babel-plugin" "babel-plugin"
], ],
"dependencies": {
"babel-runtime": "^6.22.0"
},
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"
} }

View File

@ -10,8 +10,7 @@
], ],
"dependencies": { "dependencies": {
"babel-helper-function-name": "^6.22.0", "babel-helper-function-name": "^6.22.0",
"babel-types": "^6.22.0", "babel-types": "^6.22.0"
"babel-runtime": "^6.22.0"
}, },
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"

View File

@ -8,9 +8,6 @@
"keywords": [ "keywords": [
"babel-plugin" "babel-plugin"
], ],
"dependencies": {
"babel-runtime": "^6.22.0"
},
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"
} }

View File

@ -8,9 +8,6 @@
"keywords": [ "keywords": [
"babel-plugin" "babel-plugin"
], ],
"dependencies": {
"babel-runtime": "^6.22.0"
},
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"
} }

View File

@ -7,8 +7,7 @@
"main": "lib/index.js", "main": "lib/index.js",
"dependencies": { "dependencies": {
"babel-plugin-transform-es2015-modules-commonjs": "^6.22.0", "babel-plugin-transform-es2015-modules-commonjs": "^6.22.0",
"babel-template": "^6.22.0", "babel-template": "^6.22.0"
"babel-runtime": "^6.22.0"
}, },
"keywords": [ "keywords": [
"babel-plugin" "babel-plugin"

View File

@ -7,7 +7,6 @@
"main": "lib/index.js", "main": "lib/index.js",
"dependencies": { "dependencies": {
"babel-types": "^6.22.0", "babel-types": "^6.22.0",
"babel-runtime": "^6.22.0",
"babel-template": "^6.22.0", "babel-template": "^6.22.0",
"babel-plugin-transform-strict-mode": "^6.22.0" "babel-plugin-transform-strict-mode": "^6.22.0"
}, },

View File

@ -7,8 +7,7 @@
"main": "lib/index.js", "main": "lib/index.js",
"dependencies": { "dependencies": {
"babel-template": "^6.22.0", "babel-template": "^6.22.0",
"babel-helper-hoist-variables": "^6.22.0", "babel-helper-hoist-variables": "^6.22.0"
"babel-runtime": "^6.22.0"
}, },
"keywords": [ "keywords": [
"babel-plugin" "babel-plugin"

View File

@ -7,8 +7,7 @@
"main": "lib/index.js", "main": "lib/index.js",
"dependencies": { "dependencies": {
"babel-plugin-transform-es2015-modules-amd": "^6.22.0", "babel-plugin-transform-es2015-modules-amd": "^6.22.0",
"babel-template": "^6.22.0", "babel-template": "^6.22.0"
"babel-runtime": "^6.22.0"
}, },
"keywords": [ "keywords": [
"babel-plugin" "babel-plugin"

View File

@ -9,8 +9,7 @@
"babel-plugin" "babel-plugin"
], ],
"dependencies": { "dependencies": {
"babel-helper-replace-supers": "^6.22.0", "babel-helper-replace-supers": "^6.22.0"
"babel-runtime": "^6.22.0"
}, },
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"

View File

@ -10,8 +10,7 @@
"babel-helper-call-delegate": "^6.22.0", "babel-helper-call-delegate": "^6.22.0",
"babel-helper-get-function-arity": "^6.22.0", "babel-helper-get-function-arity": "^6.22.0",
"babel-template": "^6.22.0", "babel-template": "^6.22.0",
"babel-types": "^6.22.0", "babel-types": "^6.22.0"
"babel-runtime": "^6.22.0"
}, },
"keywords": [ "keywords": [
"babel-plugin" "babel-plugin"

View File

@ -9,8 +9,7 @@
"babel-plugin" "babel-plugin"
], ],
"dependencies": { "dependencies": {
"babel-types": "^6.22.0", "babel-types": "^6.22.0"
"babel-runtime": "^6.22.0"
}, },
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"

View File

@ -8,9 +8,6 @@
"keywords": [ "keywords": [
"babel-plugin" "babel-plugin"
], ],
"dependencies": {
"babel-runtime": "^6.22.0"
},
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"
} }

View File

@ -10,8 +10,7 @@
], ],
"dependencies": { "dependencies": {
"babel-helper-regex": "^6.22.0", "babel-helper-regex": "^6.22.0",
"babel-types": "^6.22.0", "babel-types": "^6.22.0"
"babel-runtime": "^6.22.0"
}, },
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"

View File

@ -8,9 +8,6 @@
"keywords": [ "keywords": [
"babel-plugin" "babel-plugin"
], ],
"dependencies": {
"babel-runtime": "^6.22.0"
},
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"
} }

View File

@ -8,9 +8,6 @@
"keywords": [ "keywords": [
"babel-plugin" "babel-plugin"
], ],
"dependencies": {
"babel-runtime": "^6.22.0"
},
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"
} }

View File

@ -10,7 +10,6 @@
], ],
"dependencies": { "dependencies": {
"babel-helper-regex": "^6.22.0", "babel-helper-regex": "^6.22.0",
"babel-runtime": "^6.22.0",
"regexpu-core": "^4.0.2" "regexpu-core": "^4.0.2"
}, },
"devDependencies": { "devDependencies": {

View File

@ -8,9 +8,6 @@
"keywords": [ "keywords": [
"babel-plugin" "babel-plugin"
], ],
"dependencies": {
"babel-runtime": "^6.22.0"
},
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"
} }

View File

@ -8,9 +8,6 @@
"keywords": [ "keywords": [
"babel-plugin" "babel-plugin"
], ],
"dependencies": {
"babel-runtime": "^6.22.0"
},
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"
} }

View File

@ -9,8 +9,7 @@
"babel-plugin" "babel-plugin"
], ],
"dependencies": { "dependencies": {
"babel-helper-define-map": "^6.22.0", "babel-helper-define-map": "^6.22.0"
"babel-runtime": "^6.22.0"
}, },
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"

View File

@ -8,9 +8,6 @@
"keywords": [ "keywords": [
"babel-plugin" "babel-plugin"
], ],
"dependencies": {
"babel-runtime": "^6.22.0"
},
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"
} }

View File

@ -10,8 +10,7 @@
], ],
"dependencies": { "dependencies": {
"babel-plugin-syntax-exponentiation-operator": "^6.8.0", "babel-plugin-syntax-exponentiation-operator": "^6.8.0",
"babel-helper-builder-binary-assignment-operator-visitor": "^6.22.0", "babel-helper-builder-binary-assignment-operator-visitor": "^6.22.0"
"babel-runtime": "^6.22.0"
}, },
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"

View File

@ -9,8 +9,7 @@
"babel-plugin" "babel-plugin"
], ],
"dependencies": { "dependencies": {
"babel-plugin-syntax-export-extensions": "^6.8.0", "babel-plugin-syntax-export-extensions": "^6.8.0"
"babel-runtime": "^6.22.0"
}, },
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"

View File

@ -9,7 +9,6 @@
"babel-plugin" "babel-plugin"
], ],
"dependencies": { "dependencies": {
"babel-runtime": "^6.22.0",
"babel-plugin-syntax-flow": "^6.8.0" "babel-plugin-syntax-flow": "^6.8.0"
}, },
"devDependencies": { "devDependencies": {

View File

@ -9,7 +9,6 @@
"babel-plugin" "babel-plugin"
], ],
"dependencies": { "dependencies": {
"babel-runtime": "^6.22.0",
"babel-plugin-syntax-flow": "^6.18.0" "babel-plugin-syntax-flow": "^6.18.0"
}, },
"devDependencies": { "devDependencies": {

View File

@ -9,8 +9,7 @@
"babel-plugin" "babel-plugin"
], ],
"dependencies": { "dependencies": {
"babel-plugin-syntax-function-bind": "^6.8.0", "babel-plugin-syntax-function-bind": "^6.8.0"
"babel-runtime": "^6.22.0"
}, },
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"

View File

@ -8,9 +8,6 @@
"keywords": [ "keywords": [
"babel-plugin" "babel-plugin"
], ],
"dependencies": {
"babel-runtime": "^6.22.0"
},
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"
} }

View File

@ -9,9 +9,6 @@
"keywords": [ "keywords": [
"babel-plugin" "babel-plugin"
], ],
"dependencies": {
"babel-runtime": "^6.22.0"
},
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"
} }

View File

@ -9,8 +9,7 @@
"babel-plugin" "babel-plugin"
], ],
"dependencies": { "dependencies": {
"babel-plugin-syntax-object-rest-spread": "^6.8.0", "babel-plugin-syntax-object-rest-spread": "^6.8.0"
"babel-runtime": "^6.22.0"
}, },
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"

View File

@ -8,9 +8,6 @@
"keywords": [ "keywords": [
"babel-plugin" "babel-plugin"
], ],
"dependencies": {
"babel-runtime": "^6.22.0"
},
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"
} }

View File

@ -9,7 +9,6 @@
"babel-plugin" "babel-plugin"
], ],
"dependencies": { "dependencies": {
"babel-runtime": "^6.22.0",
"lodash": "^4.2.0" "lodash": "^4.2.0"
}, },
"devDependencies": { "devDependencies": {

View File

@ -8,9 +8,6 @@
"keywords": [ "keywords": [
"babel-plugin" "babel-plugin"
], ],
"dependencies": {
"babel-runtime": "^6.22.0"
},
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"
} }

View File

@ -8,9 +8,6 @@
"keywords": [ "keywords": [
"babel-plugin" "babel-plugin"
], ],
"dependencies": {
"babel-runtime": "^6.22.0"
},
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"
} }

View File

@ -9,7 +9,6 @@
"babel-plugin" "babel-plugin"
], ],
"dependencies": { "dependencies": {
"babel-runtime": "^6.22.0",
"babel-helper-builder-react-jsx": "^6.22.0" "babel-helper-builder-react-jsx": "^6.22.0"
}, },
"devDependencies": { "devDependencies": {

View File

@ -9,7 +9,6 @@
"babel-plugin" "babel-plugin"
], ],
"dependencies": { "dependencies": {
"babel-runtime": "^6.22.0",
"babel-plugin-syntax-jsx": "^6.8.0" "babel-plugin-syntax-jsx": "^6.8.0"
}, },
"devDependencies": { "devDependencies": {

View File

@ -9,7 +9,6 @@
"babel-plugin" "babel-plugin"
], ],
"dependencies": { "dependencies": {
"babel-runtime": "^6.22.0",
"babel-plugin-syntax-jsx": "^6.8.0" "babel-plugin-syntax-jsx": "^6.8.0"
}, },
"devDependencies": { "devDependencies": {

View File

@ -9,7 +9,6 @@
"babel-plugin" "babel-plugin"
], ],
"dependencies": { "dependencies": {
"babel-runtime": "^6.22.0",
"babel-helper-builder-react-jsx": "^6.22.0", "babel-helper-builder-react-jsx": "^6.22.0",
"babel-plugin-syntax-jsx": "^6.8.0" "babel-plugin-syntax-jsx": "^6.8.0"
}, },

View File

@ -8,9 +8,6 @@
"keywords": [ "keywords": [
"babel-plugin" "babel-plugin"
], ],
"dependencies": {
"babel-runtime": "^6.22.0"
},
"devDependencies": { "devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0" "babel-helper-plugin-test-runner": "^6.22.0"
} }

View File

@ -9,7 +9,6 @@
"babel-plugin" "babel-plugin"
], ],
"dependencies": { "dependencies": {
"babel-runtime": "^6.22.0",
"babel-types": "^6.22.0" "babel-types": "^6.22.0"
}, },
"devDependencies": { "devDependencies": {

View File

@ -9,7 +9,6 @@
"babel-plugin" "babel-plugin"
], ],
"dependencies": { "dependencies": {
"babel-runtime": "^6.22.0",
"leven": "^1.0.2" "leven": "^1.0.2"
}, },
"devDependencies": { "devDependencies": {

View File

@ -9,7 +9,6 @@
"main": "lib/index.js", "main": "lib/index.js",
"dependencies": { "dependencies": {
"core-js": "^2.4.0", "core-js": "^2.4.0",
"babel-runtime": "^6.22.0",
"regenerator-runtime": "^0.10.0" "regenerator-runtime": "^0.10.0"
} }
} }

View File

@ -9,7 +9,6 @@
"browser": "lib/browser.js", "browser": "lib/browser.js",
"dependencies": { "dependencies": {
"babel-core": "^6.22.0", "babel-core": "^6.22.0",
"babel-runtime": "^6.22.0",
"core-js": "^2.4.0", "core-js": "^2.4.0",
"home-or-tmp": "^3.0.0", "home-or-tmp": "^3.0.0",
"lodash": "^4.2.0", "lodash": "^4.2.0",

View File

@ -32,16 +32,6 @@ function relative(filename) {
return __dirname + "/../" + filename; return __dirname + "/../" + filename;
} }
function readFile(filename, shouldDefaultify) {
var file = fs.readFileSync(require.resolve(filename), "utf8");
if (shouldDefaultify) {
file += "\n" + defaultify("module.exports") + "\n";
}
return file;
}
function defaultify(name) { function defaultify(name) {
return 'module.exports = { "default": ' + name + ', __esModule: true };'; return 'module.exports = { "default": ' + name + ', __esModule: true };';
} }
@ -63,15 +53,15 @@ var transformOpts = {
plugins: [ plugins: [
require("../../babel-plugin-transform-runtime"), require("../../babel-plugin-transform-runtime"),
[require("../../babel-plugin-transform-es2015-modules-commonjs"), {loose: true, strict: false}] [require("../../babel-plugin-transform-es2015-modules-commonjs"), { loose: true, strict: false }]
] ]
}; };
function buildRuntimeRewritePlugin(relativePath, helperName) { function buildRuntimeRewritePlugin(relativePath, helperName) {
return { return {
pre: function (file){ pre: function (file) {
var original = file.get("helperGenerator"); var original = file.get("helperGenerator");
file.set("helperGenerator", function(name){ file.set("helperGenerator", function(name) {
// make sure that helpers won't insert circular references to themselves // make sure that helpers won't insert circular references to themselves
if (name === helperName) return; if (name === helperName) return;
@ -92,13 +82,6 @@ function buildRuntimeRewritePlugin(relativePath, helperName) {
}; };
} }
function selfContainify(path, code) {
return babel.transform(code, {
presets: transformOpts.presets,
plugins: transformOpts.plugins.concat([buildRuntimeRewritePlugin(path, null)])
}).code;
}
function buildHelper(helperName) { function buildHelper(helperName) {
var tree = t.program([ var tree = t.program([
t.exportDefaultDeclaration(helpers.get(helperName)) t.exportDefaultDeclaration(helpers.get(helperName))

View File

@ -11,7 +11,6 @@
"babylon": "^6.11.0", "babylon": "^6.11.0",
"babel-traverse": "^6.22.0", "babel-traverse": "^6.22.0",
"babel-types": "^6.22.0", "babel-types": "^6.22.0",
"babel-runtime": "^6.22.0",
"lodash": "^4.2.0" "lodash": "^4.2.0"
} }
} }

View File

@ -10,7 +10,6 @@
"dependencies": { "dependencies": {
"babel-code-frame": "^6.22.0", "babel-code-frame": "^6.22.0",
"babel-messages": "^6.22.0", "babel-messages": "^6.22.0",
"babel-runtime": "^6.22.0",
"babel-types": "^6.22.0", "babel-types": "^6.22.0",
"babylon": "^6.15.0", "babylon": "^6.15.0",
"debug": "^2.2.0", "debug": "^2.2.0",

View File

@ -8,7 +8,6 @@
"repository": "https://github.com/babel/babel/tree/master/packages/babel-types", "repository": "https://github.com/babel/babel/tree/master/packages/babel-types",
"main": "lib/index.js", "main": "lib/index.js",
"dependencies": { "dependencies": {
"babel-runtime": "^6.22.0",
"esutils": "^2.0.2", "esutils": "^2.0.2",
"lodash": "^4.2.0", "lodash": "^4.2.0",
"to-fast-properties": "^1.0.1" "to-fast-properties": "^1.0.1"