@utoo/pack 1.3.9-alpha.3 → 1.3.9
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/core/project.d.ts +2 -0
- package/cjs/core/project.js +2 -1
- package/esm/core/project.d.ts +2 -0
- package/esm/core/project.js +2 -2
- package/package.json +9 -9
package/cjs/core/project.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { HmrIdentifiers, NapiUpdateMessage, NapiWrittenEndpoint, StackFrame, TurbopackInternalErrorOpts } from "../binding";
|
|
2
2
|
import * as binding from "../binding";
|
|
3
|
+
import { ConfigComplete } from "../config/types";
|
|
3
4
|
import { ProjectOptions, RawEntrypoints, Update } from "./types";
|
|
4
5
|
/**
|
|
5
6
|
* An error caused by a bug in Turbopack, and not the user's code (e.g. a Rust panic). These should
|
|
@@ -12,6 +13,7 @@ export declare class TurbopackInternalError extends Error {
|
|
|
12
13
|
location: string | undefined;
|
|
13
14
|
constructor({ message, anonymizedLocation }: TurbopackInternalErrorOpts);
|
|
14
15
|
}
|
|
16
|
+
export declare function serializeConfig(config: ConfigComplete, isDev: boolean): Promise<string>;
|
|
15
17
|
export declare function projectFactory(): (options: Required<ProjectOptions>, turboEngineOptions: binding.NapiTurboEngineOptions) => Promise<{
|
|
16
18
|
readonly _nativeProject: {
|
|
17
19
|
__napiType: "Project";
|
package/cjs/core/project.js
CHANGED
|
@@ -34,6 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.TurbopackInternalError = void 0;
|
|
37
|
+
exports.serializeConfig = serializeConfig;
|
|
37
38
|
exports.projectFactory = projectFactory;
|
|
38
39
|
const path_1 = require("path");
|
|
39
40
|
const util_1 = require("util");
|
|
@@ -97,7 +98,7 @@ function normalizeStyles(styles, isDev) {
|
|
|
97
98
|
async function serializeConfig(config, isDev) {
|
|
98
99
|
const configSerializable = {
|
|
99
100
|
...config,
|
|
100
|
-
|
|
101
|
+
styles: normalizeStyles(config.styles, isDev),
|
|
101
102
|
};
|
|
102
103
|
if (configSerializable.entry) {
|
|
103
104
|
configSerializable.entry = configSerializable.entry.map((entry) => {
|
package/esm/core/project.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { HmrIdentifiers, NapiUpdateMessage, NapiWrittenEndpoint, StackFrame, TurbopackInternalErrorOpts } from "../binding";
|
|
2
2
|
import * as binding from "../binding";
|
|
3
|
+
import { ConfigComplete } from "../config/types";
|
|
3
4
|
import { ProjectOptions, RawEntrypoints, Update } from "./types";
|
|
4
5
|
/**
|
|
5
6
|
* An error caused by a bug in Turbopack, and not the user's code (e.g. a Rust panic). These should
|
|
@@ -12,6 +13,7 @@ export declare class TurbopackInternalError extends Error {
|
|
|
12
13
|
location: string | undefined;
|
|
13
14
|
constructor({ message, anonymizedLocation }: TurbopackInternalErrorOpts);
|
|
14
15
|
}
|
|
16
|
+
export declare function serializeConfig(config: ConfigComplete, isDev: boolean): Promise<string>;
|
|
15
17
|
export declare function projectFactory(): (options: Required<ProjectOptions>, turboEngineOptions: binding.NapiTurboEngineOptions) => Promise<{
|
|
16
18
|
readonly _nativeProject: {
|
|
17
19
|
__napiType: "Project";
|
package/esm/core/project.js
CHANGED
|
@@ -56,10 +56,10 @@ function normalizeStyles(styles, isDev) {
|
|
|
56
56
|
emotion: normalizeEmotionConfig(styles.emotion, isDev),
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
async function serializeConfig(config, isDev) {
|
|
59
|
+
export async function serializeConfig(config, isDev) {
|
|
60
60
|
const configSerializable = {
|
|
61
61
|
...config,
|
|
62
|
-
|
|
62
|
+
styles: normalizeStyles(config.styles, isDev),
|
|
63
63
|
};
|
|
64
64
|
if (configSerializable.entry) {
|
|
65
65
|
configSerializable.entry = configSerializable.entry.map((entry) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@utoo/pack",
|
|
3
|
-
"version": "1.3.9
|
|
3
|
+
"version": "1.3.9",
|
|
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.9
|
|
44
|
+
"@utoo/pack-shared": "1.3.9",
|
|
45
45
|
"domparser-rs": "^0.0.7",
|
|
46
46
|
"find-up": "4.1.0",
|
|
47
47
|
"get-port": "^7.1.0",
|
|
@@ -92,12 +92,12 @@
|
|
|
92
92
|
},
|
|
93
93
|
"repository": "git@github.com:utooland/utoo.git",
|
|
94
94
|
"optionalDependencies": {
|
|
95
|
-
"@utoo/pack-darwin-arm64": "1.3.9
|
|
96
|
-
"@utoo/pack-darwin-x64": "1.3.9
|
|
97
|
-
"@utoo/pack-linux-arm64-gnu": "1.3.9
|
|
98
|
-
"@utoo/pack-linux-arm64-musl": "1.3.9
|
|
99
|
-
"@utoo/pack-linux-x64-gnu": "1.3.9
|
|
100
|
-
"@utoo/pack-linux-x64-musl": "1.3.9
|
|
101
|
-
"@utoo/pack-win32-x64-msvc": "1.3.9
|
|
95
|
+
"@utoo/pack-darwin-arm64": "1.3.9",
|
|
96
|
+
"@utoo/pack-darwin-x64": "1.3.9",
|
|
97
|
+
"@utoo/pack-linux-arm64-gnu": "1.3.9",
|
|
98
|
+
"@utoo/pack-linux-arm64-musl": "1.3.9",
|
|
99
|
+
"@utoo/pack-linux-x64-gnu": "1.3.9",
|
|
100
|
+
"@utoo/pack-linux-x64-musl": "1.3.9",
|
|
101
|
+
"@utoo/pack-win32-x64-msvc": "1.3.9"
|
|
102
102
|
}
|
|
103
103
|
}
|