nomadro/apps/miniprogram/tt/babel.config.js
eric 1d3e513ae2 Ship Douyin tt/ miniprogram: offline reader, clipboard privacy, README.
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>
2026-09-30 15:17:52 +08:00

16 lines
337 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const useVite = String(process.env.TARO_COMPILER || '').toLowerCase() === 'vite'
module.exports = {
presets: [
[
'taro',
{
framework: 'react',
ts: true,
// Vite 小程序需声明;webpack 勿写死,否则解析异常
...(useVite ? { compiler: 'vite' } : {}),
},
],
],
}