kss-modern 1.2.0 → 1.2.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/node/lib/index.mjs
CHANGED
|
@@ -3,8 +3,8 @@ import process from 'node:process';
|
|
|
3
3
|
import { fileURLToPath } from 'node:url';
|
|
4
4
|
import fs from 'fs-extra';
|
|
5
5
|
import { glob } from 'tinyglobby';
|
|
6
|
-
import { l as logger, s as sanitizeSpecialCharacters, I as INSERT_VITE_PUG_TAG_RE, P as PUG_SRC_RE, a as PUG_ERROR_OVERLAY_TAG, c as compileMarkup, p as pugErrorFile, b as slugify, d as sectionSanitizeId, e as stripPugErrorOverlay, f as ensureStartingSlash, g as generateId, r as replaceWrapperContent, h as htmlToSearchText } from '../shared/kss-modern.
|
|
7
|
-
export { i as createLogger } from '../shared/kss-modern.
|
|
6
|
+
import { l as logger, s as sanitizeSpecialCharacters, I as INSERT_VITE_PUG_TAG_RE, P as PUG_SRC_RE, a as PUG_ERROR_OVERLAY_TAG, c as compileMarkup, p as pugErrorFile, b as slugify, d as sectionSanitizeId, e as stripPugErrorOverlay, f as ensureStartingSlash, g as generateId, r as replaceWrapperContent, h as htmlToSearchText } from '../shared/kss-modern.rh78o-vW.mjs';
|
|
7
|
+
export { i as createLogger } from '../shared/kss-modern.rh78o-vW.mjs';
|
|
8
8
|
import htmlLang from '@shikijs/langs/html';
|
|
9
9
|
import markdownLang from '@shikijs/langs/markdown';
|
|
10
10
|
import scssLang from '@shikijs/langs/scss';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { parentPort } from 'node:worker_threads';
|
|
2
|
-
import { c as compileMarkup, p as pugErrorFile } from '../../shared/kss-modern.
|
|
2
|
+
import { c as compileMarkup, p as pugErrorFile } from '../../shared/kss-modern.rh78o-vW.mjs';
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'node:fs/promises';
|
|
5
5
|
import 'node:path';
|
|
@@ -195,7 +195,7 @@ function compilePugFile(pugFilePath, mode, sectionId, extraLocals = {}) {
|
|
|
195
195
|
compileDebug: false
|
|
196
196
|
});
|
|
197
197
|
const dependencies = [path.resolve(pugFilePath), ...pugFn.dependencies.map((dep) => path.resolve(dep))];
|
|
198
|
-
const html = pugFn({ ...extraLocals, useId: createUseId(sectionId) });
|
|
198
|
+
const html = pugFn({ modifierClass: "{{modifier_class}}", ...extraLocals, useId: createUseId(sectionId) });
|
|
199
199
|
return { html, dependencies };
|
|
200
200
|
}
|
|
201
201
|
async function expandVitePugTags(contentDir, mode, html, sectionId) {
|