Skip to content

Commit

Permalink
chore: 兼容更多不支持 esmModule 的浏览器
Browse files Browse the repository at this point in the history
  • Loading branch information
markthree committed Jul 26, 2023
1 parent 990602e commit 8ab5f9f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion presets/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,16 @@ export default function () {
const safelist =
'prose px-2 sm:px-0 md:prose-lg lg:prose-lg dark:prose-invert text-left w-screen prose-slate prose-img:rounded-xl prose-headings:underline prose-a:text-blue-600'
const plugins = [
// 兼容不支持 esmModule 的浏览器
Legacy({
targets: ['defaults', 'not IE 11'],
targets: [
'>= 0.25%',
'last 2 versions',
'not dead',
'not ie <= 11',
'Android >= 4.0',
'iOS >= 8',
],
}),
EnvTypes({
dts: 'presets/types/env.d.ts',
Expand Down

0 comments on commit 8ab5f9f

Please sign in to comment.