weifuwu 0.9.1 → 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/dist/index.js +9 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -942,13 +942,22 @@ ${body}`;
942
942
  }
943
943
  async function setupTailwind(pagesDir, router, alias) {
944
944
  let tailwindPlugin, postcss, autoprefixer;
945
+ const _onWarning = (w) => {
946
+ if (w.code === "DEP0205") return;
947
+ process.removeListener("warning", _onWarning);
948
+ process.emitWarning(w);
949
+ process.on("warning", _onWarning);
950
+ };
951
+ process.on("warning", _onWarning);
945
952
  try {
946
953
  tailwindPlugin = (await import("@tailwindcss/postcss")).default;
947
954
  postcss = (await import("postcss")).default;
948
955
  autoprefixer = (await import("autoprefixer")).default;
949
956
  } catch {
957
+ process.removeListener("warning", _onWarning);
950
958
  return null;
951
959
  }
960
+ process.removeListener("warning", _onWarning);
952
961
  const candidates = ["app.css", "globals.css", "src/app.css", "src/globals.css", "style.css"];
953
962
  let inputFile = "";
954
963
  for (const c of candidates) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weifuwu",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "Web-standard HTTP framework for Node.js — (req, ctx) => Response",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",