aboutsummaryrefslogblamecommitdiffstats
path: root/library/Sortable/babel.config.js
blob: cfa6987611a24d0c8ea208d8844ca536f1c6ccef (plain) (tree)


























                                                                   
module.exports = function(api) {
	api.cache(true);

	let presets;

	if (process.env.NODE_ENV === 'es') {
		presets = [
			[
				"@babel/preset-env",
				{
					"modules": false
				}
			]
		];
	} else if (process.env.NODE_ENV === 'umd') {
		presets = [
			[
				"@babel/preset-env"
			]
		];
	}

	return {
		plugins: ['@babel/plugin-transform-object-assign'],
		presets
	};
};