|
| 1 | +diff --git a/dist/index.d.cts b/dist/index.d.cts |
| 2 | +new file mode 100644 |
| 3 | +index 0000000000000000000000000000000000000000..dfda43ac9d13b9797ecf6ba74f37372095adbd47 |
| 4 | +--- /dev/null |
| 5 | ++++ b/dist/index.d.cts |
| 6 | +@@ -0,0 +1,2 @@ |
| 7 | ++export * from "/Users/antfu/i/unocss/packages-integrations/inspector/src/index.js"; |
| 8 | ++export { default } from "/Users/antfu/i/unocss/packages-integrations/inspector/src/index.js"; |
| 9 | +\ No newline at end of file |
| 10 | +diff --git a/dist/index.mjs b/dist/index.mjs |
| 11 | +index 0fb5d8feb0c3924850e0d1b01489aaf7099ec1e9..7dd9d9e00daf2ffc0e415f100d734fccfd28b622 100644 |
| 12 | +--- a/dist/index.mjs |
| 13 | ++++ b/dist/index.mjs |
| 14 | +@@ -820,9 +820,9 @@ async function analyzer(modules, ctx) { |
| 15 | + |
| 16 | + const _dirname = typeof __dirname !== "undefined" ? __dirname : dirname(fileURLToPath(import.meta.url)); |
| 17 | + function UnocssInspector(ctx) { |
| 18 | ++ const baseUrl = "__unocss"; |
| 19 | + async function configureServer(server) { |
| 20 | + await ctx.ready; |
| 21 | +- const baseUrl = "__unocss"; |
| 22 | + server.middlewares.use(`/${baseUrl}`, sirv(resolve(_dirname, "../dist/client"), { |
| 23 | + single: true, |
| 24 | + dev: true |
| 25 | +@@ -915,7 +915,18 @@ function UnocssInspector(ctx) { |
| 26 | + return { |
| 27 | + name: "unocss:inspector", |
| 28 | + apply: "serve", |
| 29 | +- configureServer |
| 30 | ++ configureServer, |
| 31 | ++ devtools: { |
| 32 | ++ setup(ctx2) { |
| 33 | ++ ctx2.docks.register({ |
| 34 | ++ id: "unocss", |
| 35 | ++ title: "UnoCSS", |
| 36 | ++ icon: "https://unocss.dev/logo.svg", |
| 37 | ++ type: "iframe", |
| 38 | ++ url: `/${baseUrl}` |
| 39 | ++ }); |
| 40 | ++ } |
| 41 | ++ } |
| 42 | + }; |
| 43 | + } |
| 44 | + function getCircularReplacer() { |
| 45 | +diff --git a/package.json b/package.json |
| 46 | +index 7fcf740ef248ff716df3588302aa49e68839d9e3..28a9a284073fc89a17e5597813483424b4a2d8d0 100644 |
| 47 | +--- a/package.json |
| 48 | ++++ b/package.json |
| 49 | +@@ -48,5 +48,8 @@ |
| 50 | + "dev": "nr stub && vite", |
| 51 | + "update-post": "vite build", |
| 52 | + "test:attw": "attw --pack --config-path ../../.attw-esm-only.json" |
| 53 | ++ }, |
| 54 | ++ "devDependencies": { |
| 55 | ++ "@vitejs/devtools-kit": "^0.0.0-alpha.10" |
| 56 | + } |
| 57 | + } |
0 commit comments