Add apps/miniprogram/tt as a standalone Douyin app with official usePrivacyCheck + tt.showModal/setClipboardData flow, single-chapter offline reader, and document console privacy setup for clipboard. Co-authored-by: Cursor <cursoragent@cursor.com>
16 lines
337 B
JavaScript
16 lines
337 B
JavaScript
const useVite = String(process.env.TARO_COMPILER || '').toLowerCase() === 'vite'
|
||
|
||
module.exports = {
|
||
presets: [
|
||
[
|
||
'taro',
|
||
{
|
||
framework: 'react',
|
||
ts: true,
|
||
// Vite 小程序需声明;webpack 勿写死,否则解析异常
|
||
...(useVite ? { compiler: 'vite' } : {}),
|
||
},
|
||
],
|
||
],
|
||
}
|