Convert named alias to relative paths.

This seems to be having an issue with the current webpack config and the babel loader. We will fix the issue on another ticket

MAILPOET-6215
This commit is contained in:
Oluwaseun Olorunsola
2024-11-05 10:14:26 +01:00
committed by Oluwaseun Olorunsola
parent 632c381b73
commit e8180fcbc5
5 changed files with 6 additions and 9 deletions

View File

@ -6,9 +6,9 @@ import {
useEntitiesSavedStatesIsDirty,
} from '@wordpress/editor';
import { useEntityProp } from '@wordpress/core-data';
import { MailPoetEmailData, storeName } from 'email-editor/engine/store';
import { MailPoetEmailData, storeName } from '../../store';
import { useSelect } from '@wordpress/data';
import { useContentValidation } from 'email-editor/engine/hooks';
import { useContentValidation } from '../../hooks';
export function SendButton() {
const [mailpoetEmail] = useEntityProp(

View File

@ -1,6 +1,6 @@
import { __ } from '@wordpress/i18n';
import { Notice, Button } from '@wordpress/components';
import { useValidationNotices } from 'email-editor/engine/hooks';
import { useValidationNotices } from '../../hooks';
export function ValidationNotices() {
const { notices } = useValidationNotices();

View File

@ -1,6 +1,6 @@
import { useSelect } from '@wordpress/data';
import { useState } from '@wordpress/element';
import { storeName } from 'email-editor/engine/store';
import { storeName } from '../../store';
import { SelectTemplateModal } from './select-modal';
export function TemplateSelection() {

View File

@ -3,7 +3,7 @@ import { useCallback, useMemo } from '@wordpress/element';
import { dispatch, useSelect, subscribe } from '@wordpress/data';
import { store as blockEditorStore } from '@wordpress/block-editor';
import { createBlock } from '@wordpress/blocks';
import { storeName as emailEditorStore } from 'email-editor/engine/store';
import { storeName as emailEditorStore } from '../store';
import { store as coreDataStore } from '@wordpress/core-data';
import { useShallowEqual } from './use-shallow-equal';
import { useValidationNotices } from './use-validation-notices';

View File

@ -3,9 +3,6 @@
"include": ["src/**/*", "src/**/*.json"],
"compilerOptions": {
"rootDir": "src",
"outDir": "build-types",
"paths": {
"email-editor/*": ["./src/*"]
}
"noEmit": true
}
}