@umijs/plugin-docs 4.0.10 → 4.0.13
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/client/theme-doc/tailwind.out.css +1 -8
- package/dist/compiler.js +3 -0
- package/dist/index.js +10 -0
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
! tailwindcss v3.1.
|
|
2
|
+
! tailwindcss v3.1.6 | MIT License | https://tailwindcss.com
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
/*
|
|
@@ -355,13 +355,6 @@ input::-moz-placeholder, textarea::-moz-placeholder {
|
|
|
355
355
|
/* 2 */
|
|
356
356
|
}
|
|
357
357
|
|
|
358
|
-
input:-ms-input-placeholder, textarea:-ms-input-placeholder {
|
|
359
|
-
opacity: 1;
|
|
360
|
-
/* 1 */
|
|
361
|
-
color: #9ca3af;
|
|
362
|
-
/* 2 */
|
|
363
|
-
}
|
|
364
|
-
|
|
365
358
|
input::placeholder,
|
|
366
359
|
textarea::placeholder {
|
|
367
360
|
opacity: 1;
|
package/dist/compiler.js
CHANGED
|
@@ -85,6 +85,9 @@ function MDXContent(props = {}) {
|
|
|
85
85
|
import_plugin_utils.logger.error(`Above error occurred in ${opts.fileName} at line ${e.line}`);
|
|
86
86
|
import_plugin_utils.logger.error(opts.content.split("\n").filter((_, i) => i == e.line - 1).join("\n"));
|
|
87
87
|
import_plugin_utils.logger.error(" ".repeat(e.column - 1) + "^");
|
|
88
|
+
if (process.env.NODE_ENV === "production") {
|
|
89
|
+
throw new Error("compile error");
|
|
90
|
+
}
|
|
88
91
|
return { result: "" };
|
|
89
92
|
}
|
|
90
93
|
}
|
package/dist/index.js
CHANGED
|
@@ -152,6 +152,16 @@ export default () => {
|
|
|
152
152
|
`
|
|
153
153
|
});
|
|
154
154
|
});
|
|
155
|
+
api.chainWebpack((memo) => {
|
|
156
|
+
if (api.env === "development") {
|
|
157
|
+
memo.plugin("fastRefresh").tap(([params]) => [
|
|
158
|
+
__spreadProps(__spreadValues({}, params), {
|
|
159
|
+
include: /\.([cm]js|[jt]sx?|flow|md)$/i
|
|
160
|
+
})
|
|
161
|
+
]);
|
|
162
|
+
}
|
|
163
|
+
return memo;
|
|
164
|
+
});
|
|
155
165
|
};
|
|
156
166
|
function withTmpPath(opts) {
|
|
157
167
|
return (0, import_path.join)(opts.api.paths.absTmpPath, opts.api.plugin.key && !opts.noPluginDir ? `plugin-${opts.api.plugin.key}` : "", opts.path);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/plugin-docs",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.13",
|
|
4
4
|
"description": "@umijs/plugin-docs",
|
|
5
5
|
"homepage": "https://github.com/umijs/umi/tree/master/packages/plugin-docs#readme",
|
|
6
6
|
"bugs": "https://github.com/umijs/umi/issues",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"rehype-slug": "5.0.1",
|
|
43
43
|
"remark-gfm": "^3.0.1",
|
|
44
44
|
"tailwindcss": "^3.0.24",
|
|
45
|
-
"umi": "4.0.
|
|
45
|
+
"umi": "4.0.13"
|
|
46
46
|
},
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|