Further work to move from CJS to ESM as well as better use of import type ... rather than generic import ...
This commit is contained in:
parent
1ae24c01b0
commit
358fbfcc76
19 changed files with 35 additions and 28 deletions
|
|
@ -1,6 +1,9 @@
|
|||
import path from 'path';
|
||||
import fse from 'fs-extra';
|
||||
import { JSDOM } from 'jsdom';
|
||||
import jsdom from 'jsdom';
|
||||
import type { JSDOM as JSDocument } from 'jsdom';
|
||||
|
||||
const { JSDOM } = jsdom;
|
||||
|
||||
/** The inputs for setting up the meta tags */
|
||||
type SetupMetaTagInputs = {
|
||||
|
|
@ -33,7 +36,7 @@ export class BaseTemplateCreator {
|
|||
private output: string;
|
||||
|
||||
/** The DOM of the template */
|
||||
private dom: JSDOM;
|
||||
private dom: JSDocument;
|
||||
|
||||
/** The document of the template */
|
||||
private document: Document;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue