pixel-mirror 1.0.1 → 1.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixel-mirror",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Pixel Mirror helps developers achieve pixel-perfect UIs by easily overlaying design mockups.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -20,6 +20,8 @@
20
20
  "bugs": {
21
21
  "url": "https://github.com/p233-studio/pixel-mirror/issues"
22
22
  },
23
+ "license": "Apache-2.0",
24
+ "author": "Peiwen Lu",
23
25
  "devDependencies": {
24
26
  "clsx": "^2.1.1",
25
27
  "cssnano": "^7.0.6",
@@ -40,7 +42,6 @@
40
42
  "typescript": "^5.7.2",
41
43
  "typescript-eslint": "^8.18.2",
42
44
  "vite": "^6.0.5",
43
- "vite-plugin-css-injected-by-js": "^3.5.2",
44
45
  "vite-plugin-solid": "^2.11.0",
45
46
  "vite-plugin-solid-svg": "^0.8.1"
46
47
  },
package/plugins/vite.js CHANGED
@@ -3,10 +3,7 @@ export default function pixelMirrorPlugin() {
3
3
  name: "vite-plugin-pixel-mirror",
4
4
  transformIndexHtml(html) {
5
5
  if (process.env.NODE_ENV !== "production") {
6
- return html.replace(
7
- "</body>",
8
- `<script type="module" src="/node_modules/@p233-studio/pixel-mirror/dist/index.js"></script></body>`
9
- );
6
+ return html.replace("</body>", `<script defer src="/node_modules/pixel-mirror/dist/index.js"></script></body>`);
10
7
  }
11
8
  return html;
12
9
  }