mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: esbuild tmpfix
This commit is contained in:
1 file changed
+3
-2
@@ -152,13 +152,14 @@ export default function (env: { watch?: boolean, production?: boolean, measure?:
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.[mc]?[jt]sx?$/,
|
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',
|
type: 'javascript/auto',
|
||||||
use: [esbuildLoader()],
|
use: [esbuildLoader()],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.[mc]?[jt]sx?$/,
|
test: /\.[mc]?[jt]sx?$/,
|
||||||
include: [/components\/message\//, /entry\.js/],
|
include: [/components\//, /pages\//, /entry\.js/],
|
||||||
type: 'javascript/auto',
|
type: 'javascript/auto',
|
||||||
use: [{
|
use: [{
|
||||||
loader: 'ts-loader',
|
loader: 'ts-loader',
|
||||||
|
|||||||
Reference in new issue
Block a user