@stylexswc/webpack-plugin 0.13.0-rc.5 → 0.13.0-rc.7
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stylex-loader.d.ts","sourceRoot":"","sources":["../src/stylex-loader.ts"],"names":[],"mappings":"AACA,OAAoB,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAGpE,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAChF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"stylex-loader.d.ts","sourceRoot":"","sources":["../src/stylex-loader.ts"],"names":[],"mappings":"AACA,OAAoB,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAGpE,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAChF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAI7C,wBAA8B,YAAY,CACxC,IAAI,EAAE,aAAa,CAAC,uBAAuB,GAAG,0BAA0B,CAAC,EACzE,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,SAAS,iBA8F1B"}
|
package/dist/stylex-loader.js
CHANGED
|
@@ -7,12 +7,13 @@ exports.default = stylexLoader;
|
|
|
7
7
|
const constants_1 = require("./constants");
|
|
8
8
|
const loader_utils_1 = __importDefault(require("loader-utils"));
|
|
9
9
|
const utils_1 = require("./utils");
|
|
10
|
+
const skipWarnRegex = /empty|client-only/;
|
|
10
11
|
async function stylexLoader(inputCode, inputSourceMap) {
|
|
11
12
|
const callback = this.async();
|
|
12
13
|
const { stylexImports, rsOptions, nextjsMode, extractCSS = true } = this.getOptions();
|
|
13
14
|
const logger = this._compiler?.getInfrastructureLogger(constants_1.PLUGIN_NAME);
|
|
14
15
|
if (!inputCode) {
|
|
15
|
-
if (!this.resourcePath
|
|
16
|
+
if (!skipWarnRegex.test(this.resourcePath)) {
|
|
16
17
|
logger?.warn(`@stylexswc/webpack-plugin: inputCode is empty for resource ${this.resourcePath}`);
|
|
17
18
|
}
|
|
18
19
|
return callback(null, inputCode, inputSourceMap);
|
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.13.0-rc.
|
|
4
|
+
"version": "0.13.0-rc.7",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"sideEffects": false,
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@stylexjs/babel-plugin": "^0.16.3",
|
|
22
|
-
"@stylexswc/rs-compiler": "0.13.0-rc.
|
|
22
|
+
"@stylexswc/rs-compiler": "0.13.0-rc.7",
|
|
23
23
|
"loader-utils": "^3.3.1"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@babel/types": "^7.28.5",
|
|
27
|
-
"@stylexswc/eslint-config": "0.13.0-rc.
|
|
28
|
-
"@stylexswc/typescript-config": "0.13.0-rc.
|
|
27
|
+
"@stylexswc/eslint-config": "0.13.0-rc.7",
|
|
28
|
+
"@stylexswc/typescript-config": "0.13.0-rc.7",
|
|
29
29
|
"@types/babel__core": "^7.20.5",
|
|
30
30
|
"@types/loader-utils": "^3.0.0",
|
|
31
31
|
"@types/node": "^24.9.2",
|