@tarojs/webpack5-prebundle 3.6.5 → 3.7.0-alpha.0
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.
|
@@ -3,7 +3,7 @@ import { parse } from 'es-module-lexer';
|
|
|
3
3
|
import esbuild, { Plugin } from 'esbuild';
|
|
4
4
|
import Chain from 'webpack-chain';
|
|
5
5
|
import { CollectedDeps } from '../utils/constant';
|
|
6
|
-
type ExportsData = ReturnType<typeof parse> & {
|
|
6
|
+
declare type ExportsData = ReturnType<typeof parse> & {
|
|
7
7
|
hasReExports?: boolean;
|
|
8
8
|
needInterop?: boolean;
|
|
9
9
|
};
|
|
@@ -7,7 +7,7 @@ import type { Config } from '@swc/core';
|
|
|
7
7
|
import type { IProjectBaseConfig } from '@tarojs/taro/types/compile';
|
|
8
8
|
import type { Configuration, EntryObject } from 'webpack';
|
|
9
9
|
import type Chain from 'webpack-chain';
|
|
10
|
-
export type IPrebundle = Exclude<Exclude<IProjectBaseConfig['compiler'], string | undefined>['prebundle'], undefined>;
|
|
10
|
+
export declare type IPrebundle = Exclude<Exclude<IProjectBaseConfig['compiler'], string | undefined>['prebundle'], undefined>;
|
|
11
11
|
export interface IPrebundleConfig {
|
|
12
12
|
appPath: string;
|
|
13
13
|
chain: Chain;
|
|
@@ -21,7 +21,7 @@ export interface IPrebundleConfig {
|
|
|
21
21
|
sourceRoot: string;
|
|
22
22
|
isBuildPlugin?: boolean;
|
|
23
23
|
}
|
|
24
|
-
type TMode = 'production' | 'development' | 'none';
|
|
24
|
+
declare type TMode = 'production' | 'development' | 'none';
|
|
25
25
|
export default class BasePrebundle<T extends IPrebundleConfig = IPrebundleConfig> {
|
|
26
26
|
protected config: T;
|
|
27
27
|
protected option: IPrebundle;
|
package/dist/utils/constant.d.ts
CHANGED
|
@@ -9,6 +9,6 @@ export declare const multilineCommentsRE: RegExp;
|
|
|
9
9
|
export declare const singlelineCommentsRE: RegExp;
|
|
10
10
|
export declare const importsRE: RegExp;
|
|
11
11
|
export declare const moduleRE: RegExp;
|
|
12
|
-
export type CollectedDeps = Map<string, string>;
|
|
12
|
+
export declare type CollectedDeps = Map<string, string>;
|
|
13
13
|
export declare const MF_NAME = "taro_app_library";
|
|
14
14
|
export declare const defaultEsbuildLoader: Record<string, Loader>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import ContainerPlugin from 'webpack/lib/container/ContainerPlugin';
|
|
2
2
|
declare const ContainerEntryModule: any;
|
|
3
|
-
type Exposes = ConstructorParameters<typeof ContainerPlugin>[0]['exposes'];
|
|
3
|
+
declare type Exposes = ConstructorParameters<typeof ContainerPlugin>[0]['exposes'];
|
|
4
4
|
export default class TaroContainerEntryModule extends ContainerEntryModule {
|
|
5
5
|
constructor(name: string, exposes: Exposes, shareScope: string);
|
|
6
6
|
codeGeneration({ moduleGraph, chunkGraph, runtimeTemplate }: {
|
|
@@ -3,7 +3,7 @@ import { CollectedDeps } from '../utils/constant';
|
|
|
3
3
|
import type { PLATFORM_TYPE } from '@tarojs/shared';
|
|
4
4
|
import type { Compiler } from 'webpack';
|
|
5
5
|
import type { ContainerReferencePluginOptions } from 'webpack/types';
|
|
6
|
-
type MFOptions = Partial<ContainerReferencePluginOptions>;
|
|
6
|
+
declare type MFOptions = Partial<ContainerReferencePluginOptions>;
|
|
7
7
|
interface IParams {
|
|
8
8
|
deps: CollectedDeps;
|
|
9
9
|
env: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/webpack5-prebundle",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0-alpha.0",
|
|
4
4
|
"description": "Taro app webpack5 prebundle",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"lodash": "^4.17.21",
|
|
29
29
|
"webpack-chain": "6.5.1",
|
|
30
30
|
"webpack-virtual-modules": "^0.5.0",
|
|
31
|
-
"@tarojs/helper": "3.
|
|
32
|
-
"@tarojs/taro": "3.
|
|
31
|
+
"@tarojs/helper": "3.7.0-alpha.0",
|
|
32
|
+
"@tarojs/taro": "3.7.0-alpha.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"jest": "^29.3.1",
|