EDIT I'm bundling with Webpack. I think the problem is the script is getting run in strict mode.
I just installed and tried to use this.
When I load my page I get an 'install' is undefined error.
Looking at the code in node_modules/immutable-devtools/dist/index.js, it looks like src/index.js is transformed from this:
// Check for globally defined Immutable and add an install method to it.
if (typeof Immutable !== "undefined") {
Immutable.installDevTools = install.bind(null, Immutable);
}
// I imagine most people are using Immutable as a CommonJS module though...
let installed = false;
module.exports = function install(Immutable) {
...
EDIT I'm bundling with Webpack. I think the problem is the script is getting run in strict mode.
I just installed and tried to use this. When I load my page I get an 'install' is undefined error.
Looking at the code in
node_modules/immutable-devtools/dist/index.js
, it looks likesrc/index.js
is transformed from this:To this:
Immutable.installDevTools=install.bind(null,Immutable));var o=!1;n.exports=function(n){if("undefined"==typeof window)
As you can see, uglification removed the name of the
install
function.Looking forward to using this though, thanks!