governance-ui icon indicating copy to clipboard operation
governance-ui copied to clipboard

Enable tree shaking

Open jeluard opened this issue 1 year ago • 0 comments

Tree shaking is currently disabled due to an issue with bn.js


@parcel/transformer-js: Unknown usage of CommonJS `module` object. This causes the module to be wrapped, and tree shaking to be disabled.

  /Users/julien/Documents/Projects/jeluard/swipealot/node_modules/bn.js/lib/bn.js:3547:37
    3546 |   };
  > 3547 | })(typeof module === 'undefined' || module, this);
  >      |                                     ^^^^^^
    3548 | 

  📝 Learn more: https://parceljs.org/features/scope-hoisting/#commonjs

@parcel/transformer-js: Unknown usage of CommonJS `exports` object. This causes tree shaking to be disabled.

  /Users/julien/Documents/Projects/jeluard/swipealot/node_modules/bn.js/lib/bn.js:3547:45
    3546 |   };
  > 3547 | })(typeof module === 'undefined' || module, this);
  >      |                                             ^^^^
    3548 | 

  📝 Learn more: https://parceljs.org/features/scope-hoisting/#commonjs

jeluard avatar Jan 18 '23 10:01 jeluard