Skip to content

Commit

Permalink
Merge pull request #3482 from alibaba/fix/miniapp-env
Browse files Browse the repository at this point in the history
fix: miniapp env
  • Loading branch information
chenbin92 authored Aug 27, 2020
2 parents eb19354 + da3867f commit bffc4bf
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/create-app-shared/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-app-shared",
"version": "0.1.9",
"version": "0.1.10",
"description": "",
"author": "[email protected]",
"homepage": "https://github.com/alibaba/ice#readme",
Expand Down
4 changes: 2 additions & 2 deletions packages/create-app-shared/src/env.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isMiniApp, isWeChatMiniProgram, isByteDanceMicroApp } from 'universal-env';
import { isMiniApp, isWeChatMiniProgram, isByteDanceMicroApp, isWeb } from 'universal-env';

export const isMiniAppPlatform = isMiniApp || isWeChatMiniProgram || isByteDanceMicroApp;
export const isMiniAppPlatform = (isMiniApp || isWeChatMiniProgram || isByteDanceMicroApp) && !isWeb;
export * from 'universal-env';
4 changes: 2 additions & 2 deletions packages/icejs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ice.js",
"version": "1.8.0",
"version": "1.8.1",
"description": "command line interface and builtin plugin for icejs",
"author": "[email protected]",
"homepage": "",
Expand All @@ -26,7 +26,7 @@
"dependencies": {
"@alib/build-scripts": "^0.1.13",
"build-plugin-ice-config": "1.7.0",
"build-plugin-app-core": "0.1.12",
"build-plugin-app-core": "0.1.13",
"build-plugin-ice-helpers": "1.7.0",
"build-plugin-ice-logger": "1.7.0",
"build-plugin-ice-mpa": "1.7.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-app-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "build-plugin-app-core",
"version": "0.1.12",
"version": "0.1.13",
"description": "the core plugin for icejs and raxjs.",
"author": "[email protected]",
"homepage": "",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createElement, useEffect, Component } from '<%- framework %>';
import { isMiniApp, isWeChatMiniProgram, isByteDanceMicroApp } from 'universal-env';
import { isMiniApp, isWeChatMiniProgram, isByteDanceMicroApp, isWeb } from 'universal-env';
import miniappRenderer from 'miniapp-renderer';
import createShareAPI, { history } from 'create-app-shared';

Expand Down Expand Up @@ -51,7 +51,7 @@ export function runApp(appConfig) {
<% if(isRax){ %>
renderer = raxAppRenderer;
<% } %>
if (isMiniApp || isWeChatMiniProgram || isByteDanceMicroApp) {
if ((isMiniApp || isWeChatMiniProgram || isByteDanceMicroApp) && !isWeb) {
renderer = miniappRenderer;
}<% if(isReact){ %> else {
renderer = reactAppRenderer;
Expand Down

0 comments on commit bffc4bf

Please sign in to comment.