forked from NervJS/taro
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(vite): fix h5 build error when use vite
- fix vite build h5 error, mostly due to different separators on window - fix h5 cannot use Taro.API when use vite - fix Taro.options.html not mounted when use webpack
- Loading branch information
Showing
4 changed files
with
44 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,7 +57,7 @@ export class MiniBaseConfig extends BaseConfig { | |
// 小程序使用 [email protected] | ||
'regenerator-runtime': require.resolve('regenerator-runtime'), | ||
// 开发组件库时 link 到本地调试,runtime 包需要指向本地 node_modules 顶层的 runtime,保证闭包值 Current 一致,shared 也一样 | ||
'@tarojs/runtime': resolveSync('@tarojs/runtime', resolveOptions), | ||
'@tarojs/runtime': resolveSync('@tarojs/runtime', { basedir: appPath, mainFields: ['main', ...mainFields] }), | ||
'@tarojs/shared': resolveSync('@tarojs/shared', resolveOptions), | ||
}, | ||
// [Webpack 4] config.node: { fs: false, path: false } | ||
|