@stylexswc/webpack-plugin 0.6.2 → 0.6.3-rc.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/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +24 -4
- package/package.json +5 -4
package/dist/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,YAAoC,MAAM,wBAAwB,CAAC;AAE1E,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAEnC,OAAO,KAAK,EAAiB,0BAA0B,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AACpG,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAEpE,wBAAgB,gBAAgB,CAAC,aAAa,EAAE,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,MAAM,UAI9F;AAED,eAAO,MAAM,2BAA2B,GAAI,CAAC,WAClC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,KAChC,OAAO,IAAI,yBAAyB,CAAC,CAAC,CAExC,CAAC;AAEF,wBAAgB,oBAAoB,CAClC,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,OAAO,CAAC,YAAY,CAAC,aAAa,CAAC,EAC9C,WAAW,EAAE,0BAA0B,CAAC,aAAa,CAAC,GACrD,qBAAqB,CA4BvB"}
|
package/dist/utils.js
CHANGED
|
@@ -1,12 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
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;
|
|
4
24
|
};
|
|
5
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
26
|
exports.isSupplementedLoaderContext = void 0;
|
|
7
27
|
exports.stringifyRequest = stringifyRequest;
|
|
8
28
|
exports.generateStyleXOutput = generateStyleXOutput;
|
|
9
|
-
const rs_compiler_1 =
|
|
29
|
+
const rs_compiler_1 = __importStar(require("@stylexswc/rs-compiler"));
|
|
10
30
|
function stringifyRequest(loaderContext, request) {
|
|
11
31
|
return JSON.stringify(loaderContext.utils.contextify(loaderContext.context || loaderContext.rootContext, request));
|
|
12
32
|
}
|
|
@@ -31,5 +51,5 @@ function generateStyleXOutput(resourcePath, inputSource, rsOptions, transformer)
|
|
|
31
51
|
const map = undefined;
|
|
32
52
|
return { code, map, metadata };
|
|
33
53
|
}
|
|
34
|
-
return rs_compiler_1.default.transform(resourcePath, inputSource, rsOptions);
|
|
54
|
+
return rs_compiler_1.default.transform(resourcePath, inputSource, (0, rs_compiler_1.normalizeRsOptions)(rsOptions ?? {}));
|
|
35
55
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stylexswc/webpack-plugin",
|
|
3
3
|
"description": "StyleX webpack plugin with NAPI-RS compiler",
|
|
4
|
-
"version": "0.6.2",
|
|
4
|
+
"version": "0.6.3-rc.2",
|
|
5
5
|
"config": {
|
|
6
6
|
"scripty": {
|
|
7
7
|
"path": "../../scripts/packages"
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@stylexjs/babel-plugin": "^0.10.1",
|
|
12
|
+
"@stylexswc/rs-compiler": "0.6.3-rc.2",
|
|
12
13
|
"loader-utils": "^3.3.1"
|
|
13
14
|
},
|
|
14
15
|
"devDependencies": {
|
|
15
16
|
"@babel/types": "^7.23.9",
|
|
16
|
-
"@stylexswc/eslint-config": "0.6.2",
|
|
17
|
-
"@stylexswc/
|
|
18
|
-
"@stylexswc/typescript-config": "0.6.2",
|
|
17
|
+
"@stylexswc/eslint-config": "0.6.3-rc.2",
|
|
18
|
+
"@stylexswc/typescript-config": "0.6.3-rc.2",
|
|
19
19
|
"@types/babel__core": "^7.20.5",
|
|
20
20
|
"@types/loader-utils": "^2.0.6",
|
|
21
21
|
"@types/node": "^22.5.1",
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"clean": "del-cli dist",
|
|
47
47
|
"lint": "eslint . --color",
|
|
48
48
|
"lint:check": "eslint . --color --format json --output-file dist/eslint_report.json",
|
|
49
|
+
"postbuild": "pnpm run check:artifacts",
|
|
49
50
|
"precommit": "lint-staged",
|
|
50
51
|
"prepush": "lint-prepush",
|
|
51
52
|
"test": "echo \"Error: no test specified\" && exit 0",
|