@rspack/core 0.6.2-canary-0a88b52-20240418005550 → 0.6.2-canary-5e6c853-20240418111828
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/dist/exports.d.ts
CHANGED
|
@@ -14,9 +14,9 @@ export { MultiStats } from "./MultiStats";
|
|
|
14
14
|
export type { ChunkGroup } from "./ChunkGroup";
|
|
15
15
|
export type { NormalModuleFactory } from "./NormalModuleFactory";
|
|
16
16
|
export { NormalModule } from "./NormalModule";
|
|
17
|
-
|
|
17
|
+
import * as ModuleFilenameHelpers from "./lib/ModuleFilenameHelpers";
|
|
18
18
|
export { ModuleFilenameHelpers };
|
|
19
|
-
|
|
19
|
+
import Template = require("./Template");
|
|
20
20
|
export { Template };
|
|
21
21
|
export declare const WebpackError: ErrorConstructor;
|
|
22
22
|
export type { Watching } from "./Watching";
|
package/dist/exports.js
CHANGED
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
27
|
};
|
|
@@ -25,7 +48,7 @@ Object.defineProperty(exports, "MultiStats", { enumerable: true, get: function (
|
|
|
25
48
|
var NormalModule_1 = require("./NormalModule");
|
|
26
49
|
Object.defineProperty(exports, "NormalModule", { enumerable: true, get: function () { return NormalModule_1.NormalModule; } });
|
|
27
50
|
// API extractor not working with some re-exports, see: https://github.com/microsoft/fluentui/issues/20694
|
|
28
|
-
const ModuleFilenameHelpers = require("./lib/ModuleFilenameHelpers");
|
|
51
|
+
const ModuleFilenameHelpers = __importStar(require("./lib/ModuleFilenameHelpers"));
|
|
29
52
|
exports.ModuleFilenameHelpers = ModuleFilenameHelpers;
|
|
30
53
|
// API extractor not working with some re-exports, see: https://github.com/microsoft/fluentui/issues/20694
|
|
31
54
|
const Template = require("./Template");
|
|
@@ -520,7 +520,7 @@ async function runLoaders(compiler, rawContext) {
|
|
|
520
520
|
resolve({
|
|
521
521
|
content: (0, util_1.isNil)(content) ? undefined : (0, util_1.toBuffer)(content),
|
|
522
522
|
sourceMap: (0, util_1.serializeObject)(sourceMap),
|
|
523
|
-
additionalData
|
|
523
|
+
additionalData,
|
|
524
524
|
buildDependencies,
|
|
525
525
|
cacheable,
|
|
526
526
|
fileDependencies,
|
|
@@ -542,7 +542,7 @@ async function runLoaders(compiler, rawContext) {
|
|
|
542
542
|
: (0, util_1.toObject)(rawContext.sourceMap),
|
|
543
543
|
(0, util_1.isNil)(rawContext.additionalData)
|
|
544
544
|
? undefined
|
|
545
|
-
:
|
|
545
|
+
: rawContext.additionalData
|
|
546
546
|
], (err, result) => {
|
|
547
547
|
if (err) {
|
|
548
548
|
return reject(err);
|
|
@@ -551,7 +551,7 @@ async function runLoaders(compiler, rawContext) {
|
|
|
551
551
|
resolve({
|
|
552
552
|
content: (0, util_1.isNil)(content) ? undefined : (0, util_1.toBuffer)(content),
|
|
553
553
|
sourceMap: (0, util_1.serializeObject)(sourceMap),
|
|
554
|
-
additionalData
|
|
554
|
+
additionalData,
|
|
555
555
|
buildDependencies,
|
|
556
556
|
cacheable,
|
|
557
557
|
fileDependencies,
|
|
@@ -54,7 +54,7 @@ module.exports = function loadLoader(loader, callback) {
|
|
|
54
54
|
Object.assign({}, this.__internal__context, {
|
|
55
55
|
content: isNil(content) ? undefined : toBuffer(content),
|
|
56
56
|
sourceMap: serializeObject(sourceMap),
|
|
57
|
-
additionalData
|
|
57
|
+
additionalData
|
|
58
58
|
}));
|
|
59
59
|
// @ts-expect-error
|
|
60
60
|
this.__internal__context.additionalDataExternal =
|
|
@@ -69,9 +69,7 @@ module.exports = function loadLoader(loader, callback) {
|
|
|
69
69
|
context.buildDependencies.forEach(this.addBuildDependency);
|
|
70
70
|
callback(null, context.content, isNil(context.sourceMap)
|
|
71
71
|
? undefined
|
|
72
|
-
: toObject(context.sourceMap), isNil(context.additionalData)
|
|
73
|
-
? undefined
|
|
74
|
-
: toObject(context.additionalData));
|
|
72
|
+
: toObject(context.sourceMap), isNil(context.additionalData) ? undefined : context.additionalData);
|
|
75
73
|
// @ts-expect-error
|
|
76
74
|
this._compilation.__internal__pushNativeDiagnostics(context.diagnosticsExternal);
|
|
77
75
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/core",
|
|
3
|
-
"version": "0.6.2-canary-
|
|
3
|
+
"version": "0.6.2-canary-5e6c853-20240418111828",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "A Fast Rust-based Web Bundler",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"styled-components": "^6.0.8",
|
|
61
61
|
"terser": "5.27.2",
|
|
62
62
|
"wast-loader": "^1.11.4",
|
|
63
|
-
"@rspack/core": "0.6.2-canary-
|
|
64
|
-
"@rspack/plugin-minify": "^0.6.2-canary-
|
|
63
|
+
"@rspack/core": "0.6.2-canary-5e6c853-20240418111828",
|
|
64
|
+
"@rspack/plugin-minify": "^0.6.2-canary-5e6c853-20240418111828"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@module-federation/runtime-tools": "0.1.6",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"webpack-sources": "3.2.3",
|
|
77
77
|
"zod": "^3.21.4",
|
|
78
78
|
"zod-validation-error": "1.3.1",
|
|
79
|
-
"@rspack/binding": "0.6.2-canary-
|
|
79
|
+
"@rspack/binding": "0.6.2-canary-5e6c853-20240418111828"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
82
|
"@swc/helpers": ">=0.5.1"
|