You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@rspack/core

Package Overview
Dependencies
Maintainers
1
Versions
1123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rspack/core - npm Package Compare versions

Comparing version

to
0.0.0-20221102062914

3

dist/config/devServer.d.ts
import type { WatchOptions } from "chokidar";
import type { ResolvedEntry } from "./entry";
export interface WebSocketServerOptions {

@@ -34,3 +33,3 @@ protocol?: string;

}
export declare function getAdditionDevEntry(): ResolvedEntry;
export declare function getAdditionDevEntry(): string[];
interface ResolveDevOptionContext {

@@ -37,0 +36,0 @@ context: string;

@@ -13,8 +13,3 @@ "use strict";

const reactRefreshEntryPath = require.resolve("@rspack/dev-client/react-refresh");
const additionalEntry = {
_rspack_dev_client: [devClientEntryPath],
_rspack_hot_update: [hotUpdateEntryPath],
_rspack_react_refresh: [reactRefreshEntryPath]
};
return additionalEntry;
return [devClientEntryPath, hotUpdateEntryPath, reactRefreshEntryPath];
}

@@ -21,0 +16,0 @@ exports.getAdditionDevEntry = getAdditionDevEntry;

@@ -10,7 +10,9 @@ "use strict";

function resolveEntryOptions(options, context) {
const additionDevEntry = context.dev ? (0, devServer_1.getAdditionDevEntry)() : {};
const additionDevEntry = context.dev ? (0, devServer_1.getAdditionDevEntry)() : [];
if (typeof options === "undefined" || options === null) {
return {
main: [path_1.default.resolve(context.context, "src", "index.js")],
...additionDevEntry
main: [
...additionDevEntry,
path_1.default.resolve(context.context, "src", "index.js")
]
};

@@ -20,4 +22,3 @@ }

return {
main: [options],
...additionDevEntry
main: [...additionDevEntry, options]
};

@@ -27,13 +28,12 @@ }

return {
main: options,
...additionDevEntry
main: [...additionDevEntry, ...options]
};
}
else if (typeof options === "object") {
return Object.fromEntries(Object.entries({ ...options, ...additionDevEntry }).map(([key, value]) => {
return Object.fromEntries(Object.entries({ ...options }).map(([key, value]) => {
if (Array.isArray(value)) {
return [key, value];
return [key, [...additionDevEntry, ...value]];
}
else {
return [key, [value]];
return [key, [...additionDevEntry, value]];
}

@@ -40,0 +40,0 @@ }));

{
"name": "@rspack/core",
"version": "0.0.0-20221102053602",
"version": "0.0.0-20221102062914",
"main": "./dist/index.js",

@@ -10,3 +10,3 @@ "types": "./dist/index.d.ts",

"devDependencies": {
"@rspack/core": "0.0.0-20221102053602",
"@rspack/core": "0.0.0-20221102062914",
"@swc/helpers": "^0.4.12",

@@ -28,6 +28,6 @@ "@types/jest": "29.0.2",

"dependencies": {
"@rspack/binding": "0.0.0-20221102053602",
"@rspack/dev-client": "0.0.0-20221102053602",
"@rspack/plugin-less": "^0.0.0-20221102053602",
"@rspack/plugin-postcss": "^0.0.0-20221102053602",
"@rspack/binding": "0.0.0-20221102062914",
"@rspack/dev-client": "0.0.0-20221102062914",
"@rspack/plugin-less": "^0.0.0-20221102062914",
"@rspack/plugin-postcss": "^0.0.0-20221102062914",
"browserslist": "^4.21.3",

@@ -34,0 +34,0 @@ "chokidar": "3.5.3",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet