zalmoxisus / redux-devtools-extension

Redux DevTools extension.
MIT License
13.5k stars 1.01k forks source link

Native Map isn't displayed on latest Firefox Developer Edition #647

Open stefanfrede opened 5 years ago

stefanfrede commented 5 years ago

Hi,

I found this topic already a couple of times but so far no solution worked for me.

This is how I include redux-devtools:

const composeEnhancers =                                                                                                                                                                                                               
  typeof window === 'object' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__                                                                                                                                                            
    ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({                                                                                                                                                                                    
      serialize: { options: { map: true } },                                                                                                                                                                                         
    })                                                                                                                                                                                                                               
    : compose; 

And everything works fine except for the parts where I use maps.

This whole problem started when I had to switch from @babel/plugin-transform-runtime and @babel/runtime-corejs2 to @babel/polyfill.

I'm not using Chrome so I can't tell if it is just a Firefox problem.

stefanfrede commented 5 years ago

If I remove the serialize option and import map.prototype.tojson in my code redux-devtools is showing native maps properly.