@tarojs/taro 3.4.7 → 3.5.0-alpha.2
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 +5 -5
- package/types/compile.d.ts +32 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/taro",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0-alpha.2",
|
|
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,9 @@
|
|
|
24
24
|
"author": "O2Team",
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@tarojs/api": "3.
|
|
28
|
-
"@tarojs/runtime": "3.
|
|
29
|
-
"@tarojs/taro-h5": "3.
|
|
27
|
+
"@tarojs/api": "3.5.0-alpha.2",
|
|
28
|
+
"@tarojs/runtime": "3.5.0-alpha.2",
|
|
29
|
+
"@tarojs/taro-h5": "3.5.0-alpha.2"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "a7f74344335ee3b4c57a401c1d103e16da99ee7a"
|
|
32
32
|
}
|
package/types/compile.d.ts
CHANGED
|
@@ -357,6 +357,32 @@ export interface IManifestConfig extends ITaroManifestConfig {
|
|
|
357
357
|
|
|
358
358
|
export type PluginItem = string | [string, object]
|
|
359
359
|
|
|
360
|
+
interface ICache {
|
|
361
|
+
enable?: boolean
|
|
362
|
+
buildDependencies?: Record<string, any>
|
|
363
|
+
name?: string
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
type CompilerTypes = 'webpack4' | 'webpack5'
|
|
367
|
+
interface IPrebundle {
|
|
368
|
+
enable?: boolean
|
|
369
|
+
timings?: boolean
|
|
370
|
+
cacheDir?: string
|
|
371
|
+
force?: boolean
|
|
372
|
+
include?: string[]
|
|
373
|
+
exclude?: string[]
|
|
374
|
+
}
|
|
375
|
+
interface ICompiler {
|
|
376
|
+
type: CompilerTypes
|
|
377
|
+
prebundle: IPrebundle
|
|
378
|
+
}
|
|
379
|
+
type Compiler = CompilerTypes | ICompiler
|
|
380
|
+
|
|
381
|
+
interface ILogger {
|
|
382
|
+
quiet: boolean
|
|
383
|
+
stats: boolean
|
|
384
|
+
}
|
|
385
|
+
|
|
360
386
|
export interface IProjectBaseConfig {
|
|
361
387
|
projectName?: string
|
|
362
388
|
date?: string
|
|
@@ -369,14 +395,20 @@ export interface IProjectBaseConfig {
|
|
|
369
395
|
alias?: IOption
|
|
370
396
|
defineConstants?: IOption
|
|
371
397
|
copy?: ICopyOptions
|
|
398
|
+
jsMinimizer?: 'terser' | 'esbuild'
|
|
399
|
+
cssMinimizer?: 'csso' | 'esbuild' | 'parcelCss'
|
|
372
400
|
csso?: TogglableOptions
|
|
373
401
|
terser?: TogglableOptions
|
|
402
|
+
esbuild?: Record<'minify', TogglableOptions>
|
|
374
403
|
uglify?: TogglableOptions
|
|
375
404
|
sass?: ISassOptions
|
|
376
405
|
plugins?: PluginItem[]
|
|
377
406
|
presets?: PluginItem[]
|
|
378
407
|
baseLevel?: number
|
|
379
408
|
framework?: string
|
|
409
|
+
compiler?: Compiler
|
|
410
|
+
cache?: ICache
|
|
411
|
+
logger?: ILogger
|
|
380
412
|
}
|
|
381
413
|
|
|
382
414
|
export interface IProjectConfig extends IProjectBaseConfig {
|