forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1e1e864
commit 86449f6
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
...feray-testray-workspace/client-extensions/liferay-testray-custom-element/@vite/refresh.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com | ||
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06 | ||
*/ | ||
|
||
// @ts-ignore | ||
|
||
// eslint-disable-next-line @liferay/no-absolute-import | ||
import RefreshRuntime from '/@react-refresh'; | ||
|
||
/** | ||
* @description This file is used ONLY and EXCLUSIVE for development | ||
* When setting up the remote app, add this import | ||
* http://localhost:3000/@vite/refresh.ts | ||
*/ | ||
|
||
RefreshRuntime.injectIntoGlobalHook(window); | ||
window.$RefreshReg$ = () => {}; | ||
window.$RefreshSig$ = () => (type) => type; | ||
|
||
window.__vite_plugin_react_preamble_installed__ = true; | ||
|
||
declare global { | ||
interface Window { | ||
$RefreshReg$: () => void; | ||
$RefreshSig$: () => (type: string) => string; | ||
__vite_plugin_react_preamble_installed__: boolean; | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...tray-workspace/client-extensions/liferay-testray-custom-element/client-extension.dev.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
liferay-testray-custom-element: | ||
urls: | ||
- http://localhost:5173/@vite/client | ||
- http://localhost:5173/@vite/refresh.ts | ||
- http://localhost:5173/src/main.tsx |