@stylexjs/babel-plugin 0.9.0 → 0.9.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.
Files changed (2) hide show
  1. package/lib/index.js +6 -0
  2. package/package.json +3 -3
package/lib/index.js CHANGED
@@ -1143,6 +1143,9 @@ const filePathResolver = (relativeFilePath, sourceFilePath, aliases) => {
1143
1143
  allowImportingExtraExtensions: true
1144
1144
  });
1145
1145
  if (resolved) {
1146
+ if (resolved.startsWith('.')) {
1147
+ return path.resolve(path.dirname(sourceFilePath), resolved);
1148
+ }
1146
1149
  return resolved;
1147
1150
  }
1148
1151
  }
@@ -1158,6 +1161,9 @@ const filePathResolver = (relativeFilePath, sourceFilePath, aliases) => {
1158
1161
  allowImportingExtraExtensions: true
1159
1162
  });
1160
1163
  if (resolved) {
1164
+ if (resolved.startsWith('.')) {
1165
+ return path.resolve(path.dirname(sourceFilePath), resolved);
1166
+ }
1161
1167
  return resolved;
1162
1168
  }
1163
1169
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stylexjs/babel-plugin",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "StyleX babel plugin.",
5
5
  "main": "lib/index.js",
6
6
  "repository": "https://github.com/facebook/stylex",
@@ -14,8 +14,8 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "@babel/helper-module-imports": "^7.22.15",
17
- "@stylexjs/shared": "0.9.0",
18
- "@stylexjs/stylex": "0.9.0",
17
+ "@stylexjs/shared": "0.9.2",
18
+ "@stylexjs/stylex": "0.9.2",
19
19
  "@babel/core": "^7.25.8",
20
20
  "@babel/traverse": "^7.25.7",
21
21
  "@babel/types": "^7.25.8",