@utoo/pack 1.3.0-alpha.0 → 1.3.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/cjs/binding.d.ts +16 -5
- package/config_schema.json +14 -0
- package/esm/binding.d.ts +16 -5
- package/package.json +9 -9
package/cjs/binding.d.ts
CHANGED
|
@@ -9,6 +9,22 @@ export declare class ExternalObject<T> {
|
|
|
9
9
|
[K: symbol]: T
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
+
/** Arguments for `NapiTurbopackCallbacks::throw_turbopack_internal_error`. */
|
|
13
|
+
export interface TurbopackInternalErrorOpts {
|
|
14
|
+
message: string
|
|
15
|
+
anonymizedLocation?: string
|
|
16
|
+
}
|
|
17
|
+
export interface NapiTurbopackCallbacksJsObject {
|
|
18
|
+
/**
|
|
19
|
+
* Called when we've encountered a bug in Turbopack and not in the user's code. Constructs and
|
|
20
|
+
* throws a `TurbopackInternalError` type. Logs to anonymized telemetry.
|
|
21
|
+
*
|
|
22
|
+
* As a result of the use of `ErrorStrategy::CalleeHandled`, the first argument is an error if
|
|
23
|
+
* there's a runtime conversion error. This should never happen, but if it does, the function
|
|
24
|
+
* can throw it instead.
|
|
25
|
+
*/
|
|
26
|
+
throwTurbopackInternalError: (conversionError: Error | null, opts: TurbopackInternalErrorOpts) => never
|
|
27
|
+
}
|
|
12
28
|
export declare function registerWorkerScheduler(creator: (arg: NapiWorkerCreation) => any, terminator: (arg: NapiWorkerTermination) => any): void
|
|
13
29
|
export declare function workerCreated(workerId: number): void
|
|
14
30
|
export interface NapiWorkerCreation {
|
|
@@ -183,11 +199,6 @@ export declare function projectTraceSource(project: { __napiType: "Project" }, f
|
|
|
183
199
|
export declare function projectGetSourceForAsset(project: { __napiType: "Project" }, filePath: string): Promise<string | null>
|
|
184
200
|
export declare function projectGetSourceMap(project: { __napiType: "Project" }, filePath: RcStr): Promise<string | null>
|
|
185
201
|
export declare function projectGetSourceMapSync(project: { __napiType: "Project" }, filePath: RcStr): string | null
|
|
186
|
-
/** Arguments for `NapiTurbopackCallbacks::throw_turbopack_internal_error`. */
|
|
187
|
-
export interface TurbopackInternalErrorOpts {
|
|
188
|
-
message: string
|
|
189
|
-
anonymizedLocation?: string
|
|
190
|
-
}
|
|
191
202
|
/**
|
|
192
203
|
* A version of [`NapiTurbopackCallbacks`] that can accepted as an argument to a napi function.
|
|
193
204
|
*
|
package/config_schema.json
CHANGED
|
@@ -1221,6 +1221,20 @@
|
|
|
1221
1221
|
"description": "Style configuration",
|
|
1222
1222
|
"type": "object",
|
|
1223
1223
|
"properties": {
|
|
1224
|
+
"autoCssModules": {
|
|
1225
|
+
"description": "Enable automatic CSS Modules transform",
|
|
1226
|
+
"type": [
|
|
1227
|
+
"boolean",
|
|
1228
|
+
"null"
|
|
1229
|
+
]
|
|
1230
|
+
},
|
|
1231
|
+
"emotion": {
|
|
1232
|
+
"description": "Enable @emotion/react transform support",
|
|
1233
|
+
"type": [
|
|
1234
|
+
"boolean",
|
|
1235
|
+
"null"
|
|
1236
|
+
]
|
|
1237
|
+
},
|
|
1224
1238
|
"inlineCss": {
|
|
1225
1239
|
"description": "Inline CSS configuration"
|
|
1226
1240
|
},
|
package/esm/binding.d.ts
CHANGED
|
@@ -9,6 +9,22 @@ export declare class ExternalObject<T> {
|
|
|
9
9
|
[K: symbol]: T
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
+
/** Arguments for `NapiTurbopackCallbacks::throw_turbopack_internal_error`. */
|
|
13
|
+
export interface TurbopackInternalErrorOpts {
|
|
14
|
+
message: string
|
|
15
|
+
anonymizedLocation?: string
|
|
16
|
+
}
|
|
17
|
+
export interface NapiTurbopackCallbacksJsObject {
|
|
18
|
+
/**
|
|
19
|
+
* Called when we've encountered a bug in Turbopack and not in the user's code. Constructs and
|
|
20
|
+
* throws a `TurbopackInternalError` type. Logs to anonymized telemetry.
|
|
21
|
+
*
|
|
22
|
+
* As a result of the use of `ErrorStrategy::CalleeHandled`, the first argument is an error if
|
|
23
|
+
* there's a runtime conversion error. This should never happen, but if it does, the function
|
|
24
|
+
* can throw it instead.
|
|
25
|
+
*/
|
|
26
|
+
throwTurbopackInternalError: (conversionError: Error | null, opts: TurbopackInternalErrorOpts) => never
|
|
27
|
+
}
|
|
12
28
|
export declare function registerWorkerScheduler(creator: (arg: NapiWorkerCreation) => any, terminator: (arg: NapiWorkerTermination) => any): void
|
|
13
29
|
export declare function workerCreated(workerId: number): void
|
|
14
30
|
export interface NapiWorkerCreation {
|
|
@@ -183,11 +199,6 @@ export declare function projectTraceSource(project: { __napiType: "Project" }, f
|
|
|
183
199
|
export declare function projectGetSourceForAsset(project: { __napiType: "Project" }, filePath: string): Promise<string | null>
|
|
184
200
|
export declare function projectGetSourceMap(project: { __napiType: "Project" }, filePath: RcStr): Promise<string | null>
|
|
185
201
|
export declare function projectGetSourceMapSync(project: { __napiType: "Project" }, filePath: RcStr): string | null
|
|
186
|
-
/** Arguments for `NapiTurbopackCallbacks::throw_turbopack_internal_error`. */
|
|
187
|
-
export interface TurbopackInternalErrorOpts {
|
|
188
|
-
message: string
|
|
189
|
-
anonymizedLocation?: string
|
|
190
|
-
}
|
|
191
202
|
/**
|
|
192
203
|
* A version of [`NapiTurbopackCallbacks`] that can accepted as an argument to a napi function.
|
|
193
204
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@utoo/pack",
|
|
3
|
-
"version": "1.3.0-alpha.
|
|
3
|
+
"version": "1.3.0-alpha.2",
|
|
4
4
|
"main": "cjs/index.js",
|
|
5
5
|
"module": "esm/index.js",
|
|
6
6
|
"types": "esm/index.d.ts",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@hono/node-server": "^1.19.11",
|
|
42
42
|
"@hono/node-ws": "^1.3.0",
|
|
43
43
|
"@swc/helpers": "0.5.15",
|
|
44
|
-
"@utoo/pack-shared": "1.3.0-alpha.
|
|
44
|
+
"@utoo/pack-shared": "1.3.0-alpha.2",
|
|
45
45
|
"@utoo/style-loader": "^1.0.0",
|
|
46
46
|
"domparser-rs": "^0.0.7",
|
|
47
47
|
"find-up": "4.1.0",
|
|
@@ -90,12 +90,12 @@
|
|
|
90
90
|
},
|
|
91
91
|
"repository": "git@github.com:utooland/utoo.git",
|
|
92
92
|
"optionalDependencies": {
|
|
93
|
-
"@utoo/pack-darwin-arm64": "1.3.0-alpha.
|
|
94
|
-
"@utoo/pack-darwin-x64": "1.3.0-alpha.
|
|
95
|
-
"@utoo/pack-linux-arm64-gnu": "1.3.0-alpha.
|
|
96
|
-
"@utoo/pack-linux-arm64-musl": "1.3.0-alpha.
|
|
97
|
-
"@utoo/pack-linux-x64-gnu": "1.3.0-alpha.
|
|
98
|
-
"@utoo/pack-linux-x64-musl": "1.3.0-alpha.
|
|
99
|
-
"@utoo/pack-win32-x64-msvc": "1.3.0-alpha.
|
|
93
|
+
"@utoo/pack-darwin-arm64": "1.3.0-alpha.2",
|
|
94
|
+
"@utoo/pack-darwin-x64": "1.3.0-alpha.2",
|
|
95
|
+
"@utoo/pack-linux-arm64-gnu": "1.3.0-alpha.2",
|
|
96
|
+
"@utoo/pack-linux-arm64-musl": "1.3.0-alpha.2",
|
|
97
|
+
"@utoo/pack-linux-x64-gnu": "1.3.0-alpha.2",
|
|
98
|
+
"@utoo/pack-linux-x64-musl": "1.3.0-alpha.2",
|
|
99
|
+
"@utoo/pack-win32-x64-msvc": "1.3.0-alpha.2"
|
|
100
100
|
}
|
|
101
101
|
}
|