import { DefaultWidgetRegistry } from 'ngx-schema-form';
it imports from node_modules/ngx-schema-form/lib, which is probably a commonJs import since it is not treeshaken upon prod build, it also pulls in z-schema and validator package, which bloats the main.js bundle, even if ngx-schema-form is only used in a lazy loaded module.
However, i see a esm2022 folder in node_modules/ngx-schema-form but i cannot import from there.
Do you have clarification on how to import the esm way?
Hi, when importing like this:
import { DefaultWidgetRegistry } from 'ngx-schema-form';
it imports from node_modules/ngx-schema-form/lib, which is probably a commonJs import since it is not treeshaken upon prod build, it also pulls in z-schema and validator package, which bloats the main.js bundle, even if ngx-schema-form is only used in a lazy loaded module.
However, i see a esm2022 folder in node_modules/ngx-schema-form but i cannot import from there.
Do you have clarification on how to import the esm way?