@plumeria/unplugin 19.2.16 → 19.4.0
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/core.js +2 -2
- package/dist/core.mjs +3 -3
- package/package.json +2 -2
package/dist/core.js
CHANGED
|
@@ -103,11 +103,11 @@ const unpluginFactory = (options = {}, unpluginMeta) => {
|
|
|
103
103
|
async handler(source, id) {
|
|
104
104
|
if (id.includes('node_modules'))
|
|
105
105
|
return null;
|
|
106
|
-
if (!source.includes('@plumeria/core'))
|
|
107
|
-
return null;
|
|
108
106
|
const [baseId] = id.split('?');
|
|
109
107
|
if (!filter(baseId))
|
|
110
108
|
return null;
|
|
109
|
+
if (!(0, utils_1.needsCompile)(source, styleProp, baseId))
|
|
110
|
+
return null;
|
|
111
111
|
const dependencies = [];
|
|
112
112
|
const addDependency = (depPath) => {
|
|
113
113
|
dependencies.push(depPath);
|
package/dist/core.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createFilter } from '@rollup/pluginutils';
|
|
2
2
|
import * as path from 'path';
|
|
3
|
-
import { resolvePropertyPolicy, optimizer, transformSource, DEFAULT_STYLE_PROP, } from '@plumeria/utils';
|
|
3
|
+
import { resolvePropertyPolicy, optimizer, transformSource, DEFAULT_STYLE_PROP, needsCompile, } from '@plumeria/utils';
|
|
4
4
|
export const EXTENSION_PATTERN = /\.(ts|tsx|js|jsx)$/;
|
|
5
5
|
export const unpluginFactory = (options = {}, unpluginMeta) => {
|
|
6
6
|
const filter = createFilter(options.include, options.exclude);
|
|
@@ -67,11 +67,11 @@ export const unpluginFactory = (options = {}, unpluginMeta) => {
|
|
|
67
67
|
async handler(source, id) {
|
|
68
68
|
if (id.includes('node_modules'))
|
|
69
69
|
return null;
|
|
70
|
-
if (!source.includes('@plumeria/core'))
|
|
71
|
-
return null;
|
|
72
70
|
const [baseId] = id.split('?');
|
|
73
71
|
if (!filter(baseId))
|
|
74
72
|
return null;
|
|
73
|
+
if (!needsCompile(source, styleProp, baseId))
|
|
74
|
+
return null;
|
|
75
75
|
const dependencies = [];
|
|
76
76
|
const addDependency = (depPath) => {
|
|
77
77
|
dependencies.push(depPath);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plumeria/unplugin",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.4.0",
|
|
4
4
|
"description": "Universal Plumeria plugin for various build tools",
|
|
5
5
|
"author": "Refirst 11",
|
|
6
6
|
"license": "MIT",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"dependencies": {
|
|
95
95
|
"@rollup/pluginutils": "^5.4.0",
|
|
96
96
|
"unplugin": "^3.0.0",
|
|
97
|
-
"@plumeria/utils": "19.
|
|
97
|
+
"@plumeria/utils": "19.4.0"
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
100
100
|
"vite": "^8.0.13"
|