father icon indicating copy to clipboard operation
father copied to clipboard

father build 构建后中文被转义了,怎么能不被转义?

Open xydegithub opened this issue 4 years ago • 4 comments

build后 export declare const a = "\u6D4B\u8BD5"; declare const _default: ({ title }: { title: string; }) => JSX.Element; export default _default;

build 前 import React from 'react';

export const a ='测试'

export default ({ title }: { title: string }) =>

{title}

;

xydegithub avatar Jun 28 '21 03:06 xydegithub

@xiaohuoni 大佬

xydegithub avatar Jun 28 '21 03:06 xydegithub

转义之后的问题是啥

PeachScript avatar Jun 28 '21 03:06 PeachScript

转义之后的问题是啥

代码里写的是export const a ='测试',然后build之后变成了export declare const a = "\u6D4B\u8BD5";汉字被转了,不想被转义 @PeachScript 大佬帮忙分析一下啊

xydegithub avatar Jun 28 '21 05:06 xydegithub

相同的问题,应该是bug吧

Shipeijing avatar Aug 03 '22 07:08 Shipeijing

father 4 已发布,可尝试升级到最新版:https://github.com/umijs/father/blob/master/docs/guide/migrate.md

旧版本不再维护,感谢支持

PeachScript avatar Aug 31 '22 11:08 PeachScript