GitXplorerGitXplorer
p

babel-plugin-object-assign

public
2 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
6522ba2588ee701add4dca7df41a2ea8f254c13a

Clarifying usage

JJedWatson committed 10 years ago
Unverified
defb23f6ed4fb54447c495a22fcab95f2e142a6a

Attribution

JJedWatson committed 10 years ago
Unverified
1c61c204d05cdad735c694638b10415f65396ec4

v1.0.0

JJedWatson committed 10 years ago
Unverified
9b7d92d7b018146c0c9e65532033ad740ba82fa6

Adding docs

JJedWatson committed 10 years ago
Unverified
e083a40901df6c04b9f2e230c81c290f346f3171

Adding package.json

JJedWatson committed 10 years ago
Unverified
a0294410237bd5be91da5959bcc7d36faf1a0456

Initial version

JJedWatson committed 10 years ago

README

The README file for this repository.

Object.assign plugin for Babel

Babel plugin that replaces Object.assign() with the extends helper.

Useful to reduce the need for additional polyfills or libraries when you want something that extends objects in browsers without native support.

Thanks to @sebmck for the implementation.

Usage

Instead of using _.extend(obj1, obj2...) or xtend(obj1, obj2...) just use Object.assign in your code and include this plugin for Babel.

Install:

$ npm install babel babel-plugin-object-assign

Use:

$ babel --plugins object-assign script.js

or:

require("babel").transform("code", { plugins: ["object-assign"] });