@animus-ui/unplugin 0.1.37 → 0.1.39
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/README.md +6 -0
- package/dist/{core-C1XXRi0G.cjs → core-AoBR3oar.cjs} +72 -11
- package/dist/{core-D2U3Ub3T.mjs → core-DQF4n755.mjs} +74 -13
- package/dist/core.d.ts +3 -0
- package/dist/core.d.ts.map +1 -1
- package/dist/esbuild.cjs +1 -1
- package/dist/esbuild.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/rollup.cjs +1 -1
- package/dist/rollup.mjs +1 -1
- package/dist/rspack.cjs +1 -1
- package/dist/rspack.mjs +1 -1
- package/dist/webpack.cjs +1 -1
- package/dist/webpack.mjs +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -77,6 +77,12 @@ plugin first to fix it.
|
|
|
77
77
|
entry extraction analyzed. tsconfig `paths` are the alias source.
|
|
78
78
|
- Emits the extracted stylesheet as a real `animus.css` asset (for esbuild:
|
|
79
79
|
written into `outdir`, or beside `outfile`).
|
|
80
|
+
- With `stylesheets: 'split'`, also emits the stylesheet as consecutive
|
|
81
|
+
slices beside `animus.css`, `animus.<slice>.<hash>.css` (foundation,
|
|
82
|
+
components, utilities), and `animus-stylesheets.json`, their names in link
|
|
83
|
+
order. Their bytes in order are `animus.css`'s; a slice an edit leaves
|
|
84
|
+
alone keeps its name. A later build into the same directory removes the
|
|
85
|
+
slices it no longer publishes, and the index when it publishes none.
|
|
80
86
|
- Supplies the `__ANIMUS_DEV__` dev-signal define through each bundler's
|
|
81
87
|
own mechanism.
|
|
82
88
|
- When a font face declares `preload: true`, emits
|
|
@@ -48,6 +48,32 @@ const CSS_ASSET_NAME = "animus.css";
|
|
|
48
48
|
/** Emitted beside the stylesheet when a face preloads: its hrefs are
|
|
49
49
|
* relative to the stylesheet, for `renderFontPreloads`. */
|
|
50
50
|
const FONT_PRELOADS_ASSET_NAME = "animus-font-preloads.json";
|
|
51
|
+
/** With `stylesheets: 'split'`, the stylesheet's files in link order, names
|
|
52
|
+
* relative to `animus.css`, each `animus.<slice>.<hash>.css` beside it. */
|
|
53
|
+
const STYLESHEETS_ASSET_NAME = "animus-stylesheets.json";
|
|
54
|
+
/** A slice file this host publishes, by its name. */
|
|
55
|
+
const SLICE_FILE_RE = new RegExp(`^animus\\.(?:${_animus_ui_extract_pipeline.STYLESHEET_SLICES.join("|")})\\.[0-9a-f]{8}\\.css$`);
|
|
56
|
+
/** The directory a Rollup or Rolldown output writes to, when it names one. */
|
|
57
|
+
function outputDirOf(output) {
|
|
58
|
+
if (output.dir !== void 0) return (0, node_path.resolve)(output.dir);
|
|
59
|
+
return output.file === void 0 ? null : (0, node_path.dirname)((0, node_path.resolve)(output.file));
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Removes from `outDir` the slice files an earlier build published and this
|
|
63
|
+
* one does not, and the slices index when this build publishes none: a
|
|
64
|
+
* reader that finds the index must find this build's slices.
|
|
65
|
+
*/
|
|
66
|
+
function pruneSlices(outDir, kept) {
|
|
67
|
+
if (outDir === null) return;
|
|
68
|
+
let names;
|
|
69
|
+
try {
|
|
70
|
+
names = (0, node_fs.readdirSync)(outDir);
|
|
71
|
+
} catch {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
for (const name of names) if (SLICE_FILE_RE.test(name) && !kept.includes(name)) (0, node_fs.rmSync)((0, node_path.join)(outDir, name), { force: true });
|
|
75
|
+
if (kept.length === 0) (0, node_fs.rmSync)((0, node_path.join)(outDir, STYLESHEETS_ASSET_NAME), { force: true });
|
|
76
|
+
}
|
|
51
77
|
const TRANSFORM_INCLUDE_RE = new RegExp(`\\.(?:${[..._animus_ui_extract_pipeline.ENGINE_TRANSFORM_EXTENSIONS, "cjs"].join("|")})$`);
|
|
52
78
|
const DEV_DEFINE_RE = /\b__ANIMUS_DEV__\b(?!\s*=[^=])/g;
|
|
53
79
|
function createHostState() {
|
|
@@ -325,9 +351,14 @@ const unpluginFactory = (rawOptions, meta) => {
|
|
|
325
351
|
await pipelineStarted;
|
|
326
352
|
await state.pipeline;
|
|
327
353
|
}
|
|
354
|
+
let publishedSlices = [];
|
|
328
355
|
function emitCssAsset(context) {
|
|
356
|
+
publishedSlices = [];
|
|
329
357
|
if (!state.cssText) return;
|
|
330
358
|
const assets = (0, _animus_ui_extract_session.collectSessionAssets)(state.sessionDir);
|
|
359
|
+
const slices = options.stylesheets === "split" ? (0, _animus_ui_extract_pipeline.stylesheetSliceFiles)(state.cssText, "animus") : [];
|
|
360
|
+
publishedSlices = slices.map(({ name }) => name);
|
|
361
|
+
const sliceManifest = slices.length === 0 ? null : JSON.stringify(slices.map(({ name }) => name));
|
|
331
362
|
const preloadManifest = state.fontPreloads.length === 0 ? null : JSON.stringify(state.fontPreloads);
|
|
332
363
|
if (meta.framework === "esbuild") {
|
|
333
364
|
const outDir = esbuildOptions?.outdir ?? (esbuildOptions?.outfile ? (0, node_path.dirname)(esbuildOptions.outfile) : null);
|
|
@@ -343,6 +374,9 @@ const unpluginFactory = (rawOptions, meta) => {
|
|
|
343
374
|
const absOut = (0, node_path.resolve)(base, outDir);
|
|
344
375
|
(0, node_fs.mkdirSync)(absOut, { recursive: true });
|
|
345
376
|
(0, node_fs.writeFileSync)((0, node_path.join)(absOut, CSS_ASSET_NAME), state.cssText);
|
|
377
|
+
for (const { name, css } of slices) (0, node_fs.writeFileSync)((0, node_path.join)(absOut, name), css);
|
|
378
|
+
if (sliceManifest !== null) (0, node_fs.writeFileSync)((0, node_path.join)(absOut, STYLESHEETS_ASSET_NAME), sliceManifest);
|
|
379
|
+
pruneSlices(absOut, publishedSlices);
|
|
346
380
|
const preloadsPath = (0, node_path.join)(absOut, FONT_PRELOADS_ASSET_NAME);
|
|
347
381
|
if (preloadManifest === null) (0, node_fs.rmSync)(preloadsPath, { force: true });
|
|
348
382
|
else (0, node_fs.writeFileSync)(preloadsPath, preloadManifest);
|
|
@@ -357,6 +391,16 @@ const unpluginFactory = (rawOptions, meta) => {
|
|
|
357
391
|
fileName: CSS_ASSET_NAME,
|
|
358
392
|
source: state.cssText
|
|
359
393
|
});
|
|
394
|
+
for (const { name, css } of slices) context.emitFile({
|
|
395
|
+
type: "asset",
|
|
396
|
+
fileName: name,
|
|
397
|
+
source: css
|
|
398
|
+
});
|
|
399
|
+
if (sliceManifest !== null) context.emitFile({
|
|
400
|
+
type: "asset",
|
|
401
|
+
fileName: STYLESHEETS_ASSET_NAME,
|
|
402
|
+
source: sliceManifest
|
|
403
|
+
});
|
|
360
404
|
if (preloadManifest !== null) context.emitFile({
|
|
361
405
|
type: "asset",
|
|
362
406
|
fileName: FONT_PRELOADS_ASSET_NAME,
|
|
@@ -487,14 +531,19 @@ const unpluginFactory = (rawOptions, meta) => {
|
|
|
487
531
|
}
|
|
488
532
|
}
|
|
489
533
|
},
|
|
490
|
-
vite: {
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
534
|
+
vite: {
|
|
535
|
+
configResolved(config) {
|
|
536
|
+
hostExtensions = (0, _animus_ui_extract_pipeline.viteExtensionPolicy)(config.resolve.extensions);
|
|
537
|
+
hostAssets = (0, _animus_ui_extract_pipeline.viteAssetClassification)(config.assetsInclude);
|
|
538
|
+
hostLoadExpander = (0, _animus_ui_extract_pipeline.viteHostExpander)(config);
|
|
539
|
+
hostOutputTargets = () => (0, _animus_ui_extract_pipeline.viteOutputTargets)(config);
|
|
540
|
+
const serving = config.command === "serve" || Boolean(config.build.watch);
|
|
541
|
+
watching = () => serving;
|
|
542
|
+
},
|
|
543
|
+
writeBundle(outputOptions) {
|
|
544
|
+
pruneSlices(outputDirOf(outputOptions), publishedSlices);
|
|
545
|
+
}
|
|
546
|
+
},
|
|
498
547
|
rollup: {
|
|
499
548
|
async buildStart(inputOptions) {
|
|
500
549
|
hostExtensions = (0, _animus_ui_extract_pipeline.rollupExtensionPolicy)((inputOptions?.plugins ?? []).some((plugin) => plugin?.name === "node-resolve"));
|
|
@@ -510,11 +559,19 @@ const unpluginFactory = (rawOptions, meta) => {
|
|
|
510
559
|
},
|
|
511
560
|
renderStart(outputOptions) {
|
|
512
561
|
checkOwnOutput(this, outputOptions);
|
|
562
|
+
},
|
|
563
|
+
writeBundle(outputOptions) {
|
|
564
|
+
pruneSlices(outputDirOf(outputOptions), publishedSlices);
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
rolldown: {
|
|
568
|
+
renderStart(outputOptions) {
|
|
569
|
+
checkOwnOutput(this, outputOptions);
|
|
570
|
+
},
|
|
571
|
+
writeBundle(outputOptions) {
|
|
572
|
+
pruneSlices(outputDirOf(outputOptions), publishedSlices);
|
|
513
573
|
}
|
|
514
574
|
},
|
|
515
|
-
rolldown: { renderStart(outputOptions) {
|
|
516
|
-
checkOwnOutput(this, outputOptions);
|
|
517
|
-
} },
|
|
518
575
|
webpack(compiler) {
|
|
519
576
|
wireWebpackLike(compiler);
|
|
520
577
|
classifyWebpackRedirects(compiler);
|
|
@@ -649,6 +706,10 @@ const unpluginFactory = (rawOptions, meta) => {
|
|
|
649
706
|
const DefinePlugin = compiler.webpack?.DefinePlugin ?? compiler.rspack?.DefinePlugin;
|
|
650
707
|
if (!DefinePlugin) throw new Error("[animus] compiler exposes no DefinePlugin — cannot supply the __ANIMUS_DEV__ dev-signal define");
|
|
651
708
|
new DefinePlugin({ __ANIMUS_DEV__: JSON.stringify(effectiveMode() === "development") }).apply(compiler);
|
|
709
|
+
compiler.hooks.afterEmit?.tap(PLUGIN_NAME, () => {
|
|
710
|
+
const outDir = compiler.options.output?.path;
|
|
711
|
+
if (outDir !== void 0) pruneSlices(outDir, publishedSlices);
|
|
712
|
+
});
|
|
652
713
|
compiler.hooks.done.tap(PLUGIN_NAME, () => {
|
|
653
714
|
disposeSessionDir(state);
|
|
654
715
|
releaseClaim();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AnimusConfigError, DiagnosticFailure, ENGINE_TRANSFORM_EXTENSIONS, analysedOutputs, assertKnownOptionKeys, assertSupportedEngine, builtInAssetClassification, droppedExtensionMessage, esbuildAssetClassification, esbuildExtensionPolicy, esbuildOutputTargets, isEngineTransformExtension, isPathWithinRoot, keepsKitSourceEffects, mergeOutputTargets, noOutputTargets, outputExclusions, resolveMode, rollupExtensionPolicy, rollupOutputTargets, servedFiles, viteAssetClassification, viteExtensionPolicy, viteHostExpander, viteOutputTargets, webpackExtensionPolicy, webpackHostExpander, webpackOutputTargets } from "@animus-ui/extract/pipeline";
|
|
1
|
+
import { AnimusConfigError, DiagnosticFailure, ENGINE_TRANSFORM_EXTENSIONS, STYLESHEET_SLICES, analysedOutputs, assertKnownOptionKeys, assertSupportedEngine, builtInAssetClassification, droppedExtensionMessage, esbuildAssetClassification, esbuildExtensionPolicy, esbuildOutputTargets, isEngineTransformExtension, isPathWithinRoot, keepsKitSourceEffects, mergeOutputTargets, noOutputTargets, outputExclusions, resolveMode, rollupExtensionPolicy, rollupOutputTargets, servedFiles, stylesheetSliceFiles, viteAssetClassification, viteExtensionPolicy, viteHostExpander, viteOutputTargets, webpackExtensionPolicy, webpackHostExpander, webpackOutputTargets } from "@animus-ui/extract/pipeline";
|
|
2
2
|
import { ANIMUS_CSS_MODULE_ID, EnvironmentBuilds, ExtractionSession, SESSION_ASSETS_DIR, TURBOPACK_SYSTEM_PROPS_ID, collectSessionAssets, createBuildId, engineApi, getAnalyzedHashes, getManifestJson, getSessionArtifactDir, getSharedCss, getSharedFontPreloads, getSharedSystemProps } from "@animus-ui/extract/session";
|
|
3
|
-
import { mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
3
|
+
import { mkdirSync, readFileSync, readdirSync, rmSync, writeFileSync } from "node:fs";
|
|
4
4
|
import { dirname, join, relative, resolve } from "node:path";
|
|
5
5
|
//#region src/options.ts
|
|
6
6
|
/** rollup and esbuild expose no root authority a plugin could derive, so
|
|
@@ -48,6 +48,32 @@ const CSS_ASSET_NAME = "animus.css";
|
|
|
48
48
|
/** Emitted beside the stylesheet when a face preloads: its hrefs are
|
|
49
49
|
* relative to the stylesheet, for `renderFontPreloads`. */
|
|
50
50
|
const FONT_PRELOADS_ASSET_NAME = "animus-font-preloads.json";
|
|
51
|
+
/** With `stylesheets: 'split'`, the stylesheet's files in link order, names
|
|
52
|
+
* relative to `animus.css`, each `animus.<slice>.<hash>.css` beside it. */
|
|
53
|
+
const STYLESHEETS_ASSET_NAME = "animus-stylesheets.json";
|
|
54
|
+
/** A slice file this host publishes, by its name. */
|
|
55
|
+
const SLICE_FILE_RE = new RegExp(`^animus\\.(?:${STYLESHEET_SLICES.join("|")})\\.[0-9a-f]{8}\\.css$`);
|
|
56
|
+
/** The directory a Rollup or Rolldown output writes to, when it names one. */
|
|
57
|
+
function outputDirOf(output) {
|
|
58
|
+
if (output.dir !== void 0) return resolve(output.dir);
|
|
59
|
+
return output.file === void 0 ? null : dirname(resolve(output.file));
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Removes from `outDir` the slice files an earlier build published and this
|
|
63
|
+
* one does not, and the slices index when this build publishes none: a
|
|
64
|
+
* reader that finds the index must find this build's slices.
|
|
65
|
+
*/
|
|
66
|
+
function pruneSlices(outDir, kept) {
|
|
67
|
+
if (outDir === null) return;
|
|
68
|
+
let names;
|
|
69
|
+
try {
|
|
70
|
+
names = readdirSync(outDir);
|
|
71
|
+
} catch {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
for (const name of names) if (SLICE_FILE_RE.test(name) && !kept.includes(name)) rmSync(join(outDir, name), { force: true });
|
|
75
|
+
if (kept.length === 0) rmSync(join(outDir, STYLESHEETS_ASSET_NAME), { force: true });
|
|
76
|
+
}
|
|
51
77
|
const TRANSFORM_INCLUDE_RE = new RegExp(`\\.(?:${[...ENGINE_TRANSFORM_EXTENSIONS, "cjs"].join("|")})$`);
|
|
52
78
|
const DEV_DEFINE_RE = /\b__ANIMUS_DEV__\b(?!\s*=[^=])/g;
|
|
53
79
|
function createHostState() {
|
|
@@ -325,9 +351,14 @@ const unpluginFactory = (rawOptions, meta) => {
|
|
|
325
351
|
await pipelineStarted;
|
|
326
352
|
await state.pipeline;
|
|
327
353
|
}
|
|
354
|
+
let publishedSlices = [];
|
|
328
355
|
function emitCssAsset(context) {
|
|
356
|
+
publishedSlices = [];
|
|
329
357
|
if (!state.cssText) return;
|
|
330
358
|
const assets = collectSessionAssets(state.sessionDir);
|
|
359
|
+
const slices = options.stylesheets === "split" ? stylesheetSliceFiles(state.cssText, "animus") : [];
|
|
360
|
+
publishedSlices = slices.map(({ name }) => name);
|
|
361
|
+
const sliceManifest = slices.length === 0 ? null : JSON.stringify(slices.map(({ name }) => name));
|
|
331
362
|
const preloadManifest = state.fontPreloads.length === 0 ? null : JSON.stringify(state.fontPreloads);
|
|
332
363
|
if (meta.framework === "esbuild") {
|
|
333
364
|
const outDir = esbuildOptions?.outdir ?? (esbuildOptions?.outfile ? dirname(esbuildOptions.outfile) : null);
|
|
@@ -343,6 +374,9 @@ const unpluginFactory = (rawOptions, meta) => {
|
|
|
343
374
|
const absOut = resolve(base, outDir);
|
|
344
375
|
mkdirSync(absOut, { recursive: true });
|
|
345
376
|
writeFileSync(join(absOut, CSS_ASSET_NAME), state.cssText);
|
|
377
|
+
for (const { name, css } of slices) writeFileSync(join(absOut, name), css);
|
|
378
|
+
if (sliceManifest !== null) writeFileSync(join(absOut, STYLESHEETS_ASSET_NAME), sliceManifest);
|
|
379
|
+
pruneSlices(absOut, publishedSlices);
|
|
346
380
|
const preloadsPath = join(absOut, FONT_PRELOADS_ASSET_NAME);
|
|
347
381
|
if (preloadManifest === null) rmSync(preloadsPath, { force: true });
|
|
348
382
|
else writeFileSync(preloadsPath, preloadManifest);
|
|
@@ -357,6 +391,16 @@ const unpluginFactory = (rawOptions, meta) => {
|
|
|
357
391
|
fileName: CSS_ASSET_NAME,
|
|
358
392
|
source: state.cssText
|
|
359
393
|
});
|
|
394
|
+
for (const { name, css } of slices) context.emitFile({
|
|
395
|
+
type: "asset",
|
|
396
|
+
fileName: name,
|
|
397
|
+
source: css
|
|
398
|
+
});
|
|
399
|
+
if (sliceManifest !== null) context.emitFile({
|
|
400
|
+
type: "asset",
|
|
401
|
+
fileName: STYLESHEETS_ASSET_NAME,
|
|
402
|
+
source: sliceManifest
|
|
403
|
+
});
|
|
360
404
|
if (preloadManifest !== null) context.emitFile({
|
|
361
405
|
type: "asset",
|
|
362
406
|
fileName: FONT_PRELOADS_ASSET_NAME,
|
|
@@ -487,14 +531,19 @@ const unpluginFactory = (rawOptions, meta) => {
|
|
|
487
531
|
}
|
|
488
532
|
}
|
|
489
533
|
},
|
|
490
|
-
vite: {
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
534
|
+
vite: {
|
|
535
|
+
configResolved(config) {
|
|
536
|
+
hostExtensions = viteExtensionPolicy(config.resolve.extensions);
|
|
537
|
+
hostAssets = viteAssetClassification(config.assetsInclude);
|
|
538
|
+
hostLoadExpander = viteHostExpander(config);
|
|
539
|
+
hostOutputTargets = () => viteOutputTargets(config);
|
|
540
|
+
const serving = config.command === "serve" || Boolean(config.build.watch);
|
|
541
|
+
watching = () => serving;
|
|
542
|
+
},
|
|
543
|
+
writeBundle(outputOptions) {
|
|
544
|
+
pruneSlices(outputDirOf(outputOptions), publishedSlices);
|
|
545
|
+
}
|
|
546
|
+
},
|
|
498
547
|
rollup: {
|
|
499
548
|
async buildStart(inputOptions) {
|
|
500
549
|
hostExtensions = rollupExtensionPolicy((inputOptions?.plugins ?? []).some((plugin) => plugin?.name === "node-resolve"));
|
|
@@ -510,11 +559,19 @@ const unpluginFactory = (rawOptions, meta) => {
|
|
|
510
559
|
},
|
|
511
560
|
renderStart(outputOptions) {
|
|
512
561
|
checkOwnOutput(this, outputOptions);
|
|
562
|
+
},
|
|
563
|
+
writeBundle(outputOptions) {
|
|
564
|
+
pruneSlices(outputDirOf(outputOptions), publishedSlices);
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
rolldown: {
|
|
568
|
+
renderStart(outputOptions) {
|
|
569
|
+
checkOwnOutput(this, outputOptions);
|
|
570
|
+
},
|
|
571
|
+
writeBundle(outputOptions) {
|
|
572
|
+
pruneSlices(outputDirOf(outputOptions), publishedSlices);
|
|
513
573
|
}
|
|
514
574
|
},
|
|
515
|
-
rolldown: { renderStart(outputOptions) {
|
|
516
|
-
checkOwnOutput(this, outputOptions);
|
|
517
|
-
} },
|
|
518
575
|
webpack(compiler) {
|
|
519
576
|
wireWebpackLike(compiler);
|
|
520
577
|
classifyWebpackRedirects(compiler);
|
|
@@ -649,6 +706,10 @@ const unpluginFactory = (rawOptions, meta) => {
|
|
|
649
706
|
const DefinePlugin = compiler.webpack?.DefinePlugin ?? compiler.rspack?.DefinePlugin;
|
|
650
707
|
if (!DefinePlugin) throw new Error("[animus] compiler exposes no DefinePlugin — cannot supply the __ANIMUS_DEV__ dev-signal define");
|
|
651
708
|
new DefinePlugin({ __ANIMUS_DEV__: JSON.stringify(effectiveMode() === "development") }).apply(compiler);
|
|
709
|
+
compiler.hooks.afterEmit?.tap(PLUGIN_NAME, () => {
|
|
710
|
+
const outDir = compiler.options.output?.path;
|
|
711
|
+
if (outDir !== void 0) pruneSlices(outDir, publishedSlices);
|
|
712
|
+
});
|
|
652
713
|
compiler.hooks.done.tap(PLUGIN_NAME, () => {
|
|
653
714
|
disposeSessionDir(state);
|
|
654
715
|
releaseClaim();
|
package/dist/core.d.ts
CHANGED
|
@@ -10,6 +10,9 @@ export declare const CSS_ASSET_NAME = "animus.css";
|
|
|
10
10
|
/** Emitted beside the stylesheet when a face preloads: its hrefs are
|
|
11
11
|
* relative to the stylesheet, for `renderFontPreloads`. */
|
|
12
12
|
export declare const FONT_PRELOADS_ASSET_NAME = "animus-font-preloads.json";
|
|
13
|
+
/** With `stylesheets: 'split'`, the stylesheet's files in link order, names
|
|
14
|
+
* relative to `animus.css`, each `animus.<slice>.<hash>.css` beside it. */
|
|
15
|
+
export declare const STYLESHEETS_ASSET_NAME = "animus-stylesheets.json";
|
|
13
16
|
export interface HostState {
|
|
14
17
|
pipeline: Promise<void> | null;
|
|
15
18
|
mode: AnimusMode | null;
|
package/dist/core.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"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"}
|
package/dist/esbuild.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_core = require("./core-
|
|
5
|
+
const require_core = require("./core-AoBR3oar.cjs");
|
|
6
6
|
//#region src/esbuild.ts
|
|
7
7
|
const animusEsbuild = (0, require("unplugin").createEsbuildPlugin)(require_core.unpluginFactory);
|
|
8
8
|
//#endregion
|
package/dist/esbuild.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_core = require("./core-
|
|
5
|
+
const require_core = require("./core-AoBR3oar.cjs");
|
|
6
6
|
let unplugin = require("unplugin");
|
|
7
7
|
let _animus_ui_extract_pipeline = require("@animus-ui/extract/pipeline");
|
|
8
8
|
//#region src/index.ts
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as unpluginFactory, t as FONT_PRELOADS_ASSET_NAME } from "./core-
|
|
1
|
+
import { n as unpluginFactory, t as FONT_PRELOADS_ASSET_NAME } from "./core-DQF4n755.mjs";
|
|
2
2
|
import { createUnplugin } from "unplugin";
|
|
3
3
|
import { renderFontPreloads } from "@animus-ui/extract/pipeline";
|
|
4
4
|
//#region src/index.ts
|
package/dist/rollup.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_core = require("./core-
|
|
5
|
+
const require_core = require("./core-AoBR3oar.cjs");
|
|
6
6
|
//#region src/rollup.ts
|
|
7
7
|
const animusRollup = (0, require("unplugin").createRollupPlugin)(require_core.unpluginFactory);
|
|
8
8
|
//#endregion
|
package/dist/rollup.mjs
CHANGED
package/dist/rspack.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_core = require("./core-
|
|
5
|
+
const require_core = require("./core-AoBR3oar.cjs");
|
|
6
6
|
//#region src/rspack.ts
|
|
7
7
|
const animusRspack = (0, require("unplugin").createRspackPlugin)(require_core.unpluginFactory);
|
|
8
8
|
//#endregion
|
package/dist/rspack.mjs
CHANGED
package/dist/webpack.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_core = require("./core-
|
|
5
|
+
const require_core = require("./core-AoBR3oar.cjs");
|
|
6
6
|
//#region src/webpack.ts
|
|
7
7
|
const animusWebpack = (0, require("unplugin").createWebpackPlugin)(require_core.unpluginFactory);
|
|
8
8
|
//#endregion
|
package/dist/webpack.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@animus-ui/unplugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.39",
|
|
4
4
|
"description": "Animus transform host for non-plugin bundlers — unplugin-based rollup/esbuild/rspack/webpack entry points over the one extraction session",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"animus",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"compile": "bun check"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@animus-ui/extract": "0.1.
|
|
60
|
+
"@animus-ui/extract": "0.1.39",
|
|
61
61
|
"unplugin": "^3.3.0"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|