enable experimentalDecorators for esbuild

This commit is contained in:
undefined committed 2023-11-25 06:32:41 +08:00
1 parent d2ccf598a7
commit bbe1345a82
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);
+1 -1
View File
@@ -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",