@umijs/plugins 4.0.18 → 4.0.19

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/layout.js CHANGED
@@ -215,6 +215,7 @@ const { formatMessage } = useIntl();
215
215
  }
216
216
  return defaultDom;
217
217
  }}
218
+ itemRender={(route) => <Link to={route.path}>{route.breadcrumbName}</Link>}
218
219
  disableContentMargin
219
220
  fixSiderbar
220
221
  fixedHeader
@@ -39,7 +39,7 @@ var tailwindcss_default = (api) => {
39
39
  api.onBeforeCompiler(() => {
40
40
  const inputPath = (0, import_path.join)(api.cwd, "tailwind.css");
41
41
  const generatedPath = (0, import_path.join)(api.paths.absTmpPath, outputPath);
42
- const binPath = (0, import_path.join)(api.cwd, "node_modules/.bin/tailwind");
42
+ const binPath = getTailwindBinPath({ cwd: api.cwd });
43
43
  const configPath = (0, import_path.join)(process.env.APP_ROOT || api.cwd, "tailwind.config.js");
44
44
  return new Promise((resolve) => {
45
45
  tailwind = (0, import_plugin_utils.crossSpawn)(`${binPath}`, [
@@ -73,5 +73,12 @@ var tailwindcss_default = (api) => {
73
73
  return [{ source: generatedPath }];
74
74
  });
75
75
  };
76
+ function getTailwindBinPath(opts) {
77
+ const pkgPath = require.resolve("tailwindcss/package.json", {
78
+ paths: [opts.cwd]
79
+ });
80
+ const tailwindPath = require(pkgPath).bin["tailwind"];
81
+ return (0, import_path.join)((0, import_path.dirname)(pkgPath), tailwindPath);
82
+ }
76
83
  // Annotate the CommonJS export names for ESM import in node:
77
84
  0 && (module.exports = {});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/plugins",
3
- "version": "4.0.18",
3
+ "version": "4.0.19",
4
4
  "description": "@umijs/plugins",
5
5
  "homepage": "https://github.com/umijs/umi/tree/master/packages/plugins#readme",
6
6
  "bugs": "https://github.com/umijs/umi/issues",
@@ -27,7 +27,7 @@
27
27
  "@ant-design/antd-theme-variable": "^1.0.0",
28
28
  "@ant-design/icons": "^4.7.0",
29
29
  "@ant-design/pro-components": "^2.0.1",
30
- "@umijs/bundler-utils": "4.0.18",
30
+ "@umijs/bundler-utils": "4.0.19",
31
31
  "antd-dayjs-webpack-plugin": "^1.0.6",
32
32
  "axios": "^0.27.2",
33
33
  "babel-plugin-import": "^1.13.5",
@@ -46,7 +46,7 @@
46
46
  "warning": "^4.0.3"
47
47
  },
48
48
  "devDependencies": {
49
- "umi": "4.0.18"
49
+ "umi": "4.0.19"
50
50
  },
51
51
  "publishConfig": {
52
52
  "access": "public"