mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
enable experimentalDecorators for esbuild
This commit is contained in:
7 files changed
+9
-5
No files matched your search
@@ -47,6 +47,7 @@ const federationPlugin: esbuild.Plugin = {
|
||||
|
||||
const build = async (contents: string) => {
|
||||
const res = await esbuild.build({
|
||||
tsconfigRaw: '{"compilerOptions":{"experimentalDecorators":true}}',
|
||||
format: 'iife' as 'iife',
|
||||
bundle: true,
|
||||
outdir: tmp,
|
||||
|
||||
@@ -2,7 +2,7 @@ import ReconnectingWebSocket from 'reconnecting-websocket';
|
||||
|
||||
export default class Sock {
|
||||
sock: ReconnectingWebSocket;
|
||||
interval: NodeJS.Timer;
|
||||
interval: number;
|
||||
|
||||
constructor(public url: string, nocookie = false) {
|
||||
const i = new URL(url, window.location.href);
|
||||
|
||||
@@ -126,7 +126,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"ansi_up": "^6.0.2",
|
||||
"esbuild": "^0.19.7",
|
||||
"esbuild": "0.19.7",
|
||||
"fs-extra": "^11.1.1",
|
||||
"js-yaml": "^4.1.0",
|
||||
"jsesc": "^3.0.2",
|
||||
|
||||
Reference in new issue
Block a user