0.0.2 • Published 10 years ago
babel-plugin-object-is v0.0.2
babel-plugin-object-is
Important: This is still pretty untested. Consider using with caution.
Replaces instances of Object.is with a polyfill (object-is on npm).
Usage
$ npm install babel babel-core babel-plugin-object-isNote: you need to specify babel-core as a dependency for your
project (not just babel). This is also true if you are using a
wrapper like babelify.
Use:
$ babel --plugins object-is script.jsor:
require("babel").transform("code", { plugins: ["object-is"] });with browserify / babelify:
var b = browserify({
  // browserifyoptions
}).transform(
  babelify.configure({
    plugins: ["object-is"]
  })
);