You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To achieve the smallest possible bundle size, libraries often wish to rename internal object properties or class members to smaller names - transforming `this._internalIdValue` to `this._i`. Microbundle doesn't do this by default, however it can be enabled by creating a `mangle.json` file (or a `"mangle"` property in your package.json). Within that file, you can specify a regular expression pattern to control which properties should be mangled. For example: to mangle all property names beginning an underscore:
@@ -212,6 +220,7 @@ Options
212
220
-o, --output Directory to place build files into
213
221
-f, --format Only build specified formats (any of modern,es,cjs,umd or iife) (default modern,es,cjs,umd)
214
222
-w, --watch Rebuilds on any change (default false)
223
+
--pkg-main Outputs files analog to package.json main entries (default true)
215
224
--target Specify your target environment (node or web) (default web)
216
225
--external Specify external dependencies, or 'none' (default peerDependencies and dependencies in package.json)
0 commit comments