Closed penge closed 2 years ago
Use ES modules which are now well supported in Chrome:
script type="module"
"type": "module"
Also:
"static"
"public"
"out"
"dist"
Note: As a result of using ES modules, code shared between multiple files is now moved into reusable chunk files. This reduces the build size by 20% (from 87KB down to 68KB) at the time of writing.
Use ES modules which are now well supported in Chrome:
script type="module"
) since Chrome 61 (https://web.dev/serve-modern-code-to-modern-browsers)"type": "module"
) since Chrome 91 (https://web.dev/es-modules-in-sw), but require Chrome 92 (because of https://stackoverflow.com/a/66408379)Also:
"static"
to"public"
"out"
to"dist"
Note: As a result of using ES modules, code shared between multiple files is now moved into reusable chunk files. This reduces the build size by 20% (from 87KB down to 68KB) at the time of writing.