babel-plugin-transform-replace-object-assign
Advanced tools
Changelog
2.0.0
Official support for stable babel v7! :tada:
Chores (via #8):
@babel/preset-es2015
with @babel/preset-env
mocha
, all-contributors-cli
)Changelog
2.0.0-beta.0
sourceType
is module
or script
, fixing #1.@babel/core
peer dependency, as Babel does for official plugins.package-lock.json
.lodash.assign
in readme examples with object-assign
to demo defaults.Changelog
1.0.0
The plugin configuration is now optional. If no configuration is provided, the Object.assign
implementation will be replaced with object-assign.
This will replace Object.assign
with object-assign
:
{
"plugins": [["transform-replace-object-assign"]]
}
Breaking change: The plugin configuration no longer supports passing a string
module name. If you want to provide a custom Object.assign
implementation, you must provide an object
config with the name of the module specified in the moduleSpecifier
key.
This:
{
"plugins": [["transform-replace-object-assign", "custom-module"]]
}
Should be changed to this:
{
"plugins": [
[
"transform-replace-object-assign",
{ "moduleSpecifier": "custom-module" }
]
]
}
Thanks to @jaydenseric for proposing these changes in preparation for babel v7
.
Changelog
0.2.1
There were no code changes in this release. This patch fixed some documentation errors in README.md
so that it would show in the npm
registry.