Skip to content

Commit

Permalink
fix(webpack-runner): 修复使用 nerv 框架时组件样式设置不上的问题,close #7310
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyadam committed Aug 19, 2020
1 parent 97957f2 commit d411086
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/taro-webpack-runner/src/config/base.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export default (appPath: string, config: Partial<BuildConfig>) => {

if (config.framework === 'nerv') {
alias = {
react$: require.resolve('nervjs', { paths: [appPath] }),
'react-dom$': require.resolve('nervjs', { paths: [appPath] })
react$: 'nervjs',
'react-dom$': 'nervjs'
}
}

Expand Down

0 comments on commit d411086

Please sign in to comment.