Relative Content

Tag Archive for reactjswebpackbabeljses6-modules

mjs files from dependency are not being handled by babel or webpack

At my job we have a React library of components. One of those components use pdfjs-dist. We just updated the version of pdfjs-dist to fix an audit issue. The new version of pdfjs-dist now uses files with the .mjs extension. This is my first encounter with mjs files. Even though I have been trying to read up on them I am still not sure how best to handle them.