workbox icon indicating copy to clipboard operation
workbox copied to clipboard

Webpack InjectManifest prod build Terser error.

Open muradsofi opened this issue 4 years ago • 1 comments

Library Affected: InjectManifest

Browser & Platform: "all browsers"

Issue or Feature Request Description: When I build my ServiceWorker via Webpack in development mode everything works fine but when I want to build for a prod I saw a Terser error in my console. (Unexpected token: punc (:))

I use i18n in my ServiceWorker when I comment i18n import everything works fine.

Any idea why this compile error happens?

muradsofi avatar Aug 30 '21 08:08 muradsofi

I'm sorry, but I'm not familiar with that specific build setup.

Can you share a link to a GitHub repo with a project that reproduces the problem? Or alternatively, reproduce the issue in an environment like https://codesandbox.io/?

jeffposnick avatar Sep 02 '21 19:09 jeffposnick