Skip to content

Commit

Permalink
reactivate terser compress and mangle
Browse files Browse the repository at this point in the history
thanks to the new es6 exports defined in the index.ts, terser is able to
generate a minified bundle including right export names.

The minified bundle size decreases from 180.99 kb to 129.64 kb.

export{or as BpmnVisualization,lr as DropFileUserInterface,I as IconPainter,O as
IconPainterProvider,i as MarkerIdentifier,N as StyleConfigurator,s as
StyleDefault,a as StyleIdentifier,x as buildPaintParameter,y as
computeScaledIconSize,ir as documentReady,dr as handleFileSelect,ur as loadBpmn,
sr as log,ar as logStartup,pr as readAndLoadFile};
  • Loading branch information
tbouffard committed Aug 11, 2020
1 parent 9852177 commit c408cea
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ if (devMode) {
if (demoMode) {
plugins.push(
terser({
compress: false,
mangle: false,
ecma: 6,
}),
);
Expand Down

0 comments on commit c408cea

Please sign in to comment.