@csszyx/unplugin 0.17.0 → 0.17.1
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 +10 -2
- package/dist/index.mjs +10 -2
- package/dist/next-prebuild.cjs +2 -2
- package/dist/next-prebuild.d.cts +12 -2
- package/dist/next-prebuild.d.mts +12 -2
- package/dist/next-prebuild.mjs +2 -2
- package/dist/next-turbo-loader.cjs +3 -3
- package/dist/next-turbo-loader.d.cts +1 -1
- package/dist/next-turbo-loader.d.mts +1 -1
- package/dist/next-turbo-loader.mjs +3 -3
- package/dist/next-watcher.cjs +122 -14
- package/dist/next-watcher.d.cts +16 -3
- package/dist/next-watcher.d.mts +16 -3
- package/dist/next-watcher.mjs +122 -14
- package/dist/shared/{unplugin.alhYXymJ.cjs → unplugin.BKID6KXV.cjs} +4 -0
- package/dist/shared/{unplugin.995yC_cN.mjs → unplugin.CK-DfKTP.mjs} +20 -2
- package/dist/shared/{unplugin.COlI0dJs.d.mts → unplugin.C_2R8vIk.d.cts} +1 -1
- package/dist/shared/unplugin.CcSfaIVx.mjs +13547 -0
- package/dist/shared/{unplugin.rWOMecQs.d.cts → unplugin.CfXjAV63.d.mts} +1 -1
- package/dist/shared/{unplugin.2qOISpzl.cjs → unplugin.D0tMgokL.cjs} +23 -1
- package/dist/shared/unplugin.DZdsqdQa.cjs +13635 -0
- package/dist/shared/{unplugin.BGog1Bib.d.mts → unplugin.XdPo6azz.d.cts} +3 -0
- package/dist/shared/{unplugin.BGog1Bib.d.cts → unplugin.XdPo6azz.d.mts} +3 -0
- package/dist/shared/{unplugin.DPSQP5XG.mjs → unplugin.eCo7_znv.mjs} +3 -1
- package/dist/vite.cjs +10 -2
- package/dist/vite.mjs +10 -2
- package/dist/webpack.cjs +10 -2
- package/dist/webpack.mjs +10 -2
- package/package.json +12 -11
- package/dist/shared/unplugin.9zs6T4Gf.cjs +0 -5471
- package/dist/shared/unplugin.Cs4H9z9v.mjs +0 -5389
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as NextSafelistMaterializeResult, b as NextSafelistStateLockOptions, A as AtomicWriteOptions } from './unplugin.
|
|
1
|
+
import { a as NextSafelistMaterializeResult, b as NextSafelistStateLockOptions, A as AtomicWriteOptions } from './unplugin.XdPo6azz.mjs';
|
|
2
2
|
|
|
3
3
|
/** Options for one synchronous watcher materialization cycle. */
|
|
4
4
|
interface NextWatcherCycleOptions {
|
|
@@ -317,7 +317,7 @@ export default checksum;
|
|
|
317
317
|
`;
|
|
318
318
|
}
|
|
319
319
|
function isVirtualModule(id) {
|
|
320
|
-
return id === VIRTUAL_MODULE_ID || id === VIRTUAL_CHECKSUM_ID || id === THEME_GROUPS_VIRTUAL_ID || id === MANGLE_RUNTIME_VIRTUAL_ID;
|
|
320
|
+
return id === VIRTUAL_MODULE_ID || id === VIRTUAL_CHECKSUM_ID || id === THEME_GROUPS_VIRTUAL_ID || id === MANGLE_RUNTIME_VIRTUAL_ID || id === UNSERVED_VIRTUAL_ID;
|
|
321
321
|
}
|
|
322
322
|
function resolveVirtualModule(id) {
|
|
323
323
|
if (id === VIRTUAL_MODULE_ID) {
|
|
@@ -332,14 +332,32 @@ function resolveVirtualModule(id) {
|
|
|
332
332
|
if (id === MANGLE_RUNTIME_VIRTUAL_ID) {
|
|
333
333
|
return RESOLVED_MANGLE_RUNTIME_VIRTUAL_ID;
|
|
334
334
|
}
|
|
335
|
+
if (id === UNSERVED_VIRTUAL_ID) {
|
|
336
|
+
return RESOLVED_UNSERVED_VIRTUAL_ID;
|
|
337
|
+
}
|
|
335
338
|
return void 0;
|
|
336
339
|
}
|
|
337
340
|
const MANGLE_RUNTIME_VIRTUAL_ID = "virtual:csszyx/mangle-runtime";
|
|
338
341
|
const RESOLVED_MANGLE_RUNTIME_VIRTUAL_ID = `\0${MANGLE_RUNTIME_VIRTUAL_ID}`;
|
|
342
|
+
const UNSERVED_VIRTUAL_ID = "virtual:csszyx/unserved";
|
|
343
|
+
const RESOLVED_UNSERVED_VIRTUAL_ID = `\0${UNSERVED_VIRTUAL_ID}`;
|
|
339
344
|
const MANGLE_MAP_PLACEHOLDER = "___CSSZYX_MANGLE_MAP___";
|
|
340
345
|
const CENSUS_PLACEHOLDER = "___CSSZYX_CENSUS___";
|
|
341
346
|
const VAR_MANGLE_MAP_PLACEHOLDER = "___CSSZYX_VAR_MANGLE_MAP___";
|
|
342
347
|
const CHECKSUM_PLACEHOLDER = "___CSSZYX_CHECKSUM___";
|
|
348
|
+
const UNSERVED_PLACEHOLDER = "___CSSZYX_UNSERVED___";
|
|
349
|
+
function createUnservedRuntimeModule(classes) {
|
|
350
|
+
return `/**
|
|
351
|
+
* Auto-generated by csszyx: registers the class names this project's Tailwind
|
|
352
|
+
* produces no CSS for.
|
|
353
|
+
*
|
|
354
|
+
* @generated
|
|
355
|
+
*/
|
|
356
|
+
import { registerUnservedClasses } from '@csszyx/runtime';
|
|
357
|
+
|
|
358
|
+
registerUnservedClasses(${classes === void 0 ? UNSERVED_PLACEHOLDER : JSON.stringify(classes)});
|
|
359
|
+
`;
|
|
360
|
+
}
|
|
343
361
|
function createMangleRuntimeModule(globalVarAliasPrefix, exposeDebugGlobal = false) {
|
|
344
362
|
return `/**
|
|
345
363
|
* Auto-generated by csszyx: registers the runtime mangle map from the bundle.
|
|
@@ -492,15 +510,19 @@ exports.MANGLE_MAP_PLACEHOLDER = MANGLE_MAP_PLACEHOLDER;
|
|
|
492
510
|
exports.MANGLE_RUNTIME_VIRTUAL_ID = MANGLE_RUNTIME_VIRTUAL_ID;
|
|
493
511
|
exports.RESOLVED_MANGLE_RUNTIME_VIRTUAL_ID = RESOLVED_MANGLE_RUNTIME_VIRTUAL_ID;
|
|
494
512
|
exports.RESOLVED_THEME_GROUPS_VIRTUAL_ID = RESOLVED_THEME_GROUPS_VIRTUAL_ID;
|
|
513
|
+
exports.RESOLVED_UNSERVED_VIRTUAL_ID = RESOLVED_UNSERVED_VIRTUAL_ID;
|
|
495
514
|
exports.RESOLVED_VIRTUAL_CHECKSUM_ID = RESOLVED_VIRTUAL_CHECKSUM_ID;
|
|
496
515
|
exports.RESOLVED_VIRTUAL_MODULE_ID = RESOLVED_VIRTUAL_MODULE_ID;
|
|
497
516
|
exports.THEME_GROUPS_FILE_MARKER = THEME_GROUPS_FILE_MARKER;
|
|
498
517
|
exports.THEME_GROUPS_VIRTUAL_ID = THEME_GROUPS_VIRTUAL_ID;
|
|
518
|
+
exports.UNSERVED_PLACEHOLDER = UNSERVED_PLACEHOLDER;
|
|
519
|
+
exports.UNSERVED_VIRTUAL_ID = UNSERVED_VIRTUAL_ID;
|
|
499
520
|
exports.VAR_MANGLE_MAP_PLACEHOLDER = VAR_MANGLE_MAP_PLACEHOLDER;
|
|
500
521
|
exports.createChecksumModule = createChecksumModule;
|
|
501
522
|
exports.createMangleMapModule = createMangleMapModule;
|
|
502
523
|
exports.createMangleRuntimeModule = createMangleRuntimeModule;
|
|
503
524
|
exports.createThemeGroupsModule = createThemeGroupsModule;
|
|
525
|
+
exports.createUnservedRuntimeModule = createUnservedRuntimeModule;
|
|
504
526
|
exports.discoverProjectTheme = discoverProjectTheme;
|
|
505
527
|
exports.ensureThemeGroupsFile = ensureThemeGroupsFile;
|
|
506
528
|
exports.hasTokens = hasTokens;
|