babel-plugin-transform-catch-polyfill
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -13,3 +13,3 @@ 'use strict'; | ||
Program: function Program(path, file) { | ||
var exp = t.variableDeclaration('var', [t.variableDeclarator(t.identifier('regeneratorRuntime'), t.callExpression(t.identifier('require'), [t.stringLiteral('babel-catch-regenerator-runtime')]))]); | ||
var exp = t.variableDeclaration('var', [t.variableDeclarator(t.identifier('regeneratorRuntime'), t.callExpression(t.identifier('require'), [t.stringLiteral('cloud/lib/regenerator-runtime')]))]); | ||
path.unshiftContainer('body', exp); | ||
@@ -16,0 +16,0 @@ |
{ | ||
"name": "babel-plugin-transform-catch-polyfill", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -10,3 +10,3 @@ export default function ({ types: t }) { | ||
t.identifier('require'), | ||
[t.stringLiteral('babel-catch-regenerator-runtime')] | ||
[t.stringLiteral('cloud/lib/regenerator-runtime')] | ||
) | ||
@@ -13,0 +13,0 @@ ) |
2839