vite-plugin-qingkuai 1.0.14 → 1.0.16

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/index.cjs CHANGED
@@ -237,8 +237,7 @@ function qingkuai() {
237
237
  ...getCompileOptions(id),
238
238
  sourcemap,
239
239
  debug: isDev,
240
- hashId: compileResultCache.get(id)?.hashId,
241
- componentName: compiler.util.kebab2Camel(nodePath.basename(id, nodePath.extname(id)), true)
240
+ hashId: compileResultCache.get(id)?.hashId
242
241
  });
243
242
  compileRes.messages.forEach(({ type, value: warning }) => {
244
243
  if (type === "warning") {
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { PluginOption } from 'vite';
1
+ import { Plugin } from 'vite';
2
2
 
3
- declare function qingkuai(): PluginOption;
3
+ declare function qingkuai(): Plugin;
4
4
 
5
5
  export { qingkuai as default };
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import nodePath from 'node:path';
2
2
  import nodeCrypto from 'node:crypto';
3
- import { compile, util } from 'qingkuai/compiler';
3
+ import { compile } from 'qingkuai/compiler';
4
4
  import nodeFs, { existsSync, readFileSync } from 'node:fs';
5
5
  import { LinesAndColumns } from 'lines-and-columns';
6
6
  import { decode, encode } from '@jridgewell/sourcemap-codec';
@@ -235,8 +235,7 @@ function qingkuai() {
235
235
  ...getCompileOptions(id),
236
236
  sourcemap,
237
237
  debug: isDev,
238
- hashId: compileResultCache.get(id)?.hashId,
239
- componentName: util.kebab2Camel(nodePath.basename(id, nodePath.extname(id)), true)
238
+ hashId: compileResultCache.get(id)?.hashId
240
239
  });
241
240
  compileRes.messages.forEach(({ type, value: warning }) => {
242
241
  if (type === "warning") {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "vite-plugin-qingkuai",
3
3
  "author": "mlgq",
4
4
  "license": "MIT",
5
- "version": "1.0.14",
5
+ "version": "1.0.16",
6
6
  "type": "module",
7
7
  "keywords": [
8
8
  "vite",
@@ -30,7 +30,7 @@
30
30
  "rollup": "^4.38.0",
31
31
  "rollup-plugin-dts": "^6.2.1",
32
32
  "rollup-plugin-esbuild": "^6.2.1",
33
- "vite": "^6.2.4"
33
+ "vite": "6.2.4"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "qingkuai": ">=1.0.50",