• Great plugin!

    I am getting a message that /wp-content/mmr/front-end.js.map is not found. I know they’re only useful for debugging. Any chance this minor issue can be addressed in some way?

    I am seeing this error on Safari, but not all the time.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author launchinteractive

    (@launchinteractive)

    Hi. MMR merges javascript that may or may not have map files. I don’t think there is a way to make this work reliably unless all of the javascript in the site has a map file. I think it might be best to strip the comments to avoid your errors showing up. What do you think?

    Thread Starter therealgilles

    (@chamois_blanc)

    It is possible the error I am seeing has to do with my usage of redis-cache. I am going to disable it for a while to see if the errors go away.

    As for a solution to (missing) map files, adding an option to remove comments could work. Another possibility would be to copy the map files to where to MMR files are generated in case the browser is expecting the map files to be in the same place.

    Plugin Author launchinteractive

    (@launchinteractive)

    Do map files still work if the code has other coded merged with it?
    Clearly I don’t use map files so I’ve never tried.

    Thread Starter therealgilles

    (@chamois_blanc)

    Source map files rely on line numbers, so merging won’t work. When you transform the files (by merging them for instance), you would need to generate a new source map for the generated files.

    You may want to look into these packages:
    https://github.com/axypro/sourcemap
    https://github.com/koala-framework/sourcemaps

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘front-end.js.map not found’ is closed to new replies.