ui: esbuild tmpfix

This commit is contained in:
undefined committed 2023-11-27 02:44:10 +08:00
1 parent 7b6278faf9
commit dddf81f6a7
1 file changed
+3 -2
+3 -2
View File
@@ -152,13 +152,14 @@ export default function (env: { watch?: boolean, production?: boolean, measure?:
},
{
test: /\.[mc]?[jt]sx?$/,
exclude: [/@types\//, /components\/message\//, /entry\.js/],
// FIXME latest version on esbuild cannot handle `this` in `DOMAttachedObject` properly
exclude: [/@types\//, /components\//, /pages\//, /entry\.js/],
type: 'javascript/auto',
use: [esbuildLoader()],
},
{
test: /\.[mc]?[jt]sx?$/,
include: [/components\/message\//, /entry\.js/],
include: [/components\//, /pages\//, /entry\.js/],
type: 'javascript/auto',
use: [{
loader: 'ts-loader',