Skip to content

Commit 2f9f89a

Browse files
committed
Add babel-plugin-transform-async-to-module-method to packageData.js
1 parent e59440a commit 2f9f89a

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

__tests__/__snapshots__/packageData.test.js.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ Object {
241241
"@babel/template": "7.0.0-beta.39",
242242
"@babel/traverse": "7.0.0-beta.39",
243243
"@babel/types": "7.0.0-beta.39",
244+
"[object Object]": "7.0.0-beta.39",
244245
"babel-loader": "^8.0.0-beta.0",
245246
"rollup-plugin-babel": "^4.0.0-beta.2",
246247
}

fixtures/deps.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"babel": "5.0.0",
33
"babel-plugin-transform-async-to-generator": "6.0.0",
4+
"babel-plugin-transform-async-to-module-method": "6.0.0",
45
"babel-plugin-transform-eval": "6.0.0",
56
"babel-plugin-transform-exponentiation-operator": "6.0.0",
67
"babel-plugin-transform-flow-comments": "6.0.0",

src/packageData.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
const transformPlugins = {
22
'babel-plugin-transform-async-to-generator': '@babel/plugin-transform-async-to-generator',
3+
'babel-plugin-transform-async-to-module-method': ['@babel/plugin-transform-async-to-generator', {
4+
"module": 'bluebird',
5+
"method": 'coroutine',
6+
}],
37
'babel-plugin-transform-eval': '@babel/plugin-transform-eval',
48
'babel-plugin-transform-exponentiation-operator': '@babel/plugin-transform-exponentiation-operator',
59
'babel-plugin-transform-flow-comments': '@babel/plugin-transform-flow-comments',

0 commit comments

Comments
 (0)