mirror of
https://github.com/frappe/books.git
synced 2024-12-23 19:39:07 +00:00
47e6493699
- convert several to ES6
14 lines
502 B
JavaScript
14 lines
502 B
JavaScript
export default async function initLibs(frappe) {
|
|
const utils = await import('../utils');
|
|
const format = await import('../utils/format');
|
|
const errors = await import('./errors');
|
|
const BaseMeta = await import('frappe/model/meta');
|
|
const BaseDocument = await import('frappe/model/document');
|
|
|
|
Object.assign(frappe, utils.default);
|
|
Object.assign(frappe, format.default);
|
|
frappe.errors = errors.default;
|
|
frappe.BaseDocument = BaseDocument.default;
|
|
frappe.BaseMeta = BaseMeta.default;
|
|
}
|