@visulima/rollup-plugin-css 1.0.0-alpha.2 → 1.0.0-alpha.21
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/CHANGELOG.md +202 -0
- package/LICENSE.md +83 -79
- package/README.md +164 -146
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1 -0
- package/dist/loaders/less/index.d.ts +16 -9
- package/dist/loaders/less/index.js +1 -0
- package/dist/loaders/lightningcss.d.ts +2 -3
- package/dist/loaders/lightningcss.js +3 -0
- package/dist/loaders/postcss/index.d.ts +2 -3
- package/dist/loaders/postcss/index.js +6 -0
- package/dist/loaders/sass/index.d.ts +17 -9
- package/dist/loaders/sass/{index.mjs → index.js} +5 -5
- package/dist/loaders/sourcemap.d.ts +2 -3
- package/dist/loaders/sourcemap.js +1 -0
- package/dist/loaders/stylus/index.d.ts +16 -9
- package/dist/loaders/stylus/index.js +1 -0
- package/dist/loaders/tailwindcss-oxide.d.ts +2 -3
- package/dist/loaders/tailwindcss-oxide.js +1 -0
- package/dist/minifiers/cssnano.d.ts +2 -3
- package/dist/minifiers/lightningcss.d.ts +2 -3
- package/dist/packem_shared/concat-WcWAYbOc.js +3 -0
- package/dist/packem_shared/{cssModulesTypesPlugin-B9_bJo_B.mjs → cssModulesTypesPlugin-CjGroK2y.js} +1 -1
- package/dist/packem_shared/{generate-js-exports-Dqps7nWG.mjs → generate-js-exports-BhS4eLrN.js} +1 -1
- package/dist/packem_shared/getMap-TR-0DXUr.js +1 -0
- package/dist/packem_shared/inferModeOption-9h3Eq6JH.js +1 -0
- package/dist/packem_shared/loadModule-D20jQQNu.js +1 -0
- package/dist/packem_shared/resolve-anj9ucIq.js +1 -0
- package/dist/packem_shared/rollupCssPlugin-BdsDsdTA.js +3 -0
- package/dist/packem_shared/{sourcemap-DGfgaUBb.mjs → sourcemap-CB6ochh0.js} +1 -1
- package/dist/packem_shared/{types-CA9pSumu.d.mts → types-BeCJXZiE.d.ts} +1 -2
- package/dist/utils/index.d.ts +1 -2
- package/dist/utils/index.js +1 -0
- package/package.json +56 -41
- package/dist/index.d.mts +0 -20
- package/dist/index.mjs +0 -1
- package/dist/loaders/less/index.d.mts +0 -17
- package/dist/loaders/less/index.mjs +0 -1
- package/dist/loaders/lightningcss.d.mts +0 -17
- package/dist/loaders/lightningcss.mjs +0 -3
- package/dist/loaders/postcss/index.d.mts +0 -17
- package/dist/loaders/postcss/index.mjs +0 -6
- package/dist/loaders/sass/index.d.mts +0 -18
- package/dist/loaders/sourcemap.d.mts +0 -17
- package/dist/loaders/sourcemap.mjs +0 -1
- package/dist/loaders/stylus/index.d.mts +0 -17
- package/dist/loaders/stylus/index.mjs +0 -1
- package/dist/loaders/tailwindcss-oxide.d.mts +0 -17
- package/dist/loaders/tailwindcss-oxide.mjs +0 -1
- package/dist/minifiers/cssnano.d.mts +0 -17
- package/dist/minifiers/lightningcss.d.mts +0 -17
- package/dist/packem_shared/concat-BbvpVPBg.mjs +0 -3
- package/dist/packem_shared/getMap-BL5hKEnR.mjs +0 -1
- package/dist/packem_shared/inferModeOption-BWjmFhVF.mjs +0 -1
- package/dist/packem_shared/loadModule-CovDETwT.mjs +0 -1
- package/dist/packem_shared/resolve-nqhcPNJ9.mjs +0 -1
- package/dist/packem_shared/rollupCssPlugin-BTt64HIx.mjs +0 -3
- package/dist/packem_shared/types-CA9pSumu.d.ts +0 -189
- package/dist/utils/index.d.mts +0 -73
- package/dist/utils/index.mjs +0 -1
- /package/dist/minifiers/{cssnano.mjs → cssnano.js} +0 -0
- /package/dist/minifiers/{lightningcss.mjs → lightningcss.js} +0 -0
- /package/dist/packem_shared/{arrayFmt-Dek5cB7m.mjs → arrayFmt-Dek5cB7m.js} +0 -0
- /package/dist/packem_shared/{ensure-auto-modules-BU3xWEjl.mjs → ensure-auto-modules-BU3xWEjl.js} +0 -0
- /package/dist/packem_shared/{hasModuleSpecifier-DIZeev_W.mjs → hasModuleSpecifier-DIZeev_W.js} +0 -0
- /package/dist/packem_shared/{safeId-BN5akJYJ.mjs → safeId-BN5akJYJ.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/rollup-plugin-css",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.21",
|
|
4
4
|
"description": "CSS processing plugin for packem",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"visulima",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
26
26
|
"url": "git+https://github.com/visulima/packem.git",
|
|
27
|
-
"directory": "packages/
|
|
27
|
+
"directory": "packages/rollup-plugin-css"
|
|
28
28
|
},
|
|
29
29
|
"funding": [
|
|
30
30
|
{
|
|
@@ -45,48 +45,48 @@
|
|
|
45
45
|
"type": "module",
|
|
46
46
|
"exports": {
|
|
47
47
|
".": {
|
|
48
|
-
"types": "./dist/index.d.
|
|
49
|
-
"default": "./dist/index.
|
|
48
|
+
"types": "./dist/index.d.ts",
|
|
49
|
+
"default": "./dist/index.js"
|
|
50
50
|
},
|
|
51
51
|
"./loader/sourcemap": {
|
|
52
|
-
"types": "./dist/loaders/sourcemap.d.
|
|
53
|
-
"default": "./dist/loaders/sourcemap.
|
|
52
|
+
"types": "./dist/loaders/sourcemap.d.ts",
|
|
53
|
+
"default": "./dist/loaders/sourcemap.js"
|
|
54
54
|
},
|
|
55
55
|
"./loader/less": {
|
|
56
|
-
"types": "./dist/loaders/less/index.d.
|
|
57
|
-
"default": "./dist/loaders/less/index.
|
|
56
|
+
"types": "./dist/loaders/less/index.d.ts",
|
|
57
|
+
"default": "./dist/loaders/less/index.js"
|
|
58
58
|
},
|
|
59
59
|
"./loader/postcss": {
|
|
60
|
-
"types": "./dist/loaders/postcss/index.d.
|
|
61
|
-
"default": "./dist/loaders/postcss/index.
|
|
60
|
+
"types": "./dist/loaders/postcss/index.d.ts",
|
|
61
|
+
"default": "./dist/loaders/postcss/index.js"
|
|
62
62
|
},
|
|
63
63
|
"./loader/sass": {
|
|
64
|
-
"types": "./dist/loaders/sass/index.d.
|
|
65
|
-
"default": "./dist/loaders/sass/index.
|
|
64
|
+
"types": "./dist/loaders/sass/index.d.ts",
|
|
65
|
+
"default": "./dist/loaders/sass/index.js"
|
|
66
66
|
},
|
|
67
67
|
"./loader/stylus": {
|
|
68
|
-
"types": "./dist/loaders/stylus/index.d.
|
|
69
|
-
"default": "./dist/loaders/stylus/index.
|
|
68
|
+
"types": "./dist/loaders/stylus/index.d.ts",
|
|
69
|
+
"default": "./dist/loaders/stylus/index.js"
|
|
70
70
|
},
|
|
71
71
|
"./loader/lightningcss": {
|
|
72
|
-
"types": "./dist/loaders/lightningcss.d.
|
|
73
|
-
"default": "./dist/loaders/lightningcss.
|
|
72
|
+
"types": "./dist/loaders/lightningcss.d.ts",
|
|
73
|
+
"default": "./dist/loaders/lightningcss.js"
|
|
74
74
|
},
|
|
75
75
|
"./loader/tailwindcss": {
|
|
76
|
-
"types": "./dist/loaders/tailwindcss-oxide.d.
|
|
77
|
-
"default": "./dist/loaders/tailwindcss-oxide.
|
|
76
|
+
"types": "./dist/loaders/tailwindcss-oxide.d.ts",
|
|
77
|
+
"default": "./dist/loaders/tailwindcss-oxide.js"
|
|
78
78
|
},
|
|
79
79
|
"./minifier/cssnano": {
|
|
80
|
-
"types": "./dist/minifiers/cssnano.d.
|
|
81
|
-
"default": "./dist/minifiers/cssnano.
|
|
80
|
+
"types": "./dist/minifiers/cssnano.d.ts",
|
|
81
|
+
"default": "./dist/minifiers/cssnano.js"
|
|
82
82
|
},
|
|
83
83
|
"./minifier/lightningcss": {
|
|
84
|
-
"types": "./dist/minifiers/lightningcss.d.
|
|
85
|
-
"default": "./dist/minifiers/lightningcss.
|
|
84
|
+
"types": "./dist/minifiers/lightningcss.d.ts",
|
|
85
|
+
"default": "./dist/minifiers/lightningcss.js"
|
|
86
86
|
},
|
|
87
87
|
"./utils": {
|
|
88
|
-
"types": "./dist/utils/index.d.
|
|
89
|
-
"default": "./dist/utils/index.
|
|
88
|
+
"types": "./dist/utils/index.d.ts",
|
|
89
|
+
"default": "./dist/utils/index.js"
|
|
90
90
|
},
|
|
91
91
|
"./package.json": "./package.json"
|
|
92
92
|
},
|
|
@@ -96,14 +96,14 @@
|
|
|
96
96
|
"dist"
|
|
97
97
|
],
|
|
98
98
|
"dependencies": {
|
|
99
|
-
"@rollup/pluginutils": "
|
|
100
|
-
"@visulima/fs": "
|
|
101
|
-
"@visulima/package": "
|
|
102
|
-
"@visulima/packem-share": "1.0.0-alpha.
|
|
103
|
-
"@visulima/path": "
|
|
104
|
-
"mlly": "
|
|
105
|
-
"oxc-resolver": "
|
|
106
|
-
"p-queue": "
|
|
99
|
+
"@rollup/pluginutils": "5.3.0",
|
|
100
|
+
"@visulima/fs": "4.1.0",
|
|
101
|
+
"@visulima/package": "4.1.7",
|
|
102
|
+
"@visulima/packem-share": "1.0.0-alpha.22",
|
|
103
|
+
"@visulima/path": "2.0.5",
|
|
104
|
+
"mlly": "1.8.1",
|
|
105
|
+
"oxc-resolver": "11.19.1",
|
|
106
|
+
"p-queue": "9.1.0",
|
|
107
107
|
"source-map-js": "^1.2.1"
|
|
108
108
|
},
|
|
109
109
|
"peerDependencies": {
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"@csstools/postcss-slow-plugins": ">=2.0.0",
|
|
113
113
|
"@tailwindcss/node": ">=4.1.12",
|
|
114
114
|
"@tailwindcss/oxide": ">=4.1.12",
|
|
115
|
-
"@visulima/css-style-inject": "1.0.0-alpha.
|
|
115
|
+
"@visulima/css-style-inject": "1.0.0-alpha.15",
|
|
116
116
|
"cssnano": ">=7.0.0",
|
|
117
117
|
"icss-utils": ">=5.1.0",
|
|
118
118
|
"less": ">=4.0.0",
|
|
@@ -130,13 +130,10 @@
|
|
|
130
130
|
"stylus": ">=0.60.0"
|
|
131
131
|
},
|
|
132
132
|
"peerDependenciesMeta": {
|
|
133
|
-
"@
|
|
133
|
+
"@ckeditor/typedoc-plugins": {
|
|
134
134
|
"optional": true
|
|
135
135
|
},
|
|
136
|
-
"@
|
|
137
|
-
"optional": true
|
|
138
|
-
},
|
|
139
|
-
"@csstools/postcss-slow-plugins": {
|
|
136
|
+
"@swc/core": {
|
|
140
137
|
"optional": true
|
|
141
138
|
},
|
|
142
139
|
"@tailwindcss/node": {
|
|
@@ -145,10 +142,10 @@
|
|
|
145
142
|
"@tailwindcss/oxide": {
|
|
146
143
|
"optional": true
|
|
147
144
|
},
|
|
148
|
-
"
|
|
145
|
+
"cssnano": {
|
|
149
146
|
"optional": true
|
|
150
147
|
},
|
|
151
|
-
"
|
|
148
|
+
"esbuild": {
|
|
152
149
|
"optional": true
|
|
153
150
|
},
|
|
154
151
|
"icss-utils": {
|
|
@@ -160,6 +157,9 @@
|
|
|
160
157
|
"lightningcss": {
|
|
161
158
|
"optional": true
|
|
162
159
|
},
|
|
160
|
+
"oxc-transform": {
|
|
161
|
+
"optional": true
|
|
162
|
+
},
|
|
163
163
|
"postcss": {
|
|
164
164
|
"optional": true
|
|
165
165
|
},
|
|
@@ -189,10 +189,25 @@
|
|
|
189
189
|
},
|
|
190
190
|
"stylus": {
|
|
191
191
|
"optional": true
|
|
192
|
+
},
|
|
193
|
+
"sucrase": {
|
|
194
|
+
"optional": true
|
|
195
|
+
},
|
|
196
|
+
"typedoc": {
|
|
197
|
+
"optional": true
|
|
198
|
+
},
|
|
199
|
+
"typedoc-plugin-markdown": {
|
|
200
|
+
"optional": true
|
|
201
|
+
},
|
|
202
|
+
"typedoc-plugin-rename-defaults": {
|
|
203
|
+
"optional": true
|
|
204
|
+
},
|
|
205
|
+
"typescript": {
|
|
206
|
+
"optional": true
|
|
192
207
|
}
|
|
193
208
|
},
|
|
194
209
|
"engines": {
|
|
195
|
-
"node": ">=20
|
|
210
|
+
"node": ">=20.19 <=25.*"
|
|
196
211
|
},
|
|
197
212
|
"publishConfig": {
|
|
198
213
|
"access": "public",
|
package/dist/index.d.mts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Plugin } from 'rollup';
|
|
2
|
-
import { S as StyleOptions } from './packem_shared/types-CA9pSumu.mjs';
|
|
3
|
-
export { A as AutoModules, E as ExtractedData, I as InjectOptions, a as InternalStyleOptions, L as LightningCSSOptions, P as PostCSSConfigLoaderOptions, b as PostCSSOptions } from './packem_shared/types-CA9pSumu.mjs';
|
|
4
|
-
import { Environment } from '@visulima/packem-share/types';
|
|
5
|
-
import 'cssnano';
|
|
6
|
-
import 'lightningcss';
|
|
7
|
-
import 'postcss';
|
|
8
|
-
import 'postcss-load-config';
|
|
9
|
-
import 'less';
|
|
10
|
-
import 'sass';
|
|
11
|
-
import 'sass-embedded';
|
|
12
|
-
import 'stylus';
|
|
13
|
-
import '@visulima/packem-share/utils';
|
|
14
|
-
import 'source-map-js';
|
|
15
|
-
|
|
16
|
-
declare const cssModulesTypesPlugin: (options: StyleOptions, rootDirectory: string) => Plugin;
|
|
17
|
-
|
|
18
|
-
declare const cssPlugin: (options: StyleOptions, browserTargets: string[], cwd: string, sourceDirectory: string, environment: Environment, useSourcemap: boolean, debug: boolean, minify: boolean, alias: Record<string, string>) => Promise<Plugin>;
|
|
19
|
-
|
|
20
|
-
export { StyleOptions, cssModulesTypesPlugin, cssPlugin as rollupCssPlugin };
|
package/dist/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{default as e}from"./packem_shared/cssModulesTypesPlugin-B9_bJo_B.mjs";import{default as u}from"./packem_shared/rollupCssPlugin-BTt64HIx.mjs";export{e as cssModulesTypesPlugin,u as rollupCssPlugin};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { c as Loader, d as LESSLoaderOptions } from '../../packem_shared/types-CA9pSumu.mjs';
|
|
2
|
-
import 'cssnano';
|
|
3
|
-
import 'lightningcss';
|
|
4
|
-
import 'postcss';
|
|
5
|
-
import 'postcss-load-config';
|
|
6
|
-
import 'less';
|
|
7
|
-
import '@visulima/packem-share/types';
|
|
8
|
-
import 'sass';
|
|
9
|
-
import 'sass-embedded';
|
|
10
|
-
import 'stylus';
|
|
11
|
-
import '@visulima/packem-share/utils';
|
|
12
|
-
import 'rollup';
|
|
13
|
-
import 'source-map-js';
|
|
14
|
-
|
|
15
|
-
declare const loader: Loader<LESSLoaderOptions>;
|
|
16
|
-
|
|
17
|
-
export { LESSLoaderOptions, loader as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var c=Object.defineProperty;var l=(s,e)=>c(s,"name",{value:e,configurable:!0});import{dirname as u,normalize as d}from"@visulima/path";import f from"less";import{readFileSync as h}from"@visulima/fs";import{resolveAlias as g}from"@visulima/path/utils";import{resolve as y}from"../../packem_shared/resolve-nqhcPNJ9.mjs";import{normalizeUrl as F,getUrlOfPartial as v}from"../../packem_shared/hasModuleSpecifier-DIZeev_W.mjs";var b=Object.defineProperty,m=l((s,e)=>b(s,"name",{value:e,configurable:!0}),"i");const M=[".less",".css"],x=m((s,e)=>new class extends s.FileManager{supports(){return!0}async loadFile(r,a,t){const i=F(g(r,e)),o=v(i),n={baseDirs:[],caller:"Less importer",extensions:M};Array.isArray(t.paths)&&n.baseDirs.push(...t.paths),n.baseDirs.push(a);const p=y([o,i],n);return{contents:h(p),filename:p}}},"getStylesFileManager"),A=m(s=>({install(e,r){r.addFileManager(x(e,s))}}),"importer"),U={name:"less",async process({code:s,map:e}){const r=[A(this.alias)];this.options.plugins&&r.push(...this.options.plugins);const a=f.render,t=await a(s,{...this.options,filename:this.id,plugins:r,sourceMap:{outputSourceFiles:!0,sourceMapBasepath:u(this.id)}}),i=t.imports;for(const o of i)this.deps.add(d(o));return{code:t.css,map:t.map??e}},test:/\.less$/i};export{U as default};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { c as Loader, L as LightningCSSOptions } from '../packem_shared/types-CA9pSumu.mjs';
|
|
2
|
-
import 'cssnano';
|
|
3
|
-
import 'lightningcss';
|
|
4
|
-
import 'postcss';
|
|
5
|
-
import 'postcss-load-config';
|
|
6
|
-
import 'less';
|
|
7
|
-
import '@visulima/packem-share/types';
|
|
8
|
-
import 'sass';
|
|
9
|
-
import 'sass-embedded';
|
|
10
|
-
import 'stylus';
|
|
11
|
-
import '@visulima/packem-share/utils';
|
|
12
|
-
import 'rollup';
|
|
13
|
-
import 'source-map-js';
|
|
14
|
-
|
|
15
|
-
declare const lightningCSSLoader: Loader<LightningCSSOptions>;
|
|
16
|
-
|
|
17
|
-
export { lightningCSSLoader as default };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{transform as r,browserslistToTargets as a}from"lightningcss";import{n as o}from"../packem_shared/ensure-auto-modules-BU3xWEjl.mjs";const l={name:"lightningCSS",async process({code:t,map:i}){let s=!1;typeof this.options.modules=="boolean"?s=this.options.modules:typeof this.options.modules=="object"&&(s=o(this.options.modules.include,this.id)),this.autoModules&&this.options.modules===void 0&&(s=o(this.autoModules,this.id));const e=r({...this.options,code:Buffer.from(t),cssModules:this.options.modules??s,filename:this.id,inputSourceMap:i,minify:!1,sourceMap:!this.sourceMap,targets:a(this.browserTargets)});return e.warnings.length>0&&this.logger.warn({message:`warnings when transforming css:
|
|
2
|
-
${e.warnings.map(n=>n.message).join(`
|
|
3
|
-
`)}`}),{code:e.code.toString(),map:e.map?JSON.parse(Buffer.from(e.map).toString()):void 0,moduleSideEffects:s||typeof this.inject=="object"&&this.inject.treeshakeable?!1:"no-treeshake"}},test:/\.css$/i};export{l as default};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { c as Loader, a as InternalStyleOptions } from '../../packem_shared/types-CA9pSumu.mjs';
|
|
2
|
-
import 'cssnano';
|
|
3
|
-
import 'lightningcss';
|
|
4
|
-
import 'postcss';
|
|
5
|
-
import 'postcss-load-config';
|
|
6
|
-
import 'less';
|
|
7
|
-
import '@visulima/packem-share/types';
|
|
8
|
-
import 'sass';
|
|
9
|
-
import 'sass-embedded';
|
|
10
|
-
import 'stylus';
|
|
11
|
-
import '@visulima/packem-share/utils';
|
|
12
|
-
import 'rollup';
|
|
13
|
-
import 'source-map-js';
|
|
14
|
-
|
|
15
|
-
declare const loader: Loader<NonNullable<InternalStyleOptions["postcss"]>>;
|
|
16
|
-
|
|
17
|
-
export { loader as default };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
var ke=Object.defineProperty;var d=(t,e)=>ke(t,"name",{value:e,configurable:!0});import Se from"@csstools/postcss-slow-plugins";import{dirname as b,normalize as O,parse as J,resolve as Pe,basename as N,isAbsolute as Oe,join as Ee}from"@visulima/path";import Re from"postcss";import{g as Ie}from"../../packem_shared/generate-js-exports-Dqps7nWG.mjs";import{H as U,m as C,D as Ce,F as te}from"../../packem_shared/sourcemap-DGfgaUBb.mjs";import{n as ie}from"../../packem_shared/ensure-auto-modules-BU3xWEjl.mjs";import{extractICSS as Ne,replaceSymbols as Ue,replaceValueSymbols as Le}from"icss-utils";import{readFile as ze,readFileSync as le}from"@visulima/fs";import{resolve as Q}from"../../packem_shared/resolve-nqhcPNJ9.mjs";import{isRelative as De}from"@visulima/path/utils";import{isWhiteSpaceOrCommentNode as G,isSimpleBlockNode as _e,SimpleBlockNode as We,parseListOfComponentValues as Me,isTokenNode as W,isFunctionNode as I,stringify as S}from"@csstools/css-parser-algorithms";import{isTokenOpenParen as qe,TokenType as ae,tokenize as Te,isTokenString as M,isTokenURL as se,isTokenIdent as Fe}from"@csstools/css-tokenizer";import{findMonorepoRoot as Ae,findPackageRoot as Ge}from"@visulima/package";import Xe from"postcss-load-config";import{ensurePCSSPlugins as Be,ensurePCSSOption as q}from"../../packem_shared/inferModeOption-BWjmFhVF.mjs";import He from"postcss-modules-extract-imports";import Ve from"postcss-modules-local-by-default";import Je from"postcss-modules-scope";import Qe from"postcss-modules-values";import{makeLegalIdentifier as Ye}from"@rollup/pluginutils";import{getHash as ce}from"@visulima/packem-share/utils";import X from"postcss-value-parser";var Ke=Object.defineProperty,Ze=d((t,e)=>Ke(t,"name",{value:e,configurable:!0}),"i$5");const et=Ze(async(t,e,i,a,s)=>{const o=Q([t,`./${t}`],{baseDirs:[b(e)],caller:"ICSS loader",extensions:i}),r=await ze(o),{messages:l}=await a.process(r,{...s,from:o}),c={};for(const n of l)n.type==="icss"&&Object.assign(c,n.export);return c},"load");var tt=Object.defineProperty,it=d((t,e)=>tt(t,"name",{value:e,configurable:!0}),"t$3");const at=it(async(t,e,i,a,s,o)=>{const r={};for await(const[l,c]of Object.entries(t)){const n=await e(l,i,a,s,o);for(const[p,m]of Object.entries(c))r[p]=n[m]}return r},"resolve");var st=Object.defineProperty,ot=d((t,e)=>st(t,"name",{value:e,configurable:!0}),"c$5");const T="styles-icss",nt=[".css",".pcss",".postcss",".sss"],me=ot(t=>{const e=t?.load??et,i=t?.extensions??nt;return{async OnceExit(a,{result:s}){if(!a.source?.input.file)return;const o={...s.opts,map:void 0},{icssExports:r,icssImports:l}=Ne(a),c=await at(l,e,a.source.input.file,i,s.processor,o);Ue(a,c);for(const[n,p]of Object.entries(r))s.messages.push({export:{[n]:Le(p,c)},plugin:T,type:"icss"});for(const n of Object.keys(l))s.messages.push({import:n,plugin:T,type:"icss-dependency"})},postcssPlugin:T}},"plugin");me.postcss=!0;var rt=Object.defineProperty,pt=d((t,e)=>rt(t,"name",{value:e,configurable:!0}),"t$2");const B=pt((t,e,i,a)=>{const s=[];if(t!==void 0){let o="layer";t&&(o=`layer(${t})`),s.push(o)}return i!==void 0&&s.push(`supports(${i})`),a!==void 0&&s.push(`scope(${a})`),e!==void 0&&s.push(e),s.join(" ")},"formatImportPrelude");var lt=Object.defineProperty,ct=d((t,e)=>lt(t,"name",{value:e,configurable:!0}),"p$7");const mt=ct((t,e)=>{e.reverse();const i=e.pop();if(!i)return t;let a=`${t} ${B(i.layer,i.media,i.supports,i.scope)}`;for(const s of e)a=`'data:text/css;base64,${Buffer.from(`@import ${a}`).toString("base64")}' ${B(s.layer,s.media,s.supports,s.scope)}`;return a},"base64EncodedConditionalImport");var ut=Object.defineProperty,z=d((t,e)=>ut(t,"name",{value:e,configurable:!0}),"e$1");const dt=z(t=>t.type==="warning","isWarning"),H=z(t=>t.type==="nodes","isNodesStatement"),L=z(t=>t.type==="import","isImportStatement"),ft=z(t=>t.type==="pre-import","isPreImportStatement");var gt=Object.defineProperty,ht=d((t,e)=>gt(t,"name",{value:e,configurable:!0}),"u$2");const xt=ht((t,e)=>{t.statements.forEach((i,a)=>{if(dt(i)||ft(i)||i.conditions.length===0)return;if(L(i)){i.node.params=mt(i.fullUri,i.conditions);return}const{nodes:s}=i;if(s.length===0)return;const{parent:o}=s[0];if(!o)return;const r=[];for(const n of i.conditions){if(n.media!==void 0){const p=e({name:"media",params:n.media,source:i.importingNode?.source??o.source});r.push(p)}if(n.scope!==void 0){const p=e({name:"scope",params:n.scope,source:i.importingNode?.source??o.source});r.push(p)}if(n.supports!==void 0){const p=e({name:"supports",params:`(${n.supports})`,source:i.importingNode?.source??o.source});r.push(p)}if(n.layer!==void 0){const p=e({name:"layer",params:n.layer,source:i.importingNode?.source??o.source});r.push(p)}}const l=r[0];if(!l)return;for(let n=0;n<r.length-1;n++)r[n].append(r[n+1]);const c=r.at(-1);o.insertBefore(s[0],l),s.forEach(n=>{n.parent=void 0}),c.append(s),t.statements[a]={conditions:i.conditions,from:i.from,importingNode:i.importingNode,nodes:[l],type:"nodes"}})},"applyConditions");var vt=Object.defineProperty,yt=d((t,e)=>vt(t,"name",{value:e,configurable:!0}),"r$4");const bt=yt(t=>{t.statements.forEach((e,i)=>{if(i!==0)if(e.parent!==void 0){const{before:a}=e.parent.node.raws;H(e)?e.nodes[0].raws.before=a:e.node.raws.before=a}else H(e)&&(e.nodes[0].raws.before=e.nodes[0].raws.before??`
|
|
2
|
-
`)})},"applyRaws");var wt=Object.defineProperty,$t=d((t,e)=>wt(t,"name",{value:e,configurable:!0}),"t$1");const jt=$t((t,e)=>{e.nodes=[],t.charset&&(t.charset.parent=void 0,e.append(t.charset)),t.statements.forEach(i=>{L(i)?(i.node.parent=void 0,e.append(i.node)):H(i)&&i.nodes.forEach(a=>{a.parent=void 0,e.append(a)})})},"applyStyles");var kt=Object.defineProperty,St=d((t,e)=>kt(t,"name",{value:e,configurable:!0}),"o$3");const Pt=St((t,e,i)=>{const a={baseDirs:[e],caller:"@import resolver",extensions:i},s=new URL(t,"file://").pathname,o=[s];return(De(s)||s.startsWith("/"))&&o.push(`.${s}`),s.startsWith("/")&&o.push(s.slice(1)),Q(o,a)},"importResolve");var Ot=Object.defineProperty,ue=d((t,e)=>Ot(t,"name",{value:e,configurable:!0}),"e");const Et=/^data:text\/css(?:;(?:base64|plain))?,/i,Rt=/^data:text\/css;base64,/i,It=/^data:text\/css;plain,/i,V=ue(t=>t!==void 0&&Et.test(t),"isValidDataURL"),Ct=ue(t=>Rt.test(t)?Buffer.from(t.slice(21),"base64").toString():It.test(t)?decodeURIComponent(t.slice(20)):decodeURIComponent(t.slice(14)),"dataURLContents");var Nt=Object.defineProperty,oe=d((t,e)=>Nt(t,"name",{value:e,configurable:!0}),"o$1");const Y=oe(()=>({postcssPlugin:"css-noop",prepare:oe(()=>({}),"prepare")}),"postcssNoop");Y.postcss=!0;var Ut=Object.defineProperty,de=d((t,e)=>Ut(t,"name",{value:e,configurable:!0}),"a$3");const fe=de(async(t,e,i,a,s,o)=>(o===void 0&&(o=0),a.length===0&&a.push(Y()),await t(a).process(e,{from:i,parser:s[o]}).catch(async r=>{if(o++,o===s.length)throw r;return await fe(t,e,i,a,s,o)})),"runPostcss"),Lt=de(async(t,e,i,a,s)=>{const{plugins:o}=a,r=[];return t.opts.syntax?.parse&&r.push(t.opts.syntax.parse),t.opts.parser&&r.push(t.opts.parser),r.push(void 0),await fe(s,e,i,o,r)},"processContent"),zt=/^charset$/i,ge=/^import$/i,Dt=/^url$/i,E=/^layer$/i,_t=/^supports$/i,Wt=/^scope$/i;var Mt=Object.defineProperty,K=d((t,e)=>Mt(t,"name",{value:e,configurable:!0}),"a$2");const qt=K(t=>{for(let e=0;e<t.length;e++){const i=t[e];if(!G(i)&&_e(i)&&qe(i.startToken))return t}return[new We([ae.OpenParen,"(",-1,-1,void 0],[ae.CloseParen,")",-1,-1,void 0],t)]},"wrapInParenthesisIfNeeded"),ne=K(t=>{if(t.startsWith("#"))return"";if(!t.includes("#"))return t;try{const e=new URL(t,"http://example.com");return e.hash?t.slice(0,t.length-e.hash.length):t}catch{return t}},"stripHash"),Tt=K(t=>{const e=Te({css:t});if(e.length===2&&(M(e[0])||se(e[0]))){let n=e[0][4].value;return n=ne(n),n?{fullUri:e[0][1],uri:n}:!1}const i=Me(e);let a="",s="",o,r,l,c;for(let n=0;n<i.length;n++){const p=i[n];if(!G(p)){if(W(p)&&(M(p.value)||se(p.value))){if(a)return!1;a=p.value[4].value,s=p.value[1];continue}if(I(p)&&Dt.test(p.getName())){if(a)return!1;for(let m=0;m<p.value.length;m++){const u=p.value[m];if(!G(u)){if(!a&&W(u)&&M(u.value)){a=u.value[4].value,s=S([[p]]);continue}return!1}}continue}if(!a)return!1;if(W(p)&&Fe(p.value)&&E.test(p.value[4].value)){if(o!==void 0||l!==void 0)return!1;o="";continue}if(I(p)&&E.test(p.getName())){if(o!==void 0||l!==void 0)return!1;o=S([p.value]);continue}if(I(p)&&_t.test(p.getName())){if(l!==void 0)return!1;l=S([p.value]);continue}if(I(p)&&Wt.test(p.getName())){if(c!==void 0)return!1;c=S([qt(p.value)]);continue}r=S([i.slice(n)]);break}}return a=ne(a),a?{fullUri:s,layer:o,media:r,scope:c,supports:l,uri:a}:!1},"parseAtImport");var Ft=Object.defineProperty,k=d((t,e)=>Ft(t,"name",{value:e,configurable:!0}),"l$2");const he=k((t,e,i,a)=>{const s=[];let o=e;const r=t.length;for(o;o<r;o++){const l=t[o];if(s.push(l),t[o+1]?.type!=="comment")break}return[o,{conditions:[],from:a,importingNode:i,nodes:s,type:"nodes"}]},"consumeComments"),At=k((t,e,i,a,s)=>{const o=Tt(e.params);if(!o)return t.warn(`Invalid @import statement in '${e.toString()}'`,{node:e});const r={conditions:[...a],from:s,fullUri:o.fullUri,importingNode:i,node:e,type:"import",uri:o.uri};return(o.layer!==void 0||o.media!==void 0||o.supports!==void 0||o.scope!==void 0)&&r.conditions.push({layer:o.layer,media:o.media,scope:o.scope,supports:o.supports}),r},"parseImport"),Gt=k((t,e,i,a,s,o)=>{const r=[];let l=a;const c=e.length;for(l;l<c;l++){const n=e[l];if(n.type==="comment"){const[p,m]=he(e,l,s,o);r.push(m),l=p;continue}if(n.type==="atrule"&&ge.test(n.name)){r.push(At(t,n,s,i,o));continue}break}return[l-1,r]},"consumeImports"),Xt=k((t,e,i,a,s)=>{const o=[];let r=i;const l=t.length;for(r;r<l;r++){const c=t[r];o.push(c);const n=t[r+1];if(!(n&&n.type==="atrule"&&E.test(n.name)&&!n.nodes))break}return[r,{conditions:[...e],from:s,importingNode:a,nodes:o,type:"nodes"}]},"consumeLayers"),Bt=k((t,e,i,a,s)=>{const o=[];let r=i;const l=t.length;for(r;r<l;r++){const c=t[r];if(c.type==="comment"){const[n,p]=he(t,r,a,s);o.push(p),r=n;continue}if(c.type==="atrule"&&E.test(c.name)&&!c.nodes)if(e.length>0){o.push({conditions:[...e],from:s,importingNode:a,node:c,type:"pre-import"});continue}else{const[n,p]=Xt(t,e,r,a,s);o.push(p),r=n;continue}break}return[r-1,o]},"consumeBeforeImports"),xe=k((t,e,i,a,s)=>{const o={statements:[]};if(e.type==="document")return e.each(m=>{const u=xe(t,m,i,a,s);if(o.charset&&u.charset&&o.charset.params.toLowerCase()!==u.charset.params.toLowerCase())throw u.charset.error(`Incompatible @charset statements:
|
|
3
|
-
${u.charset.params} specified in ${u.charset.source?.input.file}
|
|
4
|
-
${o.charset.params} specified in ${o.charset.source?.input.file}`);!o.charset&&u.charset&&(o.charset=u.charset),o.statements.push(...u.statements)}),o;let r,l=[],c=[],n;for(let m=0;m<e.nodes.length;m++){const u=e.nodes[m];if(m===0&&u.type==="atrule"&&zt.test(u.name)){r=u;continue}if(c.length===0&&(u.type==="comment"||u.type==="atrule"&&E.test(u.name)&&!u.nodes)){[m,l]=Bt(e.nodes,a,m,i,s);continue}if(c.length===0&&u.type==="atrule"&&ge.test(u.name)){[m,c]=Gt(t,e.nodes,a,m,i,s);continue}n={conditions:[...a],from:s,importingNode:i,nodes:e.nodes.slice(m),type:"nodes"};break}const p=[];return l.length>0&&p.push(...l),c.length>0&&p.push(...c),n&&p.push(n),{charset:r,statements:p}},"parseStylesheet");var Ht=Object.defineProperty,D=d((t,e)=>Ht(t,"name",{value:e,configurable:!0}),"h");const Vt=/^(?:[a-z]+:)?\/\//i,Jt=D(t=>{if(Vt.test(t))return!1;try{if(new URL(t,"https://example.com").search)return!1}catch{}return!0},"isProcessableURL"),re=D(async(t,e,i,a,s,o)=>{const{conditions:r,from:l,node:c}=e,n=r.map(f=>B(f.layer,f.media,f.supports,f.scope)).join(":");if(a.skipDuplicates){if(s.importedFiles[i]?.[n])return{statements:[]};s.importedFiles[i]||(s.importedFiles[i]={}),s.importedFiles[i][n]=!0}if(l.includes(i))return{statements:[]};const p=await a.load(i,a);if(p.trim()===""&&a.warnOnEmpty)return t.warn(`${i} is empty`,{node:c}),{statements:[]};if(a.skipDuplicates&&s.hashFiles[p]?.[n])return{statements:[]};const m=await Lt(t,p,i,a,o),u=m.root;return a.debug&&u.append({text:i}),t.messages=[...t.messages,...m.messages],a.skipDuplicates&&(u.some(f=>f.type==="atrule"&&f.name==="import")||(s.hashFiles[p]||(s.hashFiles[p]={}),s.hashFiles[p][n]=!0)),await ve(a,t,u,s,c,r,[...l,i],o)},"loadImportContent"),Qt=D(async(t,e,i,a,s)=>{if(V(i.uri)){i.stylesheet=await re(e,i,i.uri,t,a,s);return}if(V(i.from.at(-1))){i.stylesheet={statements:[]},e.warn(`Unable to import '${i.uri}' from a stylesheet that is embedded in a data url`,{node:i.node});return}const o=i.node;let r;o.source?.input.file&&(r=o.source.input.file);const l=r?b(r):t.root;for(const[n,p]of Object.entries(t.alias))i.uri!==n&&!i.uri.startsWith(`${n}/`)||(i.uri=O(p)+i.uri.slice(n.length));let c;try{c=await t.resolve(i.uri,l,t.extensions,o)}catch{i.node.warn(e,`Unable to resolve "${i.uri}" from "${l}"`);return}e.messages.push({file:c,parent:r,plugin:"packem-postcss-import",type:"dependency"}),i.stylesheet=await re(e,i,c,t,a,s)},"resolveImportId"),ve=D(async(t,e,i,a,s,o,r,l)=>{let{charset:c,statements:n}=xe(e,i,s,o,r);{const p=[];for await(const m of n)!L(m)||!Jt(m.uri)||t.filter&&!t.filter(m.uri)||p.push(Qt(t,e,m,a,l));p.length>0&&await Promise.all(p)}for(let p=0;p<n.length;p++){const m=n[p];if(L(m)&&m.stylesheet){if(c&&m.stylesheet.charset&&c.params.toLowerCase()!==m.stylesheet.charset.params.toLowerCase())throw m.stylesheet.charset.error(`Incompatible @charset statements:
|
|
5
|
-
${m.stylesheet.charset.params} specified in ${m.stylesheet.charset.source?.input.file}
|
|
6
|
-
${c.params} specified in ${c.source?.input.file}`);!c&&m.stylesheet.charset&&(c=m.stylesheet.charset),n.splice(p,1,...m.stylesheet.statements),p-=1}}return{charset:c,statements:n}},"parseStyles");var Yt=Object.defineProperty,Kt=d((t,e)=>Yt(t,"name",{value:e,configurable:!0}),"r$3");const Zt=Kt(t=>V(t)?Ct(t):le(t),"loadContent");var ei=Object.defineProperty,ti=d((t,e)=>ei(t,"name",{value:e,configurable:!0}),"i$1");const ii="css-import",ai=[".css",".pcss",".postcss",".sss"],ye=ti(t=>{const e={alias:t?.alias??{},extensions:t?.extensions??ai,load:Zt,plugins:[],resolve:t?.resolve??Pt,skipDuplicates:!1,...t};return{async Once(i,{atRule:a,postcss:s,result:o}){const r={hashFiles:{},importedFiles:{}};if(i.source?.input.file&&(r.importedFiles[i.source.input.file]={}),!Array.isArray(e.plugins))throw new TypeError("plugins option must be an array");const l=await ve(e,o,i,r,void 0,[],[],s);bt(l),xt(l,a),jt(l,i)},postcssPlugin:ii}},"plugin");ye.postcss=!0;var si=Object.defineProperty,oi=d((t,e)=>si(t,"name",{value:e,configurable:!0}),"f");let F;const ni=oi(async(t,e,i,a,s)=>{if(!s)return{file:"",options:{},plugins:[]};const{dir:o}=J(t),r=s.path?Pe(s.path):o;let l;try{l=(await Ae(e)).path}catch{try{l=await Ge(e)}catch{}}try{let c;F?c=F:(c=await Xe({cwd:e,env:i,...s.ctx},r,{stopDir:l}),F=c);const n={file:c.file,options:c.options,plugins:await Be(c.plugins,e,a)};return n.options.parser&&(n.options.parser=await q(n.options.parser,"parser",e,a)),n.options.syntax&&(n.options.syntax=await q(n.options.syntax,"syntax",e,a)),n.options.stringifier&&(n.options.stringifier=await q(n.options.stringifier,"stringifier",e,a)),n}catch(c){if(c.message.includes("No PostCSS Config found in"))return{file:"",options:{},plugins:[]};throw c}},"loadConfig");var ri=Object.defineProperty,pi=d((t,e)=>ri(t,"name",{value:e,configurable:!0}),"n$3");const li=pi((t="[name]_[local]_[hash:8]")=>(e,i,a)=>{const{base:s,dir:o,name:r}=J(i),l=ce(`${s}:${a}`),c=U.exec(t),n=c&&Number.parseInt(c[1],10);return Ye(t.replace("[dir]",N(o)).replace("[name]",r.replace(/\.module$/,"")).replace("[local]",e).replace(U,n?l.slice(0,n):l))},"generate");var ci=Object.defineProperty,mi=d((t,e)=>ci(t,"name",{value:e,configurable:!0}),"r$2");const ui=mi(t=>{const e={mode:"local",...t,generateScopedName:typeof t.generateScopedName=="function"?t.generateScopedName:li(t.generateScopedName)};return[Qe(),Ve({mode:e.mode}),He({failOnWrongOrder:e.failOnWrongOrder}),Je({exportGlobals:e.exportGlobals,generateScopedName:e.generateScopedName})]},"modules");var di=Object.defineProperty,fi=d((t,e)=>di(t,"name",{value:e,configurable:!0}),"c$2");const gi=fi((t,e,i)=>{const{base:a,dir:s,ext:o,name:r}=J(e),l=ce(`${a}:${Buffer.from(i).toString()}`),c=U.exec(t),n=c&&Number.parseInt(c[1],10);return t.replace("[dir]",N(s)).replace("[name]",r).replace("[extname]",o).replace(".[ext]",o).replace("[ext]",o.slice(1)).replace(U,n?l.slice(0,n):l.slice(0,8))},"generate"),be={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(be);var hi=Object.defineProperty,xi=d((t,e)=>hi(t,"name",{value:e,configurable:!0}),"g"),h=d(function(t,e,i,a){if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?a:i==="a"?a.call(t):a?a.value:e.get(t)},"n$2"),j,P,$;let vi=class{static{d(this,"p")}static{xi(this,"Mime")}constructor(...e){j.set(this,new Map),P.set(this,new Map),$.set(this,new Map);for(const i of e)this.define(i)}define(e,i=!1){for(let[a,s]of Object.entries(e)){a=a.toLowerCase(),s=s.map(l=>l.toLowerCase()),h(this,$,"f").has(a)||h(this,$,"f").set(a,new Set);const o=h(this,$,"f").get(a);let r=!0;for(let l of s){const c=l.startsWith("*");if(l=c?l.slice(1):l,o?.add(l),r&&h(this,P,"f").set(a,l),r=!1,c)continue;const n=h(this,j,"f").get(l);if(n&&n!=a&&!i)throw new Error(`"${a} -> ${l}" conflicts with "${n} -> ${l}". Pass \`force=true\` to override this definition.`);h(this,j,"f").set(l,a)}}return this}getType(e){if(typeof e!="string")return null;const i=e.replace(/^.*[/\\]/s,"").toLowerCase(),a=i.replace(/^.*\./s,"").toLowerCase(),s=i.length<e.length;return!(a.length<i.length-1)&&s?null:h(this,j,"f").get(a)??null}getExtension(e){return typeof e!="string"?null:(e=e?.split?.(";")[0],(e&&h(this,P,"f").get(e.trim().toLowerCase()))??null)}getAllExtensions(e){return typeof e!="string"?null:h(this,$,"f").get(e.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const e of h(this,$,"f").values())Object.freeze(e);return this}_getTestState(){return{types:h(this,j,"f"),extensions:h(this,P,"f")}}};j=new WeakMap,P=new WeakMap,$=new WeakMap;const yi=new vi(be)._freeze();var bi=Object.defineProperty,wi=d((t,e)=>bi(t,"name",{value:e,configurable:!0}),"r");const $i=wi((t,e)=>{const i=yi.getType(t)??"application/octet-stream",a=Buffer.from(e).toString("base64");return`data:${i};base64,${a}`},"inline");var ji=Object.defineProperty,ki=d((t,e)=>ji(t,"name",{value:e,configurable:!0}),"a");const Si=ki(async(t,e)=>{const i=new URL(t,"file://"),a=i.hash?i.hash.slice(1):"",s=t.split("?")[0]??"",o=[s];s.startsWith("/")&&o.push(`.${s}`),!s.startsWith("/")&&!s.startsWith(".")&&o.push(`./${s}`);const r=Q(o,{baseDirs:e,caller:"URL resolver"}),l=new URLSearchParams(i.search).toString();return{from:r,source:le(r,{buffer:!0}),urlQuery:(l?`?${l}`:"")+(a?`#${a}`:"")}},"urlResolve");var Pi=Object.defineProperty,we=d((t,e)=>Pi(t,"name",{value:e,configurable:!0}),"n");const pe=/^url$/i,Oi=/^(?:-webkit-)?image-set$/i,Ei=we(t=>/(?:url|(?:-webkit-)?image-set)\(/i.test(t.value),"isDeclWithUrl"),Ri=we((t,e)=>{t.walk(i=>{if(i.type==="function"){if(pe.test(i.value)){const{nodes:a}=i,[s]=a,o=s?.type==="string"?s.value:X.stringify(a);e(o.replaceAll(/^\s+|\s+$/g,""),s);return}if(Oi.test(i.value))for(const a of i.nodes){if(a.type==="string"){e(a.value.replaceAll(/^\s+|\s+$/g,""),a);continue}if(a.type==="function"&&pe.test(a.value)){const{nodes:s}=a,[o]=s,r=o?.type==="string"?o.value:X.stringify(s);e(r.replaceAll(/^\s+|\s+$/g,""),o)}}}})},"walkUrls");var Ii=Object.defineProperty,Ci=d((t,e)=>Ii(t,"name",{value:e,configurable:!0}),"$");const A="packem-css-url",Ni="assets/[name]-[hash][extname]",Ui="assets/[name][extname]",Li="./assets/",zi=".",$e=Ci(t=>{const e={alias:{},assetDir:zi,inline:!1,resolve:Si,...t},i=e.hash??!0?typeof e.hash=="string"?e.hash:Ni:Ui;return{async Once(a,{result:s}){if(!a.source?.input.file)return;const{file:o}=a.source.input,r=C(a.source.input.map?.text??void 0).resolve(b(o)).toConsumer(),l=[],c=new Set(s.messages.filter(p=>p.type==="dependency").map(p=>p.file));a.walkDecls(p=>{if(!Ei(p))return;const m=X(p.value);Ri(m,(u,f)=>{for(const[v,g]of Object.entries(e.alias))u!==v&&!u.startsWith(`${v}/`)||(u=O(g)+u.slice(v.length));if(!f||u.length===0){p.warn(s,`Empty URL in \`${p.toString()}\``);return}if(Ce.test(u))return;if(!Oe(u))try{new URL(u);return}catch{}const y=new Set;if(p.source?.input.file&&c.has(p.source.input.file)&&y.add(b(p.source.input.file)),p.source?.start){const v=p.source.start,g=r?.originalPositionFor(v),w=g?.source&&b(g.source);w&&y.add(O(w))}y.add(b(o)),l.push({baseDirs:y,decl:p,node:f,parsed:m,url:u})})});const n=new Map;for await(const{baseDirs:p,decl:m,node:u,parsed:f,url:y}of l){let v;try{v||(v=await e.resolve(y,[...p]))}catch{}if(!v){m.warn(s,`Unresolved URL \`${y}\` in \`${m.toString()}\``);continue}const{from:g,source:w,urlQuery:Z}=v;if(!(w instanceof Uint8Array)||typeof g!="string"){m.warn(s,`Incorrectly resolved URL \`${y}\` in \`${m.toString()}\``);continue}if(s.messages.push({file:g,plugin:A,type:"dependency"}),e.inline)u.type="string",u.value=$i(g,w);else{const R=O(gi(i,g,w));let x=R;const je=te.test(R);for(let _=1;n.has(x)&&n.get(x)!==g;_++)x=je?R.replace(te,`${String(_)}$1`):`${R}${String(_)}`;n.set(x,g);const ee=typeof e.publicPath=="string"?e.publicPath+(/[/\\]$/.test(e.publicPath)?"":"/")+N(x):`${Li}${N(x)}`;u.type="string",u.value=typeof e.publicPath=="function"?e.publicPath(u.value,ee,o):ee,Z&&(u.value+=Z),typeof e.assetDir=="string"?x=Ee(e.assetDir,x):typeof e.assetDir=="function"&&(x=e.assetDir(g,x,o)),s.messages.push({plugin:A,source:w,to:x,type:"asset"})}m.value=f.toString()}},postcssPlugin:A}},"plugin");$e.postcss=!0;const na={alwaysProcess:!0,name:"postcss",async process({code:t,extracted:e,map:i}){const a=await ni(this.id,this.cwd,this.environment,this.logger,this.options.config),s=[];let o=!1;typeof this.options.modules=="boolean"?o=this.options.modules:typeof this.options.modules=="object"&&(o=ie(this.options.modules.include,this.id)),this.autoModules&&this.options.modules===void 0&&(o=ie(this.autoModules,this.id));const r={},l=[],c={...a.options,...this.options,from:this.id,map:{annotation:!1,inline:!1,prev:C(i).relative(b(this.id)).toObject(),sourcesContent:this.sourceMap?this.sourceMap.content:!0},plugins:[],to:this.options.to??this.id};if(this.options.import&&s.push(ye({debug:this.debug,extensions:this.extensions,plugins:[],root:this.cwd,warnOnEmpty:!0,...this.options.import})),this.options.url&&s.push($e({inline:!!this.inject,...this.options.url})),this.options.plugins&&s.push(...this.options.plugins),s.push(...a.plugins),o){const m=typeof this.options.modules=="object"?this.options.modules:{};s.push(...ui({failOnWrongOrder:!0,...m}),me({extensions:this.extensions}))}s.length===0&&s.push(Y),this.debug&&s.push(Se({ignore:["css-noop"]}));const n=await Re(s).process(t,c);for(const m of n.messages)switch(m.type){case"asset":{this.assets.set(m.to,m.source);break}case"dependency":{this.deps.add(O(m.file));break}case"icss":{Object.assign(r,m.export);break}case"icss-dependency":{l.push(m.import);break}case"warning":{this.logger.warn({message:m.text,plugin:m.plugin});break}}if(i=C(n.map.toJSON()).resolve(b(c.to)).toString(),!this.extract&&this.sourceMap){const m=C(i).modify(u=>{u.file=void 0}).relative();this.sourceMap.transform&&m.modify(this.sourceMap.transform),i=m.toString(),n.css+=m.toCommentData()}const p=Ie({css:n.css,cwd:this.cwd,dts:this.dts,emit:this.emit,extract:this.extract,icssDependencies:l,id:this.id,inject:this.inject,logger:this.logger,map:i,modulesExports:r,namedExports:this.namedExports,supportModules:o});return this.extract&&(e={css:n.css,id:this.id,map:i}),{code:p.code,extracted:e,map:p.map,meta:p.meta,moduleSideEffects:p.moduleSideEffects}}};export{na as default};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { c as Loader, e as SassLoaderOptions } from '../../packem_shared/types-CA9pSumu.mjs';
|
|
2
|
-
export { f as SassLoaderContext } from '../../packem_shared/types-CA9pSumu.mjs';
|
|
3
|
-
import 'cssnano';
|
|
4
|
-
import 'lightningcss';
|
|
5
|
-
import 'postcss';
|
|
6
|
-
import 'postcss-load-config';
|
|
7
|
-
import 'less';
|
|
8
|
-
import '@visulima/packem-share/types';
|
|
9
|
-
import 'sass';
|
|
10
|
-
import 'sass-embedded';
|
|
11
|
-
import 'stylus';
|
|
12
|
-
import '@visulima/packem-share/utils';
|
|
13
|
-
import 'rollup';
|
|
14
|
-
import 'source-map-js';
|
|
15
|
-
|
|
16
|
-
declare const loader: Loader<SassLoaderOptions>;
|
|
17
|
-
|
|
18
|
-
export { SassLoaderOptions, loader as default };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { c as Loader } from '../packem_shared/types-CA9pSumu.mjs';
|
|
2
|
-
import 'cssnano';
|
|
3
|
-
import 'lightningcss';
|
|
4
|
-
import 'postcss';
|
|
5
|
-
import 'postcss-load-config';
|
|
6
|
-
import 'less';
|
|
7
|
-
import '@visulima/packem-share/types';
|
|
8
|
-
import 'sass';
|
|
9
|
-
import 'sass-embedded';
|
|
10
|
-
import 'stylus';
|
|
11
|
-
import '@visulima/packem-share/utils';
|
|
12
|
-
import 'rollup';
|
|
13
|
-
import 'source-map-js';
|
|
14
|
-
|
|
15
|
-
declare const loader: Loader;
|
|
16
|
-
|
|
17
|
-
export { loader as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as e,s as o}from"../packem_shared/sourcemap-DGfgaUBb.mjs";const p={alwaysProcess:!0,name:"sourcemap",async process({code:a,map:s}){return{code:o(a),map:await e(a,this.id)??s}}};export{p as default};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { c as Loader, g as StylusLoaderOptions } from '../../packem_shared/types-CA9pSumu.mjs';
|
|
2
|
-
import 'cssnano';
|
|
3
|
-
import 'lightningcss';
|
|
4
|
-
import 'postcss';
|
|
5
|
-
import 'postcss-load-config';
|
|
6
|
-
import 'less';
|
|
7
|
-
import '@visulima/packem-share/types';
|
|
8
|
-
import 'sass';
|
|
9
|
-
import 'sass-embedded';
|
|
10
|
-
import 'stylus';
|
|
11
|
-
import '@visulima/packem-share/utils';
|
|
12
|
-
import 'rollup';
|
|
13
|
-
import 'source-map-js';
|
|
14
|
-
|
|
15
|
-
declare const loader: Loader<StylusLoaderOptions>;
|
|
16
|
-
|
|
17
|
-
export { StylusLoaderOptions, loader as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var h=Object.defineProperty;var p=(e,t)=>h(e,"name",{value:t,configurable:!0});import{existsSync as y}from"node:fs";import{readFileSync as w}from"@visulima/fs";import{normalize as n,dirname as P,join as m}from"@visulima/path";import S from"stylus";import{m as b}from"../../packem_shared/sourcemap-DGfgaUBb.mjs";var v=Object.defineProperty,u=p((e,t)=>v(e,"name",{value:t,configurable:!0}),"a");const C=u(async(e,t)=>{if(!(!e.sources||e.sourcesContent))return await Promise.all(e.sources.map(async r=>{const o=n(m(t,r));if(y(o))return w(o)}).filter(Boolean))},"populateSourcemapContent"),F={name:"stylus",async process({code:e,map:t}){const r={...this.options},o=n(P(this.id)),i=[o,m(o,"node_modules"),m(this.cwd,"node_modules")];r.paths&&i.push(...r.paths);const s=S(e,r).set("filename",this.id).set("paths",i).set("sourcemap",{basePath:o,comment:!1});e=await u(async()=>await new Promise((a,l)=>{s.render((c,f)=>c?l(c):a(f))}),"render")();const d=s.deps();for(const a of d)this.deps.add(n(a));return s.sourcemap&&(s.sourcemap.sourcesContent=await C(s.sourcemap,o)),{code:e,map:b(s.sourcemap).toString()??t}},test:/\.(styl|stylus)$/i};export{F as default};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { c as Loader } from '../packem_shared/types-CA9pSumu.mjs';
|
|
2
|
-
import 'cssnano';
|
|
3
|
-
import 'lightningcss';
|
|
4
|
-
import 'postcss';
|
|
5
|
-
import 'postcss-load-config';
|
|
6
|
-
import 'less';
|
|
7
|
-
import '@visulima/packem-share/types';
|
|
8
|
-
import 'sass';
|
|
9
|
-
import 'sass-embedded';
|
|
10
|
-
import 'stylus';
|
|
11
|
-
import '@visulima/packem-share/utils';
|
|
12
|
-
import 'rollup';
|
|
13
|
-
import 'source-map-js';
|
|
14
|
-
|
|
15
|
-
declare const tailwindcssLoader: Loader;
|
|
16
|
-
|
|
17
|
-
export { tailwindcssLoader as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var J=Object.defineProperty;var S=(g,a)=>J(g,"name",{value:a,configurable:!0});import{stat as y}from"node:fs/promises";import{compile as P,Features as i,toSourceMap as x,optimize as z}from"@tailwindcss/node";import{clearRequireCache as M}from"@tailwindcss/node/require-cache";import{Scanner as $}from"@tailwindcss/oxide";import{findPackageJson as R}from"@visulima/package";import{resolve as v,dirname as w,relative as E,join as C,normalize as T}from"@visulima/path";import{resolveAlias as F}from"@visulima/path/utils";import{g as U}from"../packem_shared/generate-js-exports-Dqps7nWG.mjs";import{resolve as A}from"../packem_shared/resolve-nqhcPNJ9.mjs";var k=Object.defineProperty,f=S((g,a)=>k(g,"name",{value:a,configurable:!0}),"p");class B{static{S(this,"U")}constructor(a,r,u,l,s,n){this.id=a,this.base=r,this.enableSourceMaps=u,this.customCssResolver=l,this.customJsResolver=s,this.logger=n}static{f(this,"TailwindRoot")}compiler;scanner;candidates=new Set;buildDependencies=new Map;async generate(a,r){const u=v(this.id.replace(/\?.*$/u,"")),l=f(e=>{e!==u&&(/[#?].*\.svg$/u.test(e)||r(e))},"addWatchFileWrapper"),s=this.requiresBuild(),n=w(v(u));if(!this.compiler||!this.scanner||await s){M([...this.buildDependencies.keys()]),this.buildDependencies.clear(),this.addBuildDependency(u),this.logger.debug({message:"Setup compiler"});const e=[];this.compiler=await P(a,{base:n,customCssResolver:this.customCssResolver,customJsResolver:this.customJsResolver,from:this.enableSourceMaps?this.id:void 0,onDependency:f(m=>{l(m),e.push(this.addBuildDependency(m))},"onDependency"),shouldRewriteUrls:!0}),await Promise.all(e),this.logger.debug({message:"Setup scanner"});const d=[...this.compiler.root==="none"?[]:this.compiler.root===null?[{base:this.base,negated:!1,pattern:"**/*"}]:[{...this.compiler.root,negated:!1}],...this.compiler.sources];this.scanner=new $({sources:d})}else for(const e of this.buildDependencies.keys())l(e);const t=this.compiler.features&(i.AtApply|i.JsPluginCompat|i.ThemeFunction|i.Utilities);if(this.logger.debug({data:{availableFeatures:this.compiler.features,hasAtApply:!!(this.compiler.features&i.AtApply),hasJsPluginCompat:!!(this.compiler.features&i.JsPluginCompat),hasRequiredFeatures:!!t,hasThemeFunction:!!(this.compiler.features&i.ThemeFunction),hasUtilities:!!(this.compiler.features&i.Utilities),requiredFeatures:i.AtApply|i.JsPluginCompat|i.ThemeFunction|i.Utilities},message:"Feature analysis"}),!t)return this.logger.debug({data:{missingFeatures:{AtApply:!(this.compiler.features&i.AtApply),JsPluginCompat:!(this.compiler.features&i.JsPluginCompat),ThemeFunction:!(this.compiler.features&i.ThemeFunction),Utilities:!(this.compiler.features&i.Utilities)}},message:"Missing required features, returning false"}),!1;if(this.compiler.features&i.Utilities)if(this.logger.debug({data:{candidatesCountBefore:this.candidates.size,scannerExists:!!this.scanner,scannerHasScan:!!(this.scanner&&typeof this.scanner.scan=="function")},message:"Scan for candidates - Utilities feature enabled"}),this.scanner){const e=this.scanner.scan();this.logger.debug({data:{scannedCandidates:e.slice(0,10),scannedCandidatesCount:e.length},message:"Scanner results"});for(const d of e)this.candidates.add(d);this.logger.debug({data:{candidatesCountAfter:this.candidates.size,newCandidatesAdded:e.length},message:"Candidates updated"})}else this.logger.debug({data:{hasScanMethod:!!(this.scanner&&typeof this.scanner.scan=="function"),scannerType:typeof this.scanner},message:"Scanner not available or missing scan method"});else this.logger.debug({message:"Utilities feature not enabled, skipping candidate scanning"});if(this.compiler.features&i.Utilities){if(this.scanner&&this.scanner.files){this.logger.debug({data:{files:this.scanner.files.slice(0,5),filesCount:this.scanner.files.length},message:"Watching individual files from scanner"});for(const e of this.scanner.files)l(e)}else this.logger.debug({message:"No individual files to watch from scanner"});if(this.scanner&&this.scanner.globs){this.logger.debug({data:{globs:this.scanner.globs.slice(0,3),globsCount:this.scanner.globs.length},message:"Processing globs from scanner"});for await(const e of this.scanner.globs){if(e.pattern[0]==="!"){this.logger.debug({data:{pattern:e.pattern},message:"Skipping negated glob pattern"});continue}let d=E(this.base,e.base);d[0]!=="."&&(d=`./${d}`);const m=C(d,e.pattern);this.logger.debug({data:{base:e.base,glob:e.pattern,watchPath:m},message:"Adding glob to watch list"}),l(m);const{root:b}=this.compiler;if(b!=="none"&&b!==null){const p=v(b.base,b.pattern);try{const h=await y(p);if(h.isDirectory())this.logger.debug({data:{basePath:p,isDirectory:h.isDirectory()},message:"Valid source directory confirmed"});else{const D=`The path given to \`source(…)\` must be a directory but got \`source(${p})\` instead.`;throw this.logger.debug({data:{basePath:p,error:D,isDirectory:h.isDirectory()},message:"Invalid source path detected"}),new Error(D)}}catch(h){this.logger.debug({data:{basePath:p,error:h instanceof Error?h.message:String(h)},message:"Error checking source directory"})}}}}else this.logger.debug({message:"No globs to process from scanner"})}else this.logger.debug({message:"Utilities feature not enabled, skipping file watching"});this.logger.debug({data:{candidates:[...this.candidates].slice(0,10),candidatesCount:this.candidates.size},message:"Build CSS"});const o=this.compiler.build([...this.candidates]);this.logger.debug({data:{cssLength:o.length,cssPreview:o.slice(0,200)+(o.length>200?"...":"")},message:"CSS build completed"}),this.logger.debug({data:{enableSourceMaps:this.enableSourceMaps},message:"Build Source Map"});const c=(this.enableSourceMaps?x(this.compiler.buildSourceMap()):void 0)?.raw;return c?this.logger.debug({data:{hasMappings:!!c.mappings,mapSize:JSON.stringify(c).length,sourcesCount:c.sources?.length||0},message:"Source map generated"}):this.logger.debug({message:"No source map generated"}),{code:o,map:c}}async addBuildDependency(a){let r;try{r=(await y(a)).mtimeMs}catch{}this.buildDependencies.set(a,r)}async requiresBuild(){for await(const[a,r]of this.buildDependencies){if(r===void 0)return!0;try{if((await y(a)).mtimeMs>r)return!0}catch{return!0}}return!1}}const V={name:"tailwindcss",async process({code:g,map:a}){const r=this.alias,u=f(async(t,o)=>{try{const c=await R(o),e=A([t,F(t,r??{})],{baseDirs:[o,C(w(c.path),"node_modules")],caller:"Tailwind CSS Resolver",conditionNames:["style","development|production"],extensions:[".css"],mainFields:["style"],preferRelative:!0});if(e)return this.logger.debug({message:`Resolved CSS import: ${t} -> ${e}`}),e}catch{}return this.logger.debug({message:`Failed to resolve CSS import: ${t} from ${o}`}),!1},"customCssResolver"),l=f(async(t,o)=>{try{const c=await R(o),e=A([t,F(t,r??{})],{baseDirs:[o,C(w(c.path),"node_modules")],caller:"Tailwind JS Resolver",extensions:[".js",".mjs",".cjs",".ts",".tsx",".jsx"]});if(e)return this.logger.debug({message:`Resolved JS import: ${t} -> ${e}`}),e}catch{}return this.logger.debug({message:`Failed to resolve JS import: ${t} from ${o}`}),!1},"customJsResolver");let s=await new B(this.id,this.sourceDir||process.cwd(),this.useSourcemap,u,l,this.logger).generate(g,t=>this.deps.add(T(t)));if(!s)return this.logger.debug({data:{returningOriginalContent:!0},message:"Tailwind generation returned false - not a Tailwind file or missing features"}),{code:g,map:a};if(this.logger.debug({message:"[@tailwindcss/rollup] Generate CSS"}),this.environment==="production"){this.logger.debug({data:{minify:!0,originalSize:s.code.length},message:"[@tailwindcss/rollup] Optimize CSS"});const t=z(s.code,{file:this.id,map:s.map,minify:!0});this.logger.debug({data:{optimizedSize:t.code.length,originalSize:s.code.length,sizeReduction:s.code.length-t.code.length,sizeReductionPercent:`${((s.code.length-t.code.length)/s.code.length*100).toFixed(2)}%`},message:"CSS optimization completed"}),s=t}else this.logger.debug({data:{environment:this.environment},message:"Development mode - skipping CSS optimization"});if(this.emit)return{...s,meta:{moduleContents:s,types:void 0},moduleSideEffects:!0};const n=U({css:s.code,cwd:this.cwd,dts:this.dts,emit:this.emit,extract:this.extract,icssDependencies:[],id:this.id,inject:this.inject,logger:this.logger,map:s.map,modulesExports:{},namedExports:this.namedExports,supportModules:!1});return this.extract?{code:n.code,extracted:{css:s.code,id:this.id,map:s.map},map:n.map,meta:n.meta,moduleSideEffects:n.moduleSideEffects}:{code:n.code,map:n.map,meta:n.meta,moduleSideEffects:n.moduleSideEffects}},test:/\.css$/i};export{V as default};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Options } from 'cssnano';
|
|
2
|
-
import { M as Minifier } from '../packem_shared/types-CA9pSumu.mjs';
|
|
3
|
-
import 'lightningcss';
|
|
4
|
-
import 'postcss';
|
|
5
|
-
import 'postcss-load-config';
|
|
6
|
-
import 'less';
|
|
7
|
-
import '@visulima/packem-share/types';
|
|
8
|
-
import 'sass';
|
|
9
|
-
import 'sass-embedded';
|
|
10
|
-
import 'stylus';
|
|
11
|
-
import '@visulima/packem-share/utils';
|
|
12
|
-
import 'rollup';
|
|
13
|
-
import 'source-map-js';
|
|
14
|
-
|
|
15
|
-
declare const cssnanoMinifier: Minifier<Options>;
|
|
16
|
-
|
|
17
|
-
export { cssnanoMinifier as default };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { M as Minifier, a as InternalStyleOptions } from '../packem_shared/types-CA9pSumu.mjs';
|
|
2
|
-
import 'cssnano';
|
|
3
|
-
import 'lightningcss';
|
|
4
|
-
import 'postcss';
|
|
5
|
-
import 'postcss-load-config';
|
|
6
|
-
import 'less';
|
|
7
|
-
import '@visulima/packem-share/types';
|
|
8
|
-
import 'sass';
|
|
9
|
-
import 'sass-embedded';
|
|
10
|
-
import 'stylus';
|
|
11
|
-
import '@visulima/packem-share/utils';
|
|
12
|
-
import 'rollup';
|
|
13
|
-
import 'source-map-js';
|
|
14
|
-
|
|
15
|
-
declare const lightningcssMinifier: Minifier<NonNullable<InternalStyleOptions["lightningcss"]>>;
|
|
16
|
-
|
|
17
|
-
export { lightningcssMinifier as default };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
var l=Object.defineProperty;var u=(o,n)=>l(o,"name",{value:n,configurable:!0});import{SourceMapGenerator as p}from"source-map-js";import{m as f}from"./sourcemap-DGfgaUBb.mjs";var g=Object.defineProperty,d=u((o,n)=>g(o,"name",{value:n,configurable:!0}),"u");const j=d(async o=>{const n=new p({file:""}),a=[];let c=0;for await(const{css:i,map:m}of o){a.push(i);const s=f(m),t=s.toObject();if(!t)continue;const r=s.toConsumer();if(r){if(r.eachMapping(e=>{n.addMapping({generated:{column:e.generatedColumn,line:c+e.generatedLine},name:e.name,original:{column:e.originalColumn,line:e.originalLine},source:e.source})}),t.sourcesContent)for(const e of t.sources)n.setSourceContent(e,r.sourceContentFor(e,!0));c+=i.split(`
|
|
2
|
-
`).length}}return{css:a.join(`
|
|
3
|
-
`),map:n}},"concat");export{j as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"@visulima/fs";import"@visulima/path";import"source-map-js";import{g as o,m as s,s as i}from"./sourcemap-DGfgaUBb.mjs";export{o as getMap,s as mm,i as stripMap};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var l=Object.defineProperty;var u=(n,r)=>l(n,"name",{value:r,configurable:!0});import f from"./arrayFmt-Dek5cB7m.mjs";import d from"./loadModule-CovDETwT.mjs";var y=Object.defineProperty,o=u((n,r)=>y(n,"name",{value:r,configurable:!0}),"o");const p=["inject","extract","emit","inline"],S=f(p),P=o(n=>{const r=Array.isArray(n)?n:[n];if(r[0]&&!p.includes(r[0]))throw new Error(`Incorrect mode provided, allowed modes are ${S}`);const t=r[0]??"inject";return{emit:t==="emit",extract:!!(t==="extract"&&(r[1]??!0)),inject:!!(t==="inject"&&(r[1]??!0)),inline:t==="inline"}},"inferModeOption"),O=o((n,r)=>typeof n=="boolean"?n&&{}:typeof n=="object"?n:r,"inferOption"),j=o(n=>{const r=Array.isArray(n)?n:[n];return r[0]?{content:!0,...r[1],inline:r[0]==="inline"}:!1},"inferSourceMapOption"),b=o((n,r)=>{const t=O(n,{});return r&&typeof t=="object"&&!t.alias&&(t.alias=r),t},"inferHandlerOption"),a=o(async(n,r,t,e)=>{if(typeof n!="string")return n;const i=await d(n,t,e);if(!i)throw new Error(`Unable to load PostCSS ${r} \`${n}\``);return i},"ensurePCSSOption"),h=o(async(n,r,t)=>{if(n===void 0)return[];if(n.length===0)return[];const e=[];for await(const i of n.filter(Boolean)){if(!Array.isArray(i)){e.push(await a(i,"plugin",r,t));continue}const[s,c]=i;c?e.push((await a(s,"plugin",r,t))(c)):e.push(await a(s,"plugin",r,t))}return e},"ensurePCSSPlugins");export{a as ensurePCSSOption,h as ensurePCSSPlugins,b as inferHandlerOption,P as inferModeOption,O as inferOption,j as inferSourceMapOption};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var d=Object.defineProperty;var n=(e,t)=>d(e,"name",{value:t,configurable:!0});import{createRequire as c}from"node:module";import{interopDefault as m,loadModule as f}from"mlly";import{resolve as p}from"./resolve-nqhcPNJ9.mjs";var g=Object.defineProperty,u=n((e,t)=>g(e,"name",{value:t,configurable:!0}),"a");const o={},R=[".js",".mjs",".cjs",".json"],y=u(async(e,t)=>{try{return t(e)}catch(r){const s=r;if(s.code==="ERR_REQUIRE_ESM")return m(await f(e));throw s}},"loadModuleFromPath"),E=u(async(e,t,r)=>{if(o[e])return o[e];if(o[e]===null)return;const s={baseDirs:[t],caller:"Module loader",extensions:R,symlinks:!1},i=c(import.meta.url);try{const a=p([e,`./${e}`],s);if(a.startsWith("data:")){r.warn({message:`Skipping data URL module: ${e}`,module:e,plugin:"css"}),o[e]=null;return}o[e]=await y(a,i)}catch(a){r.warn({message:`Failed to resolve or load module: ${a instanceof Error?a.message:String(a)}`,module:e,plugin:"css"}),o[e]=null;return}const l=o[e];return l?.default??l},"loadModule");export{E as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a=Object.defineProperty;var i=(o,e)=>a(o,"name",{value:e,configurable:!0});import{fileURLToPath as m}from"node:url";import{dirname as f}from"@visulima/path";import{ResolverFactory as x}from"oxc-resolver";import d from"./arrayFmt-Dek5cB7m.mjs";var u=Object.defineProperty,v=i((o,e)=>u(o,"name",{value:e,configurable:!0}),"l");const b=f(m(import.meta.url)),k=v((o,e)=>{const s={baseDirs:[b],caller:"Resolver",extensions:[".mjs",".js",".cjs",".json"],symlinks:!0,...e},c=new x({extensions:s.extensions,symlinks:s.symlinks});for(const n of s.baseDirs)for(const t of o)try{const{error:r,path:l}=c.sync(n,t);if(l)return l;r&&console.debug(r,{context:[{basedir:n,caller:e.caller,extensions:e.extensions,id:t}]})}catch(r){console.debug(r.message,{context:[{basedir:n,caller:e.caller,error:r,extensions:e.extensions,id:t}]})}throw new Error(`${s.caller} could not resolve ${d(o)}`)},"resolve");export{k as resolve};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
var Y=Object.defineProperty;var N=(e,t)=>Y(e,"name",{value:t,configurable:!0});import{createFilter as ee}from"@rollup/pluginutils";import{createRollupLogger as se}from"@visulima/packem-share/utils";import{dirname as L,normalize as M,isAbsolute as te,relative as U,resolve as oe,parse as T,join as _,basename as V}from"@visulima/path";import{isRelative as ie}from"@visulima/path/utils";import re from"p-queue";import ne from"./concat-BbvpVPBg.mjs";import{inferSourceMapOption as ae,inferModeOption as ce,inferHandlerOption as W,inferOption as G,ensurePCSSOption as R,ensurePCSSPlugins as le}from"./inferModeOption-BWjmFhVF.mjs";import{m as q}from"./sourcemap-DGfgaUBb.mjs";var ue=Object.defineProperty,de=N((e,t)=>ue(e,"name",{value:t,configurable:!0}),"r");const J=de((e,t)=>{if(!t)return!1;if(typeof t=="function")return t(e);if(typeof t.test=="function")return t.test(e);throw new Error("Invalid condition type")},"matchFile");var pe=Object.defineProperty,fe=N((e,t)=>pe(e,"name",{value:t,configurable:!0}),"a");const me=4,ge=process.env.UV_THREADPOOL_SIZE?Number.parseInt(process.env.UV_THREADPOOL_SIZE,10):me;class he{static{N(this,"c")}static{fe(this,"LoaderManager")}test;loaders=new Map;options;workQueue;logger;constructor({extensions:t,loaders:c,logger:y,options:O}){this.test=S=>t.some(g=>S.toLowerCase().endsWith(g)),c.length>0&&this.add(...c),this.options=O,this.logger=y}add(...t){for(const c of t)this.loaders.has(c.name)||this.loaders.set(c.name,c)}isSupported(t){if(this.test(t))return!0;for(const[,c]of this.loaders)if(J(t,c.test))return!0;return!1}async process(t,c){this.workQueue||(this.workQueue=new re({concurrency:ge-1}));for await(const[y,O]of this.loaders){const S={...c,options:this.options[y]??{}};if(O.alwaysProcess||J(S.id,O.test)){this.logger.debug({message:`Processing ${y} loader for ${S.id}`,plugin:"css"});try{const g=await this.workQueue.add(O.process.bind(S,t));g&&(t=g,this.logger.debug({message:`Completed ${y} loader for ${S.id}`,outputSize:g.code?.length||0,plugin:"css"}))}catch(g){throw this.logger.error({file:S.id,loader:y,message:`Error in ${y} loader for ${S.id}: ${g instanceof Error?g.message:String(g)}`,plugin:"css"}),g}}}return t}}var xe=Object.defineProperty,z=N((e,t)=>xe(e,"name",{value:t,configurable:!0}),"b");const ye=z(async(e,t)=>e.sort((c,y)=>t.indexOf(c.name)-t.indexOf(y.name)),"sortByNameOrder"),Fe=z(async(e,t,c,y,O,S,g,Z,K)=>{const C={...K,...e.alias},B=ee(e.include,e.exclude),b=ae(e.sourceMap),i={...ce(e.mode),autoModules:e.autoModules??!1,dts:e.dts,extensions:e.extensions,namedExports:e.namedExports};let a,I,H=!1;if(e.loaders)for(const r of e.loaders)r.name==="postcss"&&(H=!0);else e.loaders=[];H&&(i.postcss={...e.postcss,config:G(e.postcss?.config,{}),import:W(e.postcss?.import,C),modules:G(e.postcss?.modules,void 0),to:e.postcss?.to,url:W(e.postcss?.url,C)});let E=[];const F=z((r,u)=>{const m=[];for(const o of Object.keys(r)){const d=new Set;let h=[o];do{const $=[];for(const f of h){if(d.has(f))continue;if(I.isSupported(f)){B(f)&&$.push(f);continue}d.add(f);const P=u(f);P&&$.push(...P.importedIds)}h=$}while(h.some($=>!I.isSupported($)));m.push(...h)}return m},"traverseImportedModules");return{augmentChunkHash(r){if(E.length===0)return;const u=F(r.modules,this.getModuleInfo),m=E.filter(o=>u.includes(o.id)).sort((o,d)=>u.lastIndexOf(o.id)-u.lastIndexOf(d.id)).map(o=>`${V(o.id)}:${o.css}`);if(m.length!==0)return m.join(":")},async buildStart(){a=se(this,"css"),H&&i.postcss&&(e.postcss?.parser&&(i.postcss.parser=await R(e.postcss.parser,"parser",c,a)),e.postcss?.syntax&&(i.postcss.syntax=await R(e.postcss.syntax,"syntax",c,a)),e.postcss?.stringifier&&(i.postcss.stringifier=await R(e.postcss.stringifier,"stringifier",c,a)),e.postcss?.plugins&&(i.postcss.plugins=await le(e.postcss.plugins,c,a))),I=new he({extensions:i.extensions,loaders:await ye(e.loaders||[],["sourcemap","stylus","less","sass","postcss"]),logger:a,options:{...e,...i,alias:C}}),a.info({extract:typeof i.extract=="string"?i.extract:"individual",loaders:e.loaders?.map(r=>r.name)||[],message:"CSS plugin initialized",minify:!!(Z&&e.minifier),namedExports:!!i.namedExports,plugin:"css",sourceMap:!!S}),typeof i.inject=="object"&&i.inject.treeshakeable&&(i.namedExports=!1,a.info({message:"Disabling named exports due to `inject.treeshakeable` option",plugin:"css"}))},async generateBundle(r,u){if(E.length===0||!(r.dir||r.file))return;const m=Object.values(u),o=r.dir??L(r.file),d=m.filter(n=>n.type==="chunk"),h=d.filter(n=>!n.facadeModuleId),$=r.preserveModules?d:d.filter(n=>n.isEntry||n.isDynamicEntry),f=[],P=z(async(n,l)=>{const s=typeof i.extract=="string"?M(i.extract).replace(/^\.[/\\]/,""):M(`${n}.css`);te(s)&&this.error(["Extraction path must be relative to the output directory,",`which is ${U(c,o)}`].join(`
|
|
2
|
-
`)),ie(s)&&this.error(["Extraction path must be nested inside output directory,",`which is ${U(c,o)}`].join(`
|
|
3
|
-
`));const w=E.filter(x=>l.includes(x.id)).sort((x,v)=>l.lastIndexOf(x.id)-l.lastIndexOf(v.id)),D=await ne(w);return{css:D.css,map:q(D.map.toString()).relative(L(oe(o,s))).toString(),name:s}},"getExtractedData"),A=z(n=>{if(r.file)return T(r.file).name;if(r.preserveModules){const{dir:l,name:s}=T(n.fileName);return l?_(l,s):s}return n.name},"getName"),k=[];if(typeof i.extract=="string"){a.debug({message:`Extracting to ${i.extract}`,prefix:"css"});const n=[];for(const s of h){const w=F(s.modules,this.getModuleInfo);k.push(...w),n.push(...w)}for(const s of $)n.push(...F(s.modules,this.getModuleInfo).filter(w=>!k.includes(w)));const l=A(d[0]);f.push([l,n])}else{a.debug({message:"Extracting to individual files",prefix:"css"});for(const n of h){const l=F(n.modules,this.getModuleInfo);if(l.length===0)continue;k.push(...l);const s=A(n);f.push([s,l])}for(const n of $){const l=F(n.modules,this.getModuleInfo).filter(w=>!k.includes(w));if(l.length===0)continue;const s=A(n);f.push([s,l])}}for await(const[n,l]of f){const s=await P(n,l);if(typeof e.onExtract=="function"&&!e.onExtract(s))continue;if(Z&&e.minifier){a.info({message:`Minifying ${s.name} with ${e.minifier.name}`,prefix:"css"});const{css:x,map:v}=await e.minifier.handler.bind({browserTargets:t,logger:a})(s,b,e[e.minifier.name]??{});s.css=x,s.map=v}const w={fileName:s.name,name:s.name,names:[s.name],originalFileName:s.name,originalFileNames:[s.name],source:s.css,type:"asset"},D=this.emitFile(w);if(a.info({chunkIds:l.length,hasSourceMap:!!(s.map&&b),message:`Emitted CSS file: ${s.name}`,plugin:"css",size:s.css.length}),s.map&&b){const x=this.getFileName(D);let v="assert";typeof r.assetFileNames=="string"?v=M(L(r.assetFileNames)):typeof r.assetFileNames=="function"&&(v=M(L(r.assetFileNames(w))));const j=q(s.map).modify(p=>(p.file=V(x),p)).modifySources(p=>{if(p==="<no source>"||v.length<=1)return p;p=`../${p}`;for(const Q of v)Q==="/"&&(p=`../${p}`);return p});if(b.inline)j.modify(p=>b.transform?.(p,M(_(o,x)))),u[x].source+=j.toCommentData(),a.debug({message:`Generated inline source map for ${x}`,plugin:"css"});else{const p=`${x}.map`;j.modify(X=>b.transform?.(X,M(_(o,p)))),this.emitFile({fileName:p,source:j.toString(),type:"asset"});const{base:Q}=T(p);u[x].source+=j.toCommentFile(Q),a.debug({message:`Generated external source map: ${p}`,plugin:"css"})}}}f.length>0&&a.info({filesEmitted:f.length,message:"CSS processing complete",plugin:"css",totalExtracted:E.length,totalSize:f.reduce((n,[,l])=>n+l.length,0)})},name:"rollup-plugin-css",async transform(r,u){if(!B(u)||!I.isSupported(u))return;if(r.replaceAll(/\s/g,"")===""){a.debug({message:`Skipping empty file: ${u}`,plugin:"css"});return}a.info({message:`Processing CSS file: ${u}`,plugin:"css",size:r.length}),typeof e.onImport=="function"&&e.onImport(r,u);const m={alias:C,assets:new Map,autoModules:i.autoModules,browserTargets:t,cwd:c,debug:g,deps:new Set,dts:i.dts,emit:i.emit,environment:O,extensions:i.extensions,extract:i.extract,id:u,inject:i.inject,inline:i.inline,logger:a,namedExports:i.namedExports,options:{},plugin:this,sourceDir:y,sourceMap:b,useSourcemap:S},o=await I.process({code:r},m);a.info({assets:m.assets.size,dependencies:m.deps.size,hasExtracted:!!o.extracted,message:`Processed ${u}`,outputSize:o.code.length,plugin:"css"});for(const d of m.deps)this.addWatchFile(d);for(const[d,h]of m.assets)this.emitFile({fileName:d,source:h,type:"asset"}),a.debug({message:`Emitted asset: ${d}`,plugin:"css",size:h.length});if(o.extracted){const{id:d}=o.extracted;E=E.filter(h=>h.id!==d),E.push(o.extracted),a.debug({cssSize:o.extracted.css.length,hasSourceMap:!!o.extracted.map,message:`Extracted CSS from ${d}`,plugin:"css"})}return{code:o.code,map:b&&o.map?o.map:{mappings:""},meta:{styles:o.meta},moduleSideEffects:o.extracted?!0:void 0}}}},"cssPlugin");export{Fe as default};
|