webpack-contrib / webpack-bundle-analyzer

Webpack plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap
MIT License
12.57k stars 484 forks source link

Error parsing bundle asset "C:\Projects\re\dist\apps\cart\remoteEntry.js": Cannot use 'import.meta' outside a module (1:2374) #590

Closed ko22009 closed 1 year ago

ko22009 commented 1 year ago

Is it normal that in console.log after run webpack-bundle-analyzer, I see error: Error parsing bundle asset "C:\Projects\re\dist\apps\cart\remoteEntry.js": Cannot use 'import.meta' outside a module (1:2374)

I create app with module federation. In my webpack config I have: output: { scriptType: 'module' }