@pikacss/unplugin-pikacss 0.0.49 → 0.0.50

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.d.mts CHANGED
@@ -15,6 +15,9 @@ export * from "@pikacss/integration";
15
15
  * This is the core entry-point called by `createUnplugin`. It resolves user options,
16
16
  * creates an integration context via `createCtx`, and wires bundler-specific lifecycle
17
17
  * hooks (config resolution, dev-server HMR, build transforms, and config file watching).
18
+ * When consumed through the Vite entry, the plugin also declares `enforce: 'pre'`
19
+ * so PikaCSS transforms run before framework compiler plugins even if the user's
20
+ * Vite `plugins` array lists `vue()` before `pikacss()`.
18
21
  *
19
22
  * @example
20
23
  * ```ts
package/dist/index.mjs CHANGED
@@ -19,6 +19,9 @@ const PLUGIN_NAME = "unplugin-pikacss";
19
19
  * This is the core entry-point called by `createUnplugin`. It resolves user options,
20
20
  * creates an integration context via `createCtx`, and wires bundler-specific lifecycle
21
21
  * hooks (config resolution, dev-server HMR, build transforms, and config file watching).
22
+ * When consumed through the Vite entry, the plugin also declares `enforce: 'pre'`
23
+ * so PikaCSS transforms run before framework compiler plugins even if the user's
24
+ * Vite `plugins` array lists `vue()` before `pikacss()`.
22
25
  *
23
26
  * @example
24
27
  * ```ts
@@ -121,6 +124,7 @@ const unpluginFactory = (options, meta) => {
121
124
  const debouncedSetup = debounce(setup);
122
125
  return {
123
126
  name: PLUGIN_NAME,
127
+ enforce: "pre",
124
128
  vite: {
125
129
  configResolved: (config) => {
126
130
  applyRuntimeContext(config.root, config.command === "serve" ? "serve" : "build");
package/dist/vite.d.mts CHANGED
@@ -9,6 +9,8 @@ export * from "@pikacss/integration";
9
9
  * Wraps the shared PikaCSS unplugin factory into a Vite-compatible plugin.
10
10
  * Accepts optional {@link PluginOptions} to configure scanning, code
11
11
  * generation, and engine settings. Returns a standard Vite `Plugin`.
12
+ * The plugin declares `enforce: 'pre'`, so PikaCSS template transforms run
13
+ * before framework compiler plugins regardless of the user's `plugins` order.
12
14
  *
13
15
  * @example
14
16
  * ```ts
package/dist/vite.mjs CHANGED
@@ -8,6 +8,8 @@ export * from "@pikacss/integration";
8
8
  * Wraps the shared PikaCSS unplugin factory into a Vite-compatible plugin.
9
9
  * Accepts optional {@link PluginOptions} to configure scanning, code
10
10
  * generation, and engine settings. Returns a standard Vite `Plugin`.
11
+ * The plugin declares `enforce: 'pre'`, so PikaCSS template transforms run
12
+ * before framework compiler plugins regardless of the user's `plugins` order.
11
13
  *
12
14
  * @example
13
15
  * ```ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pikacss/unplugin-pikacss",
3
3
  "type": "module",
4
- "version": "0.0.49",
4
+ "version": "0.0.50",
5
5
  "author": "DevilTea <ch19980814@gmail.com>",
6
6
  "license": "MIT",
7
7
  "homepage": "https://pikacss.com",
@@ -94,7 +94,7 @@
94
94
  "pathe": "^2.0.3",
95
95
  "perfect-debounce": "^2.1.0",
96
96
  "unplugin": "^3.0.0",
97
- "@pikacss/integration": "0.0.49"
97
+ "@pikacss/integration": "0.0.50"
98
98
  },
99
99
  "devDependencies": {
100
100
  "esbuild": "^0.27.4",