@rspack/core
Advanced tools
Comparing version
@@ -30,3 +30,4 @@ /// <reference types="node" /> | ||
source: number[]; | ||
sourceMap: string | null; | ||
sourceMap: string | undefined | null; | ||
additionalData: AdditionalData | undefined | null; | ||
resource: string; | ||
@@ -33,0 +34,0 @@ resourcePath: string; |
@@ -160,9 +160,12 @@ "use strict"; | ||
content: [...toBuffer(content)], | ||
sourceMap: [ | ||
...toBuffer(typeof sourceMap === "string" | ||
? sourceMap | ||
: JSON.stringify(sourceMap || {})) | ||
], | ||
// TODO: Use `None` for the rust side | ||
additionalData: [...toBuffer(JSON.stringify(additionalData || {}))] | ||
sourceMap: !(0, utils_1.isNil)(sourceMap) | ||
? [ | ||
...toBuffer(typeof sourceMap === "string" | ||
? sourceMap | ||
: JSON.stringify(sourceMap)) | ||
] | ||
: sourceMap, | ||
additionalData: !(0, utils_1.isNil)(additionalData) | ||
? [...toBuffer(JSON.stringify(additionalData))] | ||
: additionalData | ||
}; | ||
@@ -169,0 +172,0 @@ return Buffer.from(JSON.stringify(loaderResultPayload), "utf-8"); |
{ | ||
"name": "@rspack/core", | ||
"version": "0.0.0-20221129130808", | ||
"version": "0.0.0-20221201094737", | ||
"main": "./dist/index.js", | ||
@@ -26,6 +26,6 @@ "types": "./dist/index.d.ts", | ||
"@types/rimraf": "3.0.2", | ||
"@rspack/plugin-node-polyfill": "^0.0.0-20221129130808", | ||
"@rspack/less-loader": "^0.0.0-20221129130808", | ||
"@rspack/postcss-loader": "^0.0.0-20221129130808", | ||
"@rspack/core": "0.0.0-20221129130808" | ||
"@rspack/postcss-loader": "^0.0.0-20221201094737", | ||
"@rspack/core": "0.0.0-20221201094737", | ||
"@rspack/less-loader": "^0.0.0-20221201094737", | ||
"@rspack/plugin-node-polyfill": "^0.0.0-20221201094737" | ||
}, | ||
@@ -41,4 +41,4 @@ "dependencies": { | ||
"@swc/helpers": "0.4.13", | ||
"@rspack/binding": "0.0.0-20221129130808", | ||
"@rspack/dev-client": "0.0.0-20221129130808" | ||
"@rspack/dev-client": "0.0.0-20221201094737", | ||
"@rspack/binding": "0.0.0-20221201094737" | ||
}, | ||
@@ -45,0 +45,0 @@ "optionalDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
316546
5%171
3.01%4375
0.09%2
Infinity%+ Added
+ Added
- Removed
- Removed