babel-preset-liferay-standard
Advanced tools
Comparing version 1.2.2 to 1.2.3
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
value: true | ||
}); | ||
exports.default = function (context) { | ||
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
return { | ||
plugins: [_babelPluginNormalizeRequires2.default, _babelPluginTransformNodeEnvInline2.default, _babelPluginWrapModulesAmd2.default, _babelPluginNameAmdModules2.default, _babelPluginNamespaceAmdDefine2.default] | ||
}; | ||
exports.default = function () { | ||
return { | ||
plugins: [_babelPluginNormalizeRequires2.default, _babelPluginTransformNodeEnvInline2.default, _babelPluginWrapModulesAmd2.default, _babelPluginNameAmdModules2.default, _babelPluginNamespaceAmdDefine2.default] | ||
}; | ||
}; | ||
@@ -14,0 +12,0 @@ |
{ | ||
"name": "babel-preset-liferay-standard", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "Babel preset for bundling standard Liferay projects.", | ||
@@ -15,8 +15,8 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"babel-plugin-name-amd-modules": "^1.2.2", | ||
"babel-plugin-namespace-amd-define": "^1.2.2", | ||
"babel-plugin-normalize-requires": "^1.2.2", | ||
"babel-plugin-name-amd-modules": "^1.2.3", | ||
"babel-plugin-namespace-amd-define": "^1.2.3", | ||
"babel-plugin-normalize-requires": "^1.2.3", | ||
"babel-plugin-transform-node-env-inline": "^0.2.0", | ||
"babel-plugin-wrap-modules-amd": "^1.2.2" | ||
"babel-plugin-wrap-modules-amd": "^1.2.3" | ||
} | ||
} |
@@ -8,16 +8,14 @@ import babelPluginNormalizeRequires from 'babel-plugin-normalize-requires'; | ||
/** | ||
* @param {Object} context | ||
* @param {Object} opts | ||
* @return {Object} a Babel configuration object | ||
*/ | ||
export default function(context, opts = {}) { | ||
return { | ||
plugins: [ | ||
babelPluginNormalizeRequires, | ||
babelPluginTransformNodeEnvInline, | ||
babelPluginWrapModulesAmd, | ||
babelPluginNameAmdModules, | ||
babelPluginNamespaceAmdDefine, | ||
], | ||
}; | ||
export default function() { | ||
return { | ||
plugins: [ | ||
babelPluginNormalizeRequires, | ||
babelPluginTransformNodeEnvInline, | ||
babelPluginWrapModulesAmd, | ||
babelPluginNameAmdModules, | ||
babelPluginNamespaceAmdDefine, | ||
], | ||
}; | ||
} |
Sorry, the diff of this file is not supported yet
4619
39