Skip to content

Commit

Permalink
fix: dumi tarojs config (#1157)
Browse files Browse the repository at this point in the history
Co-authored-by: Yang <yangpan@zhongan.com>
  • Loading branch information
Yang03 and Yang authored Dec 14, 2023
1 parent c2babc2 commit 1a75224
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions site/.dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default defineConfig({
'zarm/lib': path.resolve(__dirname, '../packages/zarm/src'),
'zarm/es': path.resolve(__dirname, '../packages/zarm/src'),
zarm: require.resolve('../packages/zarm/src/index.ts'),
'@tarojs/taro': '@tarojs/taro-h5',
['@tarojs/components$']: '@tarojs/components/lib/react',
},
extraBabelPlugins: [
Expand Down Expand Up @@ -48,4 +49,15 @@ export default defineConfig({
autoAlias: {},
prefersColor: { default: 'auto' },
},
define: {
'process.env.TARO_ENV': JSON.stringify('h5'),
ENABLE_INNER_HTML: JSON.stringify(false),
ENABLE_ADJACENT_HTML: JSON.stringify(false),
ENABLE_SIZE_APIS: JSON.stringify(false),
ENABLE_TEMPLATE_CONTENT: JSON.stringify(false),
ENABLE_CLONE_NODE: JSON.stringify(false),
ENABLE_CONTAINS: JSON.stringify(false),
ENABLE_MUTATION_OBSERVER: JSON.stringify(false),
DEPRECATED_ADAPTER_COMPONENT: JSON.stringify(false),
}
});

0 comments on commit 1a75224

Please sign in to comment.