Instead of accessing definition method from component.componentMode.definition, we should import it from from component script directly via import statement. This will reduce bundle size and provide “free” error reporting about missing symbols from Rollup.
Should also consider inline scripts as well when importing data
Instead of accessing definition method from
component.componentMode.definition, we should import it from from component script directly viaimportstatement. This will reduce bundle size and provide “free” error reporting about missing symbols from Rollup.Should also consider inline scripts as well when importing data