@mui/internal-babel-plugin-resolve-imports 2.0.7-canary.12 → 2.0.7-canary.14

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/index.js +2 -2
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -51,8 +51,8 @@ module.exports = function plugin({ types: t }, { outExtension }) {
51
51
  const importedPath = importSource.node.value;
52
52
 
53
53
  const importExt = nodePath.extname(importedPath);
54
- // ignore if the import already has an extension
55
- if (extensionsSet.has(importExt)) {
54
+ // ignore if the import already has a desired extension or if it is a css import.
55
+ if (extensionsSet.has(importExt) || importExt === '.css') {
56
56
  return;
57
57
  }
58
58
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/internal-babel-plugin-resolve-imports",
3
- "version": "2.0.7-canary.12",
3
+ "version": "2.0.7-canary.14",
4
4
  "author": "MUI Team",
5
5
  "description": "Babel plugin that resolves import specifiers to their actual output file.",
6
6
  "main": "./index.js",
@@ -22,7 +22,7 @@
22
22
  "@babel/preset-typescript": "^7.27.1",
23
23
  "@types/babel__core": "^7.20.5",
24
24
  "@types/chai": "^4.3.20",
25
- "@types/node": "^24.0.3",
25
+ "@types/node": "^24.3.0",
26
26
  "@types/resolve": "^1.20.6",
27
27
  "babel-plugin-tester": "^12.0.0",
28
28
  "chai": "^4.5.0"
@@ -33,6 +33,6 @@
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
- "gitSha": "863a30fc9675cf887465e97e38bdf2bea9671311",
36
+ "gitSha": "a1f1e1c49d24c9e4efe18657ba9409ae401d1997",
37
37
  "scripts": {}
38
38
  }