@tarojs/taro 3.5.0-alpha.3 → 3.5.0-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/taro",
3
- "version": "3.5.0-alpha.3",
3
+ "version": "3.5.0-alpha.6",
4
4
  "description": "Taro framework",
5
5
  "homepage": "https://github.com/nervjs/taro/tree/master/packages/taro#readme",
6
6
  "main": "index.js",
@@ -24,9 +24,15 @@
24
24
  "author": "O2Team",
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
- "@tarojs/api": "3.5.0-alpha.3",
28
- "@tarojs/runtime": "3.5.0-alpha.3",
29
- "@tarojs/taro-h5": "3.5.0-alpha.3"
27
+ "@tarojs/api": "3.5.0-alpha.6",
28
+ "@tarojs/runtime": "3.5.0-alpha.6",
29
+ "@tarojs/taro-h5": "3.5.0-alpha.6"
30
30
  },
31
- "gitHead": "31c8fe1b7ddfd586a21dca05d11fef5314069a69"
31
+ "optionalDependencies": {
32
+ "@types/react": "*",
33
+ "@types/webpack": "*",
34
+ "@types/webpack-dev-server": "*",
35
+ "vue": "*"
36
+ },
37
+ "gitHead": "b447f059f6713464176fb9eac7347cd7f54d7a87"
32
38
  }
@@ -1,6 +1,6 @@
1
- import * as webpack from 'webpack'
2
- import * as webpackDevServer from 'webpack-dev-server'
3
1
  export { Current } from '@tarojs/runtime'
2
+ import webpack from 'webpack'
3
+ import webpackDevServer from 'webpack-dev-server'
4
4
 
5
5
  export const enum TEMPLATE_TYPES {
6
6
  WEAPP = '.wxml',
@@ -127,7 +127,7 @@ export interface IMiniAppConfig {
127
127
  }
128
128
 
129
129
  webpackChain?: (chain: any, webpack: any, PARSE_AST_TYPE: any) => void
130
- entry?: webpack.Entry
130
+ entry?: webpack.EntryObject
131
131
  output?: webpack.Output
132
132
  postcss?: IPostcssOption
133
133
  cssLoaderOption?: IOption
@@ -177,7 +177,7 @@ export interface IH5Config {
177
177
 
178
178
  webpackChain?: (chain: any, webpack: any) => void
179
179
 
180
- entry?: webpack.Entry
180
+ entry?: webpack.EntryObject
181
181
  output?: webpack.Output
182
182
  router?: IH5RouterConfig
183
183
  devServer?: webpackDevServer.Configuration
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- /// <reference types="vue" />
1
+ import React from 'react'
2
+ import Vue from 'vue'
3
3
 
4
4
  import Taro, { Config } from './index'
5
5
 
@@ -73,7 +73,7 @@ declare module './index' {
73
73
  onHide?(): void
74
74
  }
75
75
  interface AppInstance extends Show {
76
- mount(component: React.ComponentClass | Vue.ComponentOptions<Vue>, id: string, cb: () => void): void
76
+ mount(component: React.Component | Vue.ComponentOptions<Vue>, id: string, cb: () => void): void
77
77
  componentDidShow?(options?: Record<string, unknown>): void
78
78
  onShow?(options?: Record<string, unknown>): void
79
79
  unmount(id: string, cb: () => void): void
@@ -1,3 +1,5 @@
1
+ import React from 'react'
2
+
1
3
  import Taro, { Component } from './index'
2
4
 
3
5
  declare module './index' {