angular-architects / module-federation-plugin

MIT License
683 stars 184 forks source link

feat(ng-esbuild):add call of compensateExports to output files #501

Open sedx opened 2 months ago

sedx commented 2 months ago

Uncomment and fix calling of compensateExports for dependencies.

It's allow use named imports instead default.

Before for React:

import React from 'react';
const Lazy = React.lazy(() => /** */);

After for React:

import { lazy }  from 'react';
const Lazy = lazy(() => /** */);