feat: docker compose maybe
This commit is contained in:
3
node_modules/svelte-preprocess/dist/autoProcess.d.ts
generated
vendored
Normal file
3
node_modules/svelte-preprocess/dist/autoProcess.d.ts
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
import type { AutoPreprocessGroup, AutoPreprocessOptions, Processed, TransformerArgs, TransformerOptions } from './types';
|
||||
export declare const transform: (name: string | null | undefined, options: TransformerOptions, { content, markup, map, filename, attributes }: TransformerArgs<any>) => Promise<Processed>;
|
||||
export declare function sveltePreprocess({ aliases, markupTagName, preserve, sourceMap, ...rest }?: AutoPreprocessOptions): AutoPreprocessGroup;
|
1
node_modules/svelte-preprocess/dist/autoProcess.d.ts.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/autoProcess.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"autoProcess.d.ts","sourceRoot":"","sources":["../src/autoProcess.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EAGrB,SAAS,EACT,eAAe,EACf,kBAAkB,EAEnB,MAAM,SAAS,CAAC;AAQjB,eAAO,MAAM,SAAS,SACd,MAAM,GAAG,IAAI,GAAG,SAAS,WACtB,kBAAkB,kDACqB,gBAAgB,GAAG,CAAC,KACnE,QAAQ,SAAS,CAoBnB,CAAC;AAEF,wBAAgB,gBAAgB,CAC9B,EACE,OAAO,EACP,aAA0B,EAC1B,QAAa,EACb,SAA6D,EAC7D,GAAG,IAAI,EACR,wBAA8B,GAC9B,mBAAmB,CAyNrB"}
|
205
node_modules/svelte-preprocess/dist/autoProcess.js
generated
vendored
Normal file
205
node_modules/svelte-preprocess/dist/autoProcess.js
generated
vendored
Normal file
@ -0,0 +1,205 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.sveltePreprocess = exports.transform = void 0;
|
||||
const utils_1 = require("./modules/utils");
|
||||
const tagInfo_1 = require("./modules/tagInfo");
|
||||
const language_1 = require("./modules/language");
|
||||
const prepareContent_1 = require("./modules/prepareContent");
|
||||
const markup_1 = require("./modules/markup");
|
||||
const TARGET_LANGUAGES = Object.freeze({
|
||||
markup: 'html',
|
||||
style: 'css',
|
||||
script: 'javascript',
|
||||
});
|
||||
const transform = async (name, options, { content, markup, map, filename, attributes }) => {
|
||||
if (name == null || options === false) {
|
||||
return { code: content };
|
||||
}
|
||||
if (typeof options === 'function') {
|
||||
return options({ content, map, filename, attributes });
|
||||
}
|
||||
// todo: maybe add a try-catch here looking for module-not-found errors
|
||||
const { transformer } = await Promise.resolve(`${`./transformers/${name}`}`).then(s => __importStar(require(s)));
|
||||
return transformer({
|
||||
content,
|
||||
markup,
|
||||
filename,
|
||||
map,
|
||||
attributes,
|
||||
options: typeof options === 'boolean' ? null : options,
|
||||
});
|
||||
};
|
||||
exports.transform = transform;
|
||||
function sveltePreprocess(_a) {
|
||||
var _b, _c;
|
||||
var { aliases, markupTagName = 'template', preserve = [], sourceMap = (_c = ((_b = process === null || process === void 0 ? void 0 : process.env) === null || _b === void 0 ? void 0 : _b.NODE_ENV) === 'development') !== null && _c !== void 0 ? _c : false, ...rest } = _a === void 0 ? {} : _a;
|
||||
const transformers = rest;
|
||||
if (aliases === null || aliases === void 0 ? void 0 : aliases.length) {
|
||||
(0, language_1.addLanguageAlias)(aliases);
|
||||
}
|
||||
function resolveLanguageArgs(lang, alias) {
|
||||
const langOpts = transformers[lang];
|
||||
const aliasOpts = alias ? transformers[alias] : undefined;
|
||||
const opts = {};
|
||||
if (typeof langOpts === 'object') {
|
||||
Object.assign(opts, langOpts);
|
||||
}
|
||||
Object.assign(opts, (0, language_1.getLanguageDefaults)(lang), (0, language_1.getLanguageDefaults)(alias));
|
||||
if (lang !== alias && typeof aliasOpts === 'object') {
|
||||
Object.assign(opts, aliasOpts);
|
||||
}
|
||||
if (sourceMap && lang in language_1.SOURCE_MAP_PROP_MAP) {
|
||||
const [path, value] = language_1.SOURCE_MAP_PROP_MAP[lang];
|
||||
(0, utils_1.setProp)(opts, path, value);
|
||||
}
|
||||
return opts;
|
||||
}
|
||||
function getTransformerOptions(lang, alias, { ignoreAliasOverride } = {}) {
|
||||
if (lang == null)
|
||||
return null;
|
||||
const langOpts = transformers[lang];
|
||||
const aliasOpts = alias ? transformers[alias] : undefined;
|
||||
if (!ignoreAliasOverride && typeof aliasOpts === 'function') {
|
||||
return aliasOpts;
|
||||
}
|
||||
if (typeof langOpts === 'function')
|
||||
return langOpts;
|
||||
if (aliasOpts === false || langOpts === false)
|
||||
return false;
|
||||
return resolveLanguageArgs(lang, alias);
|
||||
}
|
||||
const getTransformerTo = (type, targetLanguage) => async (svelteFile) => {
|
||||
let { content, markup, filename, lang, alias, dependencies, attributes } = await (0, tagInfo_1.getTagInfo)(svelteFile);
|
||||
if (lang == null || alias == null) {
|
||||
alias = TARGET_LANGUAGES[type];
|
||||
lang = (0, language_1.getLanguageFromAlias)(alias);
|
||||
}
|
||||
if ((lang && preserve.includes(lang)) || preserve.includes(alias)) {
|
||||
return { code: content };
|
||||
}
|
||||
const transformerOptions = getTransformerOptions(lang, alias);
|
||||
content = (0, prepareContent_1.prepareContent)({
|
||||
options: transformerOptions,
|
||||
content,
|
||||
});
|
||||
if (lang === targetLanguage) {
|
||||
// has override method for alias
|
||||
// example: sugarss override should work apart from postcss
|
||||
if (typeof transformerOptions === 'function' && alias !== lang) {
|
||||
return transformerOptions({ content, filename, attributes });
|
||||
}
|
||||
// otherwise, we're done here
|
||||
return { code: content, dependencies };
|
||||
}
|
||||
const transformed = await (0, exports.transform)(lang, transformerOptions, {
|
||||
content,
|
||||
markup,
|
||||
filename,
|
||||
attributes,
|
||||
});
|
||||
return {
|
||||
...transformed,
|
||||
dependencies: (0, utils_1.concat)(dependencies, transformed.dependencies),
|
||||
};
|
||||
};
|
||||
const scriptTransformer = getTransformerTo('script', 'javascript');
|
||||
const cssTransformer = getTransformerTo('style', 'css');
|
||||
const markupTransformer = getTransformerTo('markup', 'html');
|
||||
const markup = async ({ content, filename }) => {
|
||||
if (transformers.replace) {
|
||||
const transformed = await (0, exports.transform)('replace', transformers.replace, {
|
||||
content,
|
||||
markup: content,
|
||||
filename,
|
||||
});
|
||||
content = transformed.code;
|
||||
}
|
||||
return (0, markup_1.transformMarkup)({ content, filename }, markupTransformer, {
|
||||
// we only pass the markupTagName because the rest of options
|
||||
// is fetched internally by the `markupTransformer`
|
||||
markupTagName,
|
||||
});
|
||||
};
|
||||
const script = async ({ content, attributes, markup: fullMarkup, filename, }) => {
|
||||
const transformResult = await scriptTransformer({
|
||||
content,
|
||||
attributes,
|
||||
markup: fullMarkup,
|
||||
filename,
|
||||
});
|
||||
let { code, map, dependencies, diagnostics } = transformResult;
|
||||
if (transformers.babel) {
|
||||
const transformed = await (0, exports.transform)('babel', getTransformerOptions('babel'), { content: code, markup: fullMarkup, map, filename, attributes });
|
||||
code = transformed.code;
|
||||
map = transformed.map;
|
||||
dependencies = (0, utils_1.concat)(dependencies, transformed.dependencies);
|
||||
diagnostics = (0, utils_1.concat)(diagnostics, transformed.diagnostics);
|
||||
}
|
||||
return { code, map, dependencies, diagnostics };
|
||||
};
|
||||
const style = async ({ content, attributes, markup: fullMarkup, filename, }) => {
|
||||
const transformResult = await cssTransformer({
|
||||
content,
|
||||
attributes,
|
||||
markup: fullMarkup,
|
||||
filename,
|
||||
});
|
||||
let { code, map, dependencies } = transformResult;
|
||||
const hasPostcss = await (0, utils_1.hasDepInstalled)('postcss');
|
||||
// istanbul ignore else
|
||||
if (hasPostcss) {
|
||||
if (transformers.postcss) {
|
||||
const { alias, lang } = (0, language_1.getLanguage)(attributes);
|
||||
const postcssOptions = getTransformerOptions('postcss', (0, language_1.isAliasOf)(alias, lang) ? alias : null,
|
||||
// todo: this seems wrong and ugly
|
||||
{ ignoreAliasOverride: true });
|
||||
const transformed = await (0, exports.transform)('postcss', postcssOptions, {
|
||||
content: code,
|
||||
markup: fullMarkup,
|
||||
map,
|
||||
filename,
|
||||
attributes,
|
||||
});
|
||||
code = transformed.code;
|
||||
map = transformed.map;
|
||||
dependencies = (0, utils_1.concat)(dependencies, transformed.dependencies);
|
||||
}
|
||||
const transformed = await (0, exports.transform)('globalStyle', getTransformerOptions('globalStyle'), { content: code, markup: fullMarkup, map, filename, attributes });
|
||||
code = transformed.code;
|
||||
map = transformed.map;
|
||||
}
|
||||
else if ('global' in attributes) {
|
||||
console.warn(`[svelte-preprocess] 'global' attribute found, but 'postcss' is not installed. 'postcss' is used to walk through the CSS and transform any necessary selector.`);
|
||||
}
|
||||
return { code, map, dependencies };
|
||||
};
|
||||
return {
|
||||
markup,
|
||||
script,
|
||||
style,
|
||||
};
|
||||
}
|
||||
exports.sveltePreprocess = sveltePreprocess;
|
1
node_modules/svelte-preprocess/dist/autoProcess.js.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/autoProcess.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
13
node_modules/svelte-preprocess/dist/index.d.ts
generated
vendored
Normal file
13
node_modules/svelte-preprocess/dist/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
import { sveltePreprocess } from './autoProcess';
|
||||
declare const _default: typeof sveltePreprocess;
|
||||
export default _default;
|
||||
export { default as pug } from './processors/pug';
|
||||
export { default as coffeescript } from './processors/coffeescript';
|
||||
export { default as typescript } from './processors/typescript';
|
||||
export { default as less } from './processors/less';
|
||||
export { default as scss, default as sass } from './processors/scss';
|
||||
export { default as stylus } from './processors/stylus';
|
||||
export { default as postcss } from './processors/postcss';
|
||||
export { default as globalStyle } from './processors/globalStyle';
|
||||
export { default as babel } from './processors/babel';
|
||||
export { default as replace } from './processors/replace';
|
1
node_modules/svelte-preprocess/dist/index.d.ts.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/index.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;;AAMjD,wBAA2D;AAG3D,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC"}
|
33
node_modules/svelte-preprocess/dist/index.js
generated
vendored
Normal file
33
node_modules/svelte-preprocess/dist/index.js
generated
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.replace = exports.babel = exports.globalStyle = exports.postcss = exports.stylus = exports.sass = exports.scss = exports.less = exports.typescript = exports.coffeescript = exports.pug = void 0;
|
||||
const autoProcess_1 = require("./autoProcess");
|
||||
// default auto processor
|
||||
// crazy es6/cjs export mix for backward compatibility
|
||||
// eslint-disable-next-line no-multi-assign
|
||||
exports.default = exports = module.exports = autoProcess_1.sveltePreprocess;
|
||||
// stand-alone processors to be included manually */
|
||||
var pug_1 = require("./processors/pug");
|
||||
Object.defineProperty(exports, "pug", { enumerable: true, get: function () { return __importDefault(pug_1).default; } });
|
||||
var coffeescript_1 = require("./processors/coffeescript");
|
||||
Object.defineProperty(exports, "coffeescript", { enumerable: true, get: function () { return __importDefault(coffeescript_1).default; } });
|
||||
var typescript_1 = require("./processors/typescript");
|
||||
Object.defineProperty(exports, "typescript", { enumerable: true, get: function () { return __importDefault(typescript_1).default; } });
|
||||
var less_1 = require("./processors/less");
|
||||
Object.defineProperty(exports, "less", { enumerable: true, get: function () { return __importDefault(less_1).default; } });
|
||||
var scss_1 = require("./processors/scss");
|
||||
Object.defineProperty(exports, "scss", { enumerable: true, get: function () { return __importDefault(scss_1).default; } });
|
||||
Object.defineProperty(exports, "sass", { enumerable: true, get: function () { return __importDefault(scss_1).default; } });
|
||||
var stylus_1 = require("./processors/stylus");
|
||||
Object.defineProperty(exports, "stylus", { enumerable: true, get: function () { return __importDefault(stylus_1).default; } });
|
||||
var postcss_1 = require("./processors/postcss");
|
||||
Object.defineProperty(exports, "postcss", { enumerable: true, get: function () { return __importDefault(postcss_1).default; } });
|
||||
var globalStyle_1 = require("./processors/globalStyle");
|
||||
Object.defineProperty(exports, "globalStyle", { enumerable: true, get: function () { return __importDefault(globalStyle_1).default; } });
|
||||
var babel_1 = require("./processors/babel");
|
||||
Object.defineProperty(exports, "babel", { enumerable: true, get: function () { return __importDefault(babel_1).default; } });
|
||||
var replace_1 = require("./processors/replace");
|
||||
Object.defineProperty(exports, "replace", { enumerable: true, get: function () { return __importDefault(replace_1).default; } });
|
1
node_modules/svelte-preprocess/dist/index.js.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/index.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,+CAAiD;AAEjD,yBAAyB;AACzB,sDAAsD;AAEtD,2CAA2C;AAC3C,kBAAe,OAAO,GAAG,MAAM,CAAC,OAAO,GAAG,8BAAgB,CAAC;AAE3D,oDAAoD;AACpD,wCAAkD;AAAzC,2GAAA,OAAO,OAAO;AACvB,0DAAoE;AAA3D,6HAAA,OAAO,OAAgB;AAChC,sDAAgE;AAAvD,yHAAA,OAAO,OAAc;AAC9B,0CAAoD;AAA3C,6GAAA,OAAO,OAAQ;AACxB,0CAAqE;AAA5D,6GAAA,OAAO,OAAQ;AAAE,6GAAA,OAAO,OAAQ;AACzC,8CAAwD;AAA/C,iHAAA,OAAO,OAAU;AAC1B,gDAA0D;AAAjD,mHAAA,OAAO,OAAW;AAC3B,wDAAkE;AAAzD,2HAAA,OAAO,OAAe;AAC/B,4CAAsD;AAA7C,+GAAA,OAAO,OAAS;AACzB,gDAA0D;AAAjD,mHAAA,OAAO,OAAW"}
|
2
node_modules/svelte-preprocess/dist/modules/errors.d.ts
generated
vendored
Normal file
2
node_modules/svelte-preprocess/dist/modules/errors.d.ts
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
export declare const throwError: (msg: string) => never;
|
||||
export declare const throwTypescriptError: () => void;
|
1
node_modules/svelte-preprocess/dist/modules/errors.d.ts.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/modules/errors.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/modules/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,QAAS,MAAM,UAErC,CAAC;AAEF,eAAO,MAAM,oBAAoB,YAEhC,CAAC"}
|
11
node_modules/svelte-preprocess/dist/modules/errors.js
generated
vendored
Normal file
11
node_modules/svelte-preprocess/dist/modules/errors.js
generated
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.throwTypescriptError = exports.throwError = void 0;
|
||||
const throwError = (msg) => {
|
||||
throw new Error(`[svelte-preprocess] ${msg}`);
|
||||
};
|
||||
exports.throwError = throwError;
|
||||
const throwTypescriptError = () => {
|
||||
(0, exports.throwError)(`Encountered type error`);
|
||||
};
|
||||
exports.throwTypescriptError = throwTypescriptError;
|
1
node_modules/svelte-preprocess/dist/modules/errors.js.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/modules/errors.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/modules/errors.ts"],"names":[],"mappings":";;;AAAO,MAAM,UAAU,GAAG,CAAC,GAAW,EAAE,EAAE;IACxC,MAAM,IAAI,KAAK,CAAC,uBAAuB,GAAG,EAAE,CAAC,CAAC;AAChD,CAAC,CAAC;AAFW,QAAA,UAAU,cAErB;AAEK,MAAM,oBAAoB,GAAG,GAAG,EAAE;IACvC,IAAA,kBAAU,EAAC,wBAAwB,CAAC,CAAC;AACvC,CAAC,CAAC;AAFW,QAAA,oBAAoB,wBAE/B"}
|
1
node_modules/svelte-preprocess/dist/modules/globalifySelector.d.ts
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/modules/globalifySelector.d.ts
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
export declare function globalifySelector(selector: string): string;
|
1
node_modules/svelte-preprocess/dist/modules/globalifySelector.d.ts.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/modules/globalifySelector.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"globalifySelector.d.ts","sourceRoot":"","sources":["../../src/modules/globalifySelector.ts"],"names":[],"mappings":"AAUA,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,UAyCjD"}
|
42
node_modules/svelte-preprocess/dist/modules/globalifySelector.js
generated
vendored
Normal file
42
node_modules/svelte-preprocess/dist/modules/globalifySelector.js
generated
vendored
Normal file
@ -0,0 +1,42 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.globalifySelector = void 0;
|
||||
/* eslint-disable line-comment-position */
|
||||
/*
|
||||
* Split a selector string (ex: div > foo ~ .potato) by
|
||||
* separators: space, >, +, ~ and comma (maybe not needed)
|
||||
* We use a negative lookbehind assertion to prevent matching
|
||||
* escaped combinators like `\~`.
|
||||
*/
|
||||
// TODO: maybe replace this ugly pattern with an actual selector parser? (https://github.com/leaverou/parsel, 2kb)
|
||||
const combinatorPattern = /(?<!\\)(?:\\\\)*([ >+~,]\s*)(?![^[]+\]|\d)/g;
|
||||
function globalifySelector(selector) {
|
||||
const parts = selector.trim().split(combinatorPattern);
|
||||
const newSelector = [];
|
||||
for (let i = 0; i < parts.length; i++) {
|
||||
const part = parts[i];
|
||||
// if this is a separator or a :global
|
||||
if (i % 2 !== 0 || part === '' || part.startsWith(':global')) {
|
||||
newSelector.push(part);
|
||||
continue;
|
||||
}
|
||||
// :local() with scope
|
||||
if (part.startsWith(':local(')) {
|
||||
newSelector.push(part.replace(/:local\((.+?)\)/g, '$1'));
|
||||
continue;
|
||||
}
|
||||
// :local inlined in a selector
|
||||
if (part.startsWith(':local')) {
|
||||
// + 2 to ignore the :local and space combinator
|
||||
const startIndex = i + 2;
|
||||
let endIndex = parts.findIndex((p, idx) => idx > startIndex && p.startsWith(':global'));
|
||||
endIndex = endIndex === -1 ? parts.length - 1 : endIndex;
|
||||
newSelector.push(...parts.slice(startIndex, endIndex + 1));
|
||||
i = endIndex;
|
||||
continue;
|
||||
}
|
||||
newSelector.push(`:global(${part})`);
|
||||
}
|
||||
return newSelector.join('');
|
||||
}
|
||||
exports.globalifySelector = globalifySelector;
|
1
node_modules/svelte-preprocess/dist/modules/globalifySelector.js.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/modules/globalifySelector.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"globalifySelector.js","sourceRoot":"","sources":["../../src/modules/globalifySelector.ts"],"names":[],"mappings":";;;AAAA,0CAA0C;AAC1C;;;;;GAKG;AACH,kHAAkH;AAClH,MAAM,iBAAiB,GAAG,6CAA6C,CAAC;AAExE,SAAgB,iBAAiB,CAAC,QAAgB;IAChD,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAEvD,MAAM,WAAW,GAAG,EAAE,CAAC;IAEvB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACrC,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;QAEtB,sCAAsC;QACtC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,IAAI,KAAK,EAAE,IAAI,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE;YAC5D,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACvB,SAAS;SACV;QAED,sBAAsB;QACtB,IAAI,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE;YAC9B,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,kBAAkB,EAAE,IAAI,CAAC,CAAC,CAAC;YACzD,SAAS;SACV;QAED,+BAA+B;QAC/B,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE;YAC7B,gDAAgD;YAChD,MAAM,UAAU,GAAG,CAAC,GAAG,CAAC,CAAC;YACzB,IAAI,QAAQ,GAAG,KAAK,CAAC,SAAS,CAC5B,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,GAAG,UAAU,IAAI,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,CACxD,CAAC;YAEF,QAAQ,GAAG,QAAQ,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;YAEzD,WAAW,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,UAAU,EAAE,QAAQ,GAAG,CAAC,CAAC,CAAC,CAAC;YAE3D,CAAC,GAAG,QAAQ,CAAC;YAEb,SAAS;SACV;QAED,WAAW,CAAC,IAAI,CAAC,WAAW,IAAI,GAAG,CAAC,CAAC;KACtC;IAED,OAAO,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC9B,CAAC;AAzCD,8CAyCC"}
|
11
node_modules/svelte-preprocess/dist/modules/language.d.ts
generated
vendored
Normal file
11
node_modules/svelte-preprocess/dist/modules/language.d.ts
generated
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
import type { PreprocessorArgs } from '../types';
|
||||
export declare const ALIAS_MAP: Map<string, string>;
|
||||
export declare const SOURCE_MAP_PROP_MAP: Record<string, [string[], any]>;
|
||||
export declare function getLanguageDefaults(lang?: string | null): null | Record<string, any>;
|
||||
export declare function addLanguageAlias(entries: Array<[string, string]>): void;
|
||||
export declare function getLanguageFromAlias(alias?: string | null): string | null | undefined;
|
||||
export declare function isAliasOf(alias?: string | null, lang?: string | null): boolean;
|
||||
export declare const getLanguage: (attributes: PreprocessorArgs['attributes']) => {
|
||||
lang: string | null | undefined;
|
||||
alias: string | null;
|
||||
};
|
1
node_modules/svelte-preprocess/dist/modules/language.d.ts.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/modules/language.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"language.d.ts","sourceRoot":"","sources":["../../src/modules/language.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAwBjD,eAAO,MAAM,SAAS,qBAUpB,CAAC;AAEH,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE,GAAG,CAAC,CAS/D,CAAC;AAEF,wBAAgB,mBAAmB,CACjC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GACnB,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAY5B;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,QAEhE;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,6BAEzD;AAED,wBAAgB,SAAS,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,WAEpE;AAED,eAAO,MAAM,WAAW,eAAgB,gBAAgB,CAAC,YAAY,CAAC;;;CAyBrE,CAAC"}
|
94
node_modules/svelte-preprocess/dist/modules/language.js
generated
vendored
Normal file
94
node_modules/svelte-preprocess/dist/modules/language.js
generated
vendored
Normal file
@ -0,0 +1,94 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getLanguage = exports.isAliasOf = exports.getLanguageFromAlias = exports.addLanguageAlias = exports.getLanguageDefaults = exports.SOURCE_MAP_PROP_MAP = exports.ALIAS_MAP = void 0;
|
||||
const path_1 = require("path");
|
||||
const utils_1 = require("./utils");
|
||||
const LANGUAGE_DEFAULTS = {
|
||||
sass: {
|
||||
indentedSyntax: true,
|
||||
stripIndent: true,
|
||||
},
|
||||
pug: {
|
||||
stripIndent: true,
|
||||
},
|
||||
coffeescript: {
|
||||
stripIndent: true,
|
||||
},
|
||||
stylus: {
|
||||
stripIndent: true,
|
||||
},
|
||||
// We need to defer this require to make sugarss an optional dependency.
|
||||
sugarss: () => ({
|
||||
stripIndent: true,
|
||||
// eslint-disable-next-line @typescript-eslint/no-require-imports, node/global-require
|
||||
parser: require('sugarss'),
|
||||
}),
|
||||
};
|
||||
exports.ALIAS_MAP = new Map([
|
||||
['pcss', 'css'],
|
||||
['postcss', 'css'],
|
||||
['sugarss', 'css'],
|
||||
['sss', 'css'],
|
||||
['sass', 'scss'],
|
||||
['styl', 'stylus'],
|
||||
['js', 'javascript'],
|
||||
['coffee', 'coffeescript'],
|
||||
['ts', 'typescript'],
|
||||
]);
|
||||
exports.SOURCE_MAP_PROP_MAP = {
|
||||
babel: [['sourceMaps'], true],
|
||||
typescript: [['compilerOptions', 'sourceMap'], true],
|
||||
scss: [['sourceMap'], true],
|
||||
less: [['sourceMap'], {}],
|
||||
stylus: [['sourcemap'], true],
|
||||
postcss: [['map'], true],
|
||||
coffeescript: [['sourceMap'], true],
|
||||
globalStyle: [['sourceMap'], true],
|
||||
};
|
||||
function getLanguageDefaults(lang) {
|
||||
if (lang == null)
|
||||
return null;
|
||||
const defaults = LANGUAGE_DEFAULTS[lang];
|
||||
if (!defaults)
|
||||
return null;
|
||||
if (typeof defaults === 'function') {
|
||||
return defaults();
|
||||
}
|
||||
return defaults;
|
||||
}
|
||||
exports.getLanguageDefaults = getLanguageDefaults;
|
||||
function addLanguageAlias(entries) {
|
||||
return entries.forEach((entry) => exports.ALIAS_MAP.set(...entry));
|
||||
}
|
||||
exports.addLanguageAlias = addLanguageAlias;
|
||||
function getLanguageFromAlias(alias) {
|
||||
var _a;
|
||||
return alias == null ? alias : (_a = exports.ALIAS_MAP.get(alias)) !== null && _a !== void 0 ? _a : alias;
|
||||
}
|
||||
exports.getLanguageFromAlias = getLanguageFromAlias;
|
||||
function isAliasOf(alias, lang) {
|
||||
return lang !== alias && getLanguageFromAlias(alias) === lang;
|
||||
}
|
||||
exports.isAliasOf = isAliasOf;
|
||||
const getLanguage = (attributes) => {
|
||||
let alias = null;
|
||||
if (attributes.lang) {
|
||||
// istanbul ignore if
|
||||
if (typeof attributes.lang !== 'string') {
|
||||
throw new Error('lang attribute must be string');
|
||||
}
|
||||
alias = attributes.lang;
|
||||
}
|
||||
else if (typeof attributes.src === 'string' &&
|
||||
(0, utils_1.isValidLocalPath)(attributes.src)) {
|
||||
const parts = (0, path_1.basename)(attributes.src).split('.');
|
||||
if (parts.length > 1) {
|
||||
alias = parts.pop();
|
||||
}
|
||||
}
|
||||
return {
|
||||
lang: getLanguageFromAlias(alias),
|
||||
alias,
|
||||
};
|
||||
};
|
||||
exports.getLanguage = getLanguage;
|
1
node_modules/svelte-preprocess/dist/modules/language.js.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/modules/language.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"language.js","sourceRoot":"","sources":["../../src/modules/language.ts"],"names":[],"mappings":"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"}
|
11
node_modules/svelte-preprocess/dist/modules/markup.d.ts
generated
vendored
Normal file
11
node_modules/svelte-preprocess/dist/modules/markup.d.ts
generated
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
import type { Transformer, Preprocessor } from '../types';
|
||||
/** Create a tag matching regexp. */
|
||||
export declare function createTagRegex(tagName: string, flags?: string): RegExp;
|
||||
/** Strip script and style tags from markup. */
|
||||
export declare function stripTags(markup: string): string;
|
||||
/** Transform an attribute string into a key-value object */
|
||||
export declare function parseAttributes(attributesStr: string): Record<string, any>;
|
||||
export declare function transformMarkup({ content, filename }: {
|
||||
content: string;
|
||||
filename?: string;
|
||||
}, transformer: Preprocessor | Transformer<unknown>, options?: Record<string, any>): Promise<import("../types").Processed>;
|
1
node_modules/svelte-preprocess/dist/modules/markup.d.ts.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/modules/markup.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"markup.d.ts","sourceRoot":"","sources":["../../src/modules/markup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE1D,oCAAoC;AACpC,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAKtE;AAED,+CAA+C;AAC/C,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAIhD;AAED,4DAA4D;AAC5D,wBAAgB,eAAe,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAY1E;AAED,wBAAsB,eAAe,CACnC,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,EAC7D,WAAW,EAAE,YAAY,GAAG,WAAW,CAAC,OAAO,CAAC,EAChD,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,yCAwClC"}
|
60
node_modules/svelte-preprocess/dist/modules/markup.js
generated
vendored
Normal file
60
node_modules/svelte-preprocess/dist/modules/markup.js
generated
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.transformMarkup = exports.parseAttributes = exports.stripTags = exports.createTagRegex = void 0;
|
||||
/** Create a tag matching regexp. */
|
||||
function createTagRegex(tagName, flags) {
|
||||
return new RegExp(`/<!--[^]*?-->|<${tagName}(\\s[^]*?)?(?:>([^]*?)<\\/${tagName}>|\\/>)`, flags);
|
||||
}
|
||||
exports.createTagRegex = createTagRegex;
|
||||
/** Strip script and style tags from markup. */
|
||||
function stripTags(markup) {
|
||||
return markup
|
||||
.replace(createTagRegex('style', 'gi'), '')
|
||||
.replace(createTagRegex('script', 'gi'), '');
|
||||
}
|
||||
exports.stripTags = stripTags;
|
||||
/** Transform an attribute string into a key-value object */
|
||||
function parseAttributes(attributesStr) {
|
||||
return attributesStr
|
||||
.split(/\s+/)
|
||||
.filter(Boolean)
|
||||
.reduce((acc, attr) => {
|
||||
const [name, value] = attr.split('=');
|
||||
// istanbul ignore next
|
||||
acc[name] = value ? value.replace(/['"]/g, '') : true;
|
||||
return acc;
|
||||
}, {});
|
||||
}
|
||||
exports.parseAttributes = parseAttributes;
|
||||
async function transformMarkup({ content, filename }, transformer, options = {}) {
|
||||
let { markupTagName = 'template' } = options;
|
||||
markupTagName = markupTagName.toLocaleLowerCase();
|
||||
const markupPattern = createTagRegex(markupTagName);
|
||||
const templateMatch = content.match(markupPattern);
|
||||
/** If no <template> was found, run the transformer over the whole thing */
|
||||
if (!templateMatch || templateMatch.index == null) {
|
||||
return transformer({
|
||||
content,
|
||||
markup: content,
|
||||
attributes: {},
|
||||
filename,
|
||||
options,
|
||||
});
|
||||
}
|
||||
const [fullMatch, attributesStr = '', templateCode] = templateMatch;
|
||||
const attributes = parseAttributes(attributesStr);
|
||||
/** Transform the found template code */
|
||||
let { code, map, dependencies } = await transformer({
|
||||
content: templateCode,
|
||||
markup: templateCode,
|
||||
attributes,
|
||||
filename,
|
||||
options,
|
||||
});
|
||||
code =
|
||||
content.slice(0, templateMatch.index) +
|
||||
code +
|
||||
content.slice(templateMatch.index + fullMatch.length);
|
||||
return { code, map, dependencies };
|
||||
}
|
||||
exports.transformMarkup = transformMarkup;
|
1
node_modules/svelte-preprocess/dist/modules/markup.js.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/modules/markup.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"markup.js","sourceRoot":"","sources":["../../src/modules/markup.ts"],"names":[],"mappings":";;;AAEA,oCAAoC;AACpC,SAAgB,cAAc,CAAC,OAAe,EAAE,KAAc;IAC5D,OAAO,IAAI,MAAM,CACf,kBAAkB,OAAO,6BAA6B,OAAO,SAAS,EACtE,KAAK,CACN,CAAC;AACJ,CAAC;AALD,wCAKC;AAED,+CAA+C;AAC/C,SAAgB,SAAS,CAAC,MAAc;IACtC,OAAO,MAAM;SACV,OAAO,CAAC,cAAc,CAAC,OAAO,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC;SAC1C,OAAO,CAAC,cAAc,CAAC,QAAQ,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;AACjD,CAAC;AAJD,8BAIC;AAED,4DAA4D;AAC5D,SAAgB,eAAe,CAAC,aAAqB;IACnD,OAAO,aAAa;SACjB,KAAK,CAAC,KAAK,CAAC;SACZ,MAAM,CAAC,OAAO,CAAC;SACf,MAAM,CAAC,CAAC,GAAqC,EAAE,IAAI,EAAE,EAAE;QACtD,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAEtC,uBAAuB;QACvB,GAAG,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAEtD,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC,CAAC;AACX,CAAC;AAZD,0CAYC;AAEM,KAAK,UAAU,eAAe,CACnC,EAAE,OAAO,EAAE,QAAQ,EAA0C,EAC7D,WAAgD,EAChD,UAA+B,EAAE;IAEjC,IAAI,EAAE,aAAa,GAAG,UAAU,EAAE,GAAG,OAAO,CAAC;IAE7C,aAAa,GAAG,aAAa,CAAC,iBAAiB,EAAE,CAAC;IAElD,MAAM,aAAa,GAAG,cAAc,CAAC,aAAa,CAAC,CAAC;IAEpD,MAAM,aAAa,GAAG,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;IAEnD,2EAA2E;IAC3E,IAAI,CAAC,aAAa,IAAI,aAAa,CAAC,KAAK,IAAI,IAAI,EAAE;QACjD,OAAO,WAAW,CAAC;YACjB,OAAO;YACP,MAAM,EAAE,OAAO;YACf,UAAU,EAAE,EAAE;YACd,QAAQ;YACR,OAAO;SACR,CAAC,CAAC;KACJ;IAED,MAAM,CAAC,SAAS,EAAE,aAAa,GAAG,EAAE,EAAE,YAAY,CAAC,GAAG,aAAa,CAAC;IAEpE,MAAM,UAAU,GAAG,eAAe,CAAC,aAAa,CAAC,CAAC;IAElD,wCAAwC;IACxC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,MAAM,WAAW,CAAC;QAClD,OAAO,EAAE,YAAY;QACrB,MAAM,EAAE,YAAY;QACpB,UAAU;QACV,QAAQ;QACR,OAAO;KACR,CAAC,CAAC;IAEH,IAAI;QACF,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,aAAa,CAAC,KAAK,CAAC;YACrC,IAAI;YACJ,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,KAAK,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;IAExD,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,CAAC;AACrC,CAAC;AA3CD,0CA2CC"}
|
4
node_modules/svelte-preprocess/dist/modules/prepareContent.d.ts
generated
vendored
Normal file
4
node_modules/svelte-preprocess/dist/modules/prepareContent.d.ts
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export declare function prepareContent({ options, content, }: {
|
||||
options: any;
|
||||
content: string;
|
||||
}): string;
|
1
node_modules/svelte-preprocess/dist/modules/prepareContent.d.ts.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/modules/prepareContent.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"prepareContent.d.ts","sourceRoot":"","sources":["../../src/modules/prepareContent.ts"],"names":[],"mappings":"AAGA,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,OAAO,GACR,EAAE;IACD,OAAO,EAAE,GAAG,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB,UAcA"}
|
21
node_modules/svelte-preprocess/dist/modules/prepareContent.js
generated
vendored
Normal file
21
node_modules/svelte-preprocess/dist/modules/prepareContent.js
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.prepareContent = void 0;
|
||||
const strip_indent_1 = __importDefault(require("strip-indent"));
|
||||
// todo: could use magig-string and generate some sourcemaps 🗺
|
||||
function prepareContent({ options, content, }) {
|
||||
if (typeof options !== 'object') {
|
||||
return content;
|
||||
}
|
||||
if (options.stripIndent) {
|
||||
content = (0, strip_indent_1.default)(content);
|
||||
}
|
||||
if (options.prependData) {
|
||||
content = `${options.prependData}\n${content}`;
|
||||
}
|
||||
return content;
|
||||
}
|
||||
exports.prepareContent = prepareContent;
|
1
node_modules/svelte-preprocess/dist/modules/prepareContent.js.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/modules/prepareContent.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"prepareContent.js","sourceRoot":"","sources":["../../src/modules/prepareContent.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAuC;AAEvC,+DAA+D;AAC/D,SAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,OAAO,GAIR;IACC,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;QAC/B,OAAO,OAAO,CAAC;KAChB;IAED,IAAI,OAAO,CAAC,WAAW,EAAE;QACvB,OAAO,GAAG,IAAA,sBAAW,EAAC,OAAO,CAAC,CAAC;KAChC;IAED,IAAI,OAAO,CAAC,WAAW,EAAE;QACvB,OAAO,GAAG,GAAG,OAAO,CAAC,WAAW,KAAK,OAAO,EAAE,CAAC;KAChD;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AApBD,wCAoBC"}
|
10
node_modules/svelte-preprocess/dist/modules/tagInfo.d.ts
generated
vendored
Normal file
10
node_modules/svelte-preprocess/dist/modules/tagInfo.d.ts
generated
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
import type { PreprocessorArgs } from '../types';
|
||||
export declare const getTagInfo: ({ attributes, filename, content, markup, }: PreprocessorArgs) => Promise<{
|
||||
filename: string | undefined;
|
||||
attributes: Record<string, string | boolean>;
|
||||
content: string;
|
||||
lang: string | null | undefined;
|
||||
alias: string | null;
|
||||
dependencies: string[];
|
||||
markup: string;
|
||||
}>;
|
1
node_modules/svelte-preprocess/dist/modules/tagInfo.d.ts.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/modules/tagInfo.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"tagInfo.d.ts","sourceRoot":"","sources":["../../src/modules/tagInfo.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAmBjD,eAAO,MAAM,UAAU,+CAKpB,gBAAgB;;;;;;;;EAqClB,CAAC"}
|
58
node_modules/svelte-preprocess/dist/modules/tagInfo.js
generated
vendored
Normal file
58
node_modules/svelte-preprocess/dist/modules/tagInfo.js
generated
vendored
Normal file
@ -0,0 +1,58 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getTagInfo = void 0;
|
||||
/* eslint-disable node/prefer-promises/fs */
|
||||
const fs_1 = require("fs");
|
||||
const path_1 = require("path");
|
||||
const language_1 = require("./language");
|
||||
const utils_1 = require("./utils");
|
||||
const resolveSrc = (importerFile, srcPath) => (0, path_1.resolve)((0, path_1.dirname)(importerFile), srcPath);
|
||||
const getSrcContent = (file) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
(0, fs_1.readFile)(file, (error, data) => {
|
||||
// istanbul ignore if
|
||||
if (error)
|
||||
reject(error);
|
||||
else
|
||||
resolve(data.toString());
|
||||
});
|
||||
});
|
||||
};
|
||||
async function doesFileExist(file) {
|
||||
return new Promise((resolve) => (0, fs_1.access)(file, 0, (err) => resolve(!err)));
|
||||
}
|
||||
const getTagInfo = async ({ attributes, filename, content, markup, }) => {
|
||||
const dependencies = [];
|
||||
// catches empty content and self-closing tags
|
||||
const isEmptyContent = content == null || content.trim().length === 0;
|
||||
/** only include src file if content of tag is empty */
|
||||
if (attributes.src && isEmptyContent) {
|
||||
// istanbul ignore if
|
||||
if (typeof attributes.src !== 'string') {
|
||||
throw new Error('src attribute must be string');
|
||||
}
|
||||
let path = attributes.src;
|
||||
/** Only try to get local files (path starts with ./ or ../) */
|
||||
if ((0, utils_1.isValidLocalPath)(path) && filename) {
|
||||
path = resolveSrc(filename, path);
|
||||
if (await doesFileExist(path)) {
|
||||
content = await getSrcContent(path);
|
||||
dependencies.push(path);
|
||||
}
|
||||
else {
|
||||
console.warn(`[svelte-preprocess] The file "${path}" was not found.`);
|
||||
}
|
||||
}
|
||||
}
|
||||
const { lang, alias } = (0, language_1.getLanguage)(attributes);
|
||||
return {
|
||||
filename,
|
||||
attributes,
|
||||
content,
|
||||
lang,
|
||||
alias,
|
||||
dependencies,
|
||||
markup,
|
||||
};
|
||||
};
|
||||
exports.getTagInfo = getTagInfo;
|
1
node_modules/svelte-preprocess/dist/modules/tagInfo.js.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/modules/tagInfo.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"tagInfo.js","sourceRoot":"","sources":["../../src/modules/tagInfo.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,2BAAsC;AACtC,+BAAwC;AAExC,yCAAyC;AACzC,mCAA2C;AAI3C,MAAM,UAAU,GAAG,CAAC,YAAoB,EAAE,OAAe,EAAE,EAAE,CAC3D,IAAA,cAAO,EAAC,IAAA,cAAO,EAAC,YAAY,CAAC,EAAE,OAAO,CAAC,CAAC;AAE1C,MAAM,aAAa,GAAG,CAAC,IAAY,EAAmB,EAAE;IACtD,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,IAAA,aAAQ,EAAC,IAAI,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;YAC7B,qBAAqB;YACrB,IAAI,KAAK;gBAAE,MAAM,CAAC,KAAK,CAAC,CAAC;;gBACpB,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QAChC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,KAAK,UAAU,aAAa,CAAC,IAAY;IACvC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,IAAA,WAAM,EAAC,IAAI,EAAE,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAC3E,CAAC;AAEM,MAAM,UAAU,GAAG,KAAK,EAAE,EAC/B,UAAU,EACV,QAAQ,EACR,OAAO,EACP,MAAM,GACW,EAAE,EAAE;IACrB,MAAM,YAAY,GAAG,EAAE,CAAC;IACxB,8CAA8C;IAC9C,MAAM,cAAc,GAAG,OAAO,IAAI,IAAI,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,CAAC;IAEtE,uDAAuD;IACvD,IAAI,UAAU,CAAC,GAAG,IAAI,cAAc,EAAE;QACpC,qBAAqB;QACrB,IAAI,OAAO,UAAU,CAAC,GAAG,KAAK,QAAQ,EAAE;YACtC,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD;QAED,IAAI,IAAI,GAAG,UAAU,CAAC,GAAG,CAAC;QAE1B,+DAA+D;QAC/D,IAAI,IAAA,wBAAgB,EAAC,IAAI,CAAC,IAAI,QAAQ,EAAE;YACtC,IAAI,GAAG,UAAU,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;YAClC,IAAI,MAAM,aAAa,CAAC,IAAI,CAAC,EAAE;gBAC7B,OAAO,GAAG,MAAM,aAAa,CAAC,IAAI,CAAC,CAAC;gBACpC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACzB;iBAAM;gBACL,OAAO,CAAC,IAAI,CAAC,kCAAkC,IAAI,kBAAkB,CAAC,CAAC;aACxE;SACF;KACF;IAED,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,IAAA,sBAAW,EAAC,UAAU,CAAC,CAAC;IAEhD,OAAO;QACL,QAAQ;QACR,UAAU;QACV,OAAO;QACP,IAAI;QACJ,KAAK;QACL,YAAY;QACZ,MAAM;KACP,CAAC;AACJ,CAAC,CAAC;AA1CW,QAAA,UAAU,cA0CrB"}
|
18
node_modules/svelte-preprocess/dist/modules/utils.d.ts
generated
vendored
Normal file
18
node_modules/svelte-preprocess/dist/modules/utils.d.ts
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
export declare function concat(...arrs: any[]): any[];
|
||||
/** Paths used by preprocessors to resolve @imports */
|
||||
export declare function getIncludePaths(fromFilename?: string, base?: string[]): string[];
|
||||
/**
|
||||
* Checks if a package is installed.
|
||||
*
|
||||
* @export
|
||||
* @param {string} dep
|
||||
* @returns boolean
|
||||
*/
|
||||
export declare function hasDepInstalled(dep: string): Promise<boolean>;
|
||||
export declare function isValidLocalPath(path: string): boolean;
|
||||
export declare function findUp({ what, from }: {
|
||||
what: string;
|
||||
from: string;
|
||||
}): string | null;
|
||||
export declare function setProp(obj: any, keyList: string[], value: any): void;
|
||||
export declare const JAVASCRIPT_RESERVED_KEYWORD_SET: Set<string>;
|
1
node_modules/svelte-preprocess/dist/modules/utils.d.ts.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/modules/utils.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/modules/utils.ts"],"names":[],"mappings":"AAGA,wBAAgB,MAAM,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,EAAE,CAM5C;AAED,sDAAsD;AACtD,wBAAgB,eAAe,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,IAAI,GAAE,MAAM,EAAO,YAMzE;AAID;;;;;;GAMG;AACH,wBAAsB,eAAe,CAAC,GAAG,EAAE,MAAM,oBAgBhD;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,WAE5C;AAGD,wBAAgB,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,iBAmBpE;AAGD,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,GAAG,QAc9D;AAED,eAAO,MAAM,+BAA+B,aAiD1C,CAAC"}
|
154
node_modules/svelte-preprocess/dist/modules/utils.js
generated
vendored
Normal file
154
node_modules/svelte-preprocess/dist/modules/utils.js
generated
vendored
Normal file
@ -0,0 +1,154 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.JAVASCRIPT_RESERVED_KEYWORD_SET = exports.setProp = exports.findUp = exports.isValidLocalPath = exports.hasDepInstalled = exports.getIncludePaths = exports.concat = void 0;
|
||||
const fs_1 = require("fs");
|
||||
const path_1 = require("path");
|
||||
function concat(...arrs) {
|
||||
return arrs.reduce((acc, a) => {
|
||||
if (a)
|
||||
return acc.concat(a);
|
||||
return acc;
|
||||
}, []);
|
||||
}
|
||||
exports.concat = concat;
|
||||
/** Paths used by preprocessors to resolve @imports */
|
||||
function getIncludePaths(fromFilename, base = []) {
|
||||
if (fromFilename == null)
|
||||
return [];
|
||||
return [
|
||||
...new Set([...base, 'node_modules', process.cwd(), (0, path_1.dirname)(fromFilename)]),
|
||||
];
|
||||
}
|
||||
exports.getIncludePaths = getIncludePaths;
|
||||
const depCheckCache = {};
|
||||
/**
|
||||
* Checks if a package is installed.
|
||||
*
|
||||
* @export
|
||||
* @param {string} dep
|
||||
* @returns boolean
|
||||
*/
|
||||
async function hasDepInstalled(dep) {
|
||||
if (depCheckCache[dep] != null) {
|
||||
return depCheckCache[dep];
|
||||
}
|
||||
let result = false;
|
||||
try {
|
||||
await Promise.resolve(`${dep}`).then(s => __importStar(require(s)));
|
||||
result = true;
|
||||
}
|
||||
catch (e) {
|
||||
result = false;
|
||||
}
|
||||
return (depCheckCache[dep] = result);
|
||||
}
|
||||
exports.hasDepInstalled = hasDepInstalled;
|
||||
function isValidLocalPath(path) {
|
||||
return path.startsWith('.');
|
||||
}
|
||||
exports.isValidLocalPath = isValidLocalPath;
|
||||
// finds a existing path up the tree
|
||||
function findUp({ what, from }) {
|
||||
const { root, dir } = (0, path_1.parse)(from);
|
||||
let cur = dir;
|
||||
try {
|
||||
while (cur !== root) {
|
||||
const possiblePath = (0, path_1.join)(cur, what);
|
||||
if ((0, fs_1.existsSync)(possiblePath)) {
|
||||
return possiblePath;
|
||||
}
|
||||
cur = (0, path_1.dirname)(cur);
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
exports.findUp = findUp;
|
||||
// set deep property in object
|
||||
function setProp(obj, keyList, value) {
|
||||
let i = 0;
|
||||
for (; i < keyList.length - 1; i++) {
|
||||
const key = keyList[i];
|
||||
if (typeof obj[key] !== 'object') {
|
||||
obj[key] = {};
|
||||
}
|
||||
obj = obj[key];
|
||||
}
|
||||
obj[keyList[i]] = value;
|
||||
}
|
||||
exports.setProp = setProp;
|
||||
exports.JAVASCRIPT_RESERVED_KEYWORD_SET = new Set([
|
||||
'arguments',
|
||||
'await',
|
||||
'break',
|
||||
'case',
|
||||
'catch',
|
||||
'class',
|
||||
'const',
|
||||
'continue',
|
||||
'debugger',
|
||||
'default',
|
||||
'delete',
|
||||
'do',
|
||||
'else',
|
||||
'enum',
|
||||
'eval',
|
||||
'export',
|
||||
'extends',
|
||||
'false',
|
||||
'finally',
|
||||
'for',
|
||||
'function',
|
||||
'if',
|
||||
'implements',
|
||||
'import',
|
||||
'in',
|
||||
'instanceof',
|
||||
'interface',
|
||||
'let',
|
||||
'new',
|
||||
'null',
|
||||
'package',
|
||||
'private',
|
||||
'protected',
|
||||
'public',
|
||||
'return',
|
||||
'static',
|
||||
'super',
|
||||
'switch',
|
||||
'this',
|
||||
'throw',
|
||||
'true',
|
||||
'try',
|
||||
'typeof',
|
||||
'var',
|
||||
'void',
|
||||
'while',
|
||||
'with',
|
||||
'yield',
|
||||
]);
|
1
node_modules/svelte-preprocess/dist/modules/utils.js.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/modules/utils.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/modules/utils.ts"],"names":[],"mappings":"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"}
|
3
node_modules/svelte-preprocess/dist/processors/babel.d.ts
generated
vendored
Normal file
3
node_modules/svelte-preprocess/dist/processors/babel.d.ts
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
import type { PreprocessorGroup, Options } from '../types';
|
||||
declare const _default: (options?: Options.Babel) => PreprocessorGroup;
|
||||
export default _default;
|
1
node_modules/svelte-preprocess/dist/processors/babel.d.ts.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/processors/babel.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"babel.d.ts","sourceRoot":"","sources":["../../src/processors/babel.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;mCAEjC,QAAQ,KAAK,KAAG,iBAAiB;AAA3D,wBAsBG"}
|
45
node_modules/svelte-preprocess/dist/processors/babel.js
generated
vendored
Normal file
45
node_modules/svelte-preprocess/dist/processors/babel.js
generated
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const utils_1 = require("../modules/utils");
|
||||
const tagInfo_1 = require("../modules/tagInfo");
|
||||
const prepareContent_1 = require("../modules/prepareContent");
|
||||
exports.default = (options) => ({
|
||||
async script(svelteFile) {
|
||||
const { transformer } = await Promise.resolve().then(() => __importStar(require('../transformers/babel')));
|
||||
let { content, filename, dependencies, attributes } = await (0, tagInfo_1.getTagInfo)(svelteFile);
|
||||
content = (0, prepareContent_1.prepareContent)({ options, content });
|
||||
const transformed = await transformer({
|
||||
content,
|
||||
filename,
|
||||
attributes,
|
||||
options,
|
||||
});
|
||||
return {
|
||||
...transformed,
|
||||
dependencies: (0, utils_1.concat)(dependencies, transformed.dependencies),
|
||||
};
|
||||
},
|
||||
});
|
1
node_modules/svelte-preprocess/dist/processors/babel.js.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/processors/babel.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"babel.js","sourceRoot":"","sources":["../../src/processors/babel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAA0C;AAC1C,gDAAgD;AAChD,8DAA2D;AAI3D,kBAAe,CAAC,OAAuB,EAAqB,EAAE,CAAC,CAAC;IAC9D,KAAK,CAAC,MAAM,CAAC,UAAU;QACrB,MAAM,EAAE,WAAW,EAAE,GAAG,wDAAa,uBAAuB,GAAC,CAAC;QAE9D,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,GAAG,MAAM,IAAA,oBAAU,EACpE,UAAU,CACX,CAAC;QAEF,OAAO,GAAG,IAAA,+BAAc,EAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;QAE/C,MAAM,WAAW,GAAG,MAAM,WAAW,CAAC;YACpC,OAAO;YACP,QAAQ;YACR,UAAU;YACV,OAAO;SACR,CAAC,CAAC;QAEH,OAAO;YACL,GAAG,WAAW;YACd,YAAY,EAAE,IAAA,cAAM,EAAC,YAAY,EAAE,WAAW,CAAC,YAAY,CAAC;SAC7D,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
3
node_modules/svelte-preprocess/dist/processors/coffeescript.d.ts
generated
vendored
Normal file
3
node_modules/svelte-preprocess/dist/processors/coffeescript.d.ts
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
import type { PreprocessorGroup, Options } from '../types';
|
||||
declare const _default: (options?: Options.Coffeescript) => PreprocessorGroup;
|
||||
export default _default;
|
1
node_modules/svelte-preprocess/dist/processors/coffeescript.d.ts.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/processors/coffeescript.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"coffeescript.d.ts","sourceRoot":"","sources":["../../src/processors/coffeescript.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;mCAEjC,QAAQ,YAAY,KAAG,iBAAiB;AAAlE,wBA+BG"}
|
54
node_modules/svelte-preprocess/dist/processors/coffeescript.js
generated
vendored
Normal file
54
node_modules/svelte-preprocess/dist/processors/coffeescript.js
generated
vendored
Normal file
@ -0,0 +1,54 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const tagInfo_1 = require("../modules/tagInfo");
|
||||
const utils_1 = require("../modules/utils");
|
||||
const prepareContent_1 = require("../modules/prepareContent");
|
||||
exports.default = (options) => ({
|
||||
async script(svelteFile) {
|
||||
const { transformer } = await Promise.resolve().then(() => __importStar(require('../transformers/coffeescript')));
|
||||
let { content, filename, attributes, lang, dependencies } = await (0, tagInfo_1.getTagInfo)(svelteFile);
|
||||
if (lang !== 'coffeescript') {
|
||||
return { code: content };
|
||||
}
|
||||
content = (0, prepareContent_1.prepareContent)({
|
||||
options: {
|
||||
...options,
|
||||
stripIndent: true,
|
||||
},
|
||||
content,
|
||||
});
|
||||
const transformed = await transformer({
|
||||
content,
|
||||
filename,
|
||||
attributes,
|
||||
options,
|
||||
});
|
||||
return {
|
||||
...transformed,
|
||||
dependencies: (0, utils_1.concat)(dependencies, transformed.dependencies),
|
||||
};
|
||||
},
|
||||
});
|
1
node_modules/svelte-preprocess/dist/processors/coffeescript.js.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/processors/coffeescript.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"coffeescript.js","sourceRoot":"","sources":["../../src/processors/coffeescript.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAgD;AAChD,4CAA0C;AAC1C,8DAA2D;AAI3D,kBAAe,CAAC,OAA8B,EAAqB,EAAE,CAAC,CAAC;IACrE,KAAK,CAAC,MAAM,CAAC,UAAU;QACrB,MAAM,EAAE,WAAW,EAAE,GAAG,wDAAa,8BAA8B,GAAC,CAAC;QAErE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,GACvD,MAAM,IAAA,oBAAU,EAAC,UAAU,CAAC,CAAC;QAE/B,IAAI,IAAI,KAAK,cAAc,EAAE;YAC3B,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;SAC1B;QAED,OAAO,GAAG,IAAA,+BAAc,EAAC;YACvB,OAAO,EAAE;gBACP,GAAG,OAAO;gBACV,WAAW,EAAE,IAAI;aAClB;YACD,OAAO;SACR,CAAC,CAAC;QAEH,MAAM,WAAW,GAAG,MAAM,WAAW,CAAC;YACpC,OAAO;YACP,QAAQ;YACR,UAAU;YACV,OAAO;SACR,CAAC,CAAC;QAEH,OAAO;YACL,GAAG,WAAW;YACd,YAAY,EAAE,IAAA,cAAM,EAAC,YAAY,EAAE,WAAW,CAAC,YAAY,CAAC;SAC7D,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
3
node_modules/svelte-preprocess/dist/processors/globalStyle.d.ts
generated
vendored
Normal file
3
node_modules/svelte-preprocess/dist/processors/globalStyle.d.ts
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
import type { PreprocessorGroup } from '../types';
|
||||
declare const _default: () => PreprocessorGroup;
|
||||
export default _default;
|
1
node_modules/svelte-preprocess/dist/processors/globalStyle.d.ts.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/processors/globalStyle.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"globalStyle.d.ts","sourceRoot":"","sources":["../../src/processors/globalStyle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;8BAE/B,iBAAiB;AAApC,wBAYE"}
|
36
node_modules/svelte-preprocess/dist/processors/globalStyle.js
generated
vendored
Normal file
36
node_modules/svelte-preprocess/dist/processors/globalStyle.js
generated
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = () => {
|
||||
return {
|
||||
async style({ content, attributes, filename }) {
|
||||
const { transformer } = await Promise.resolve().then(() => __importStar(require('../transformers/globalStyle')));
|
||||
if (!attributes.global) {
|
||||
return { code: content };
|
||||
}
|
||||
return transformer({ content, filename, attributes });
|
||||
},
|
||||
};
|
||||
};
|
1
node_modules/svelte-preprocess/dist/processors/globalStyle.js.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/processors/globalStyle.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"globalStyle.js","sourceRoot":"","sources":["../../src/processors/globalStyle.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,kBAAe,GAAsB,EAAE;IACrC,OAAO;QACL,KAAK,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE;YAC3C,MAAM,EAAE,WAAW,EAAE,GAAG,wDAAa,6BAA6B,GAAC,CAAC;YAEpE,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE;gBACtB,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;aAC1B;YAED,OAAO,WAAW,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC,CAAC;QACxD,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
|
3
node_modules/svelte-preprocess/dist/processors/less.d.ts
generated
vendored
Normal file
3
node_modules/svelte-preprocess/dist/processors/less.d.ts
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
import type { PreprocessorGroup, Options } from '../types';
|
||||
declare const _default: (options?: Options.Less) => PreprocessorGroup;
|
||||
export default _default;
|
1
node_modules/svelte-preprocess/dist/processors/less.d.ts.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/processors/less.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"less.d.ts","sourceRoot":"","sources":["../../src/processors/less.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;mCAEjC,QAAQ,IAAI,KAAG,iBAAiB;AAA1D,wBAwBG"}
|
48
node_modules/svelte-preprocess/dist/processors/less.js
generated
vendored
Normal file
48
node_modules/svelte-preprocess/dist/processors/less.js
generated
vendored
Normal file
@ -0,0 +1,48 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const tagInfo_1 = require("../modules/tagInfo");
|
||||
const utils_1 = require("../modules/utils");
|
||||
const prepareContent_1 = require("../modules/prepareContent");
|
||||
exports.default = (options) => ({
|
||||
async style(svelteFile) {
|
||||
const { transformer } = await Promise.resolve().then(() => __importStar(require('../transformers/less')));
|
||||
let { content, filename, attributes, lang, dependencies } = await (0, tagInfo_1.getTagInfo)(svelteFile);
|
||||
if (lang !== 'less') {
|
||||
return { code: content };
|
||||
}
|
||||
content = (0, prepareContent_1.prepareContent)({ options, content });
|
||||
const transformed = await transformer({
|
||||
content,
|
||||
filename,
|
||||
attributes,
|
||||
options,
|
||||
});
|
||||
return {
|
||||
...transformed,
|
||||
dependencies: (0, utils_1.concat)(dependencies, transformed.dependencies),
|
||||
};
|
||||
},
|
||||
});
|
1
node_modules/svelte-preprocess/dist/processors/less.js.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/processors/less.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"less.js","sourceRoot":"","sources":["../../src/processors/less.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAgD;AAChD,4CAA0C;AAC1C,8DAA2D;AAI3D,kBAAe,CAAC,OAAsB,EAAqB,EAAE,CAAC,CAAC;IAC7D,KAAK,CAAC,KAAK,CAAC,UAAU;QACpB,MAAM,EAAE,WAAW,EAAE,GAAG,wDAAa,sBAAsB,GAAC,CAAC;QAC7D,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,GACvD,MAAM,IAAA,oBAAU,EAAC,UAAU,CAAC,CAAC;QAE/B,IAAI,IAAI,KAAK,MAAM,EAAE;YACnB,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;SAC1B;QAED,OAAO,GAAG,IAAA,+BAAc,EAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;QAE/C,MAAM,WAAW,GAAG,MAAM,WAAW,CAAC;YACpC,OAAO;YACP,QAAQ;YACR,UAAU;YACV,OAAO;SACR,CAAC,CAAC;QAEH,OAAO;YACL,GAAG,WAAW;YACd,YAAY,EAAE,IAAA,cAAM,EAAC,YAAY,EAAE,WAAW,CAAC,YAAY,CAAC;SAC7D,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
4
node_modules/svelte-preprocess/dist/processors/postcss.d.ts
generated
vendored
Normal file
4
node_modules/svelte-preprocess/dist/processors/postcss.d.ts
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
import type { PreprocessorGroup, Options } from '../types';
|
||||
/** Adapted from https://github.com/TehShrike/svelte-preprocess-postcss */
|
||||
declare const _default: (options?: Options.Postcss) => PreprocessorGroup;
|
||||
export default _default;
|
1
node_modules/svelte-preprocess/dist/processors/postcss.d.ts.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/processors/postcss.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"postcss.d.ts","sourceRoot":"","sources":["../../src/processors/postcss.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAE3D,0EAA0E;mCAChD,QAAQ,OAAO,KAAG,iBAAiB;AAA7D,wBAsBG"}
|
47
node_modules/svelte-preprocess/dist/processors/postcss.js
generated
vendored
Normal file
47
node_modules/svelte-preprocess/dist/processors/postcss.js
generated
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const tagInfo_1 = require("../modules/tagInfo");
|
||||
const utils_1 = require("../modules/utils");
|
||||
const prepareContent_1 = require("../modules/prepareContent");
|
||||
/** Adapted from https://github.com/TehShrike/svelte-preprocess-postcss */
|
||||
exports.default = (options) => ({
|
||||
async style(svelteFile) {
|
||||
const { transformer } = await Promise.resolve().then(() => __importStar(require('../transformers/postcss')));
|
||||
let { content, filename, attributes, dependencies } = await (0, tagInfo_1.getTagInfo)(svelteFile);
|
||||
content = (0, prepareContent_1.prepareContent)({ options, content });
|
||||
/** If manually passed a plugins array, use it as the postcss config */
|
||||
const transformed = await transformer({
|
||||
content,
|
||||
filename,
|
||||
attributes,
|
||||
options,
|
||||
});
|
||||
return {
|
||||
...transformed,
|
||||
dependencies: (0, utils_1.concat)(dependencies, transformed.dependencies),
|
||||
};
|
||||
},
|
||||
});
|
1
node_modules/svelte-preprocess/dist/processors/postcss.js.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/processors/postcss.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"postcss.js","sourceRoot":"","sources":["../../src/processors/postcss.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAgD;AAChD,4CAA0C;AAC1C,8DAA2D;AAI3D,0EAA0E;AAC1E,kBAAe,CAAC,OAAyB,EAAqB,EAAE,CAAC,CAAC;IAChE,KAAK,CAAC,KAAK,CAAC,UAAU;QACpB,MAAM,EAAE,WAAW,EAAE,GAAG,wDAAa,yBAAyB,GAAC,CAAC;QAChE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,MAAM,IAAA,oBAAU,EACpE,UAAU,CACX,CAAC;QAEF,OAAO,GAAG,IAAA,+BAAc,EAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;QAE/C,uEAAuE;QACvE,MAAM,WAAW,GAAG,MAAM,WAAW,CAAC;YACpC,OAAO;YACP,QAAQ;YACR,UAAU;YACV,OAAO;SACR,CAAC,CAAC;QAEH,OAAO;YACL,GAAG,WAAW;YACd,YAAY,EAAE,IAAA,cAAM,EAAC,YAAY,EAAE,WAAW,CAAC,YAAY,CAAC;SAC7D,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
3
node_modules/svelte-preprocess/dist/processors/pug.d.ts
generated
vendored
Normal file
3
node_modules/svelte-preprocess/dist/processors/pug.d.ts
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
import type { Options, PreprocessorGroup } from '../types/index';
|
||||
declare const _default: (options?: Options.Pug) => PreprocessorGroup;
|
||||
export default _default;
|
1
node_modules/svelte-preprocess/dist/processors/pug.d.ts.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/processors/pug.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"pug.d.ts","sourceRoot":"","sources":["../../src/processors/pug.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;mCAEvC,QAAQ,GAAG,KAAG,iBAAiB;AAAzD,wBAcG"}
|
40
node_modules/svelte-preprocess/dist/processors/pug.js
generated
vendored
Normal file
40
node_modules/svelte-preprocess/dist/processors/pug.js
generated
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const prepareContent_1 = require("../modules/prepareContent");
|
||||
const markup_1 = require("../modules/markup");
|
||||
exports.default = (options) => ({
|
||||
async markup({ content, filename }) {
|
||||
const { transformer } = await Promise.resolve().then(() => __importStar(require('../transformers/pug')));
|
||||
content = (0, prepareContent_1.prepareContent)({
|
||||
options: {
|
||||
...options,
|
||||
stripIndent: true,
|
||||
},
|
||||
content,
|
||||
});
|
||||
return (0, markup_1.transformMarkup)({ content, filename }, transformer, options);
|
||||
},
|
||||
});
|
1
node_modules/svelte-preprocess/dist/processors/pug.js.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/processors/pug.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"pug.js","sourceRoot":"","sources":["../../src/processors/pug.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8DAA2D;AAC3D,8CAAoD;AAIpD,kBAAe,CAAC,OAAqB,EAAqB,EAAE,CAAC,CAAC;IAC5D,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE;QAChC,MAAM,EAAE,WAAW,EAAE,GAAG,wDAAa,qBAAqB,GAAC,CAAC;QAE5D,OAAO,GAAG,IAAA,+BAAc,EAAC;YACvB,OAAO,EAAE;gBACP,GAAG,OAAO;gBACV,WAAW,EAAE,IAAI;aAClB;YACD,OAAO;SACR,CAAC,CAAC;QAEH,OAAO,IAAA,wBAAe,EAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;CACF,CAAC,CAAC"}
|
3
node_modules/svelte-preprocess/dist/processors/replace.d.ts
generated
vendored
Normal file
3
node_modules/svelte-preprocess/dist/processors/replace.d.ts
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
import type { PreprocessorGroup, Options } from '../types';
|
||||
declare const _default: (options: Options.Replace) => PreprocessorGroup;
|
||||
export default _default;
|
1
node_modules/svelte-preprocess/dist/processors/replace.d.ts.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/processors/replace.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"replace.d.ts","sourceRoot":"","sources":["../../src/processors/replace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;sDAEhB,iBAAiB;AAA5D,wBAMG"}
|
31
node_modules/svelte-preprocess/dist/processors/replace.js
generated
vendored
Normal file
31
node_modules/svelte-preprocess/dist/processors/replace.js
generated
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = (options) => ({
|
||||
async markup({ content, filename }) {
|
||||
const { transformer } = await Promise.resolve().then(() => __importStar(require('../transformers/replace')));
|
||||
return transformer({ content, filename, options });
|
||||
},
|
||||
});
|
1
node_modules/svelte-preprocess/dist/processors/replace.js.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/processors/replace.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"replace.js","sourceRoot":"","sources":["../../src/processors/replace.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,kBAAe,CAAC,OAAwB,EAAqB,EAAE,CAAC,CAAC;IAC/D,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE;QAChC,MAAM,EAAE,WAAW,EAAE,GAAG,wDAAa,yBAAyB,GAAC,CAAC;QAEhE,OAAO,WAAW,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC;IACrD,CAAC;CACF,CAAC,CAAC"}
|
3
node_modules/svelte-preprocess/dist/processors/scss.d.ts
generated
vendored
Normal file
3
node_modules/svelte-preprocess/dist/processors/scss.d.ts
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
import type { PreprocessorGroup, Options } from '../types';
|
||||
declare const _default: (options?: Options.Sass) => PreprocessorGroup;
|
||||
export default _default;
|
1
node_modules/svelte-preprocess/dist/processors/scss.d.ts.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/processors/scss.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"scss.d.ts","sourceRoot":"","sources":["../../src/processors/scss.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;mCAEjC,QAAQ,IAAI,KAAG,iBAAiB;AAA1D,wBAgCG"}
|
55
node_modules/svelte-preprocess/dist/processors/scss.js
generated
vendored
Normal file
55
node_modules/svelte-preprocess/dist/processors/scss.js
generated
vendored
Normal file
@ -0,0 +1,55 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const tagInfo_1 = require("../modules/tagInfo");
|
||||
const utils_1 = require("../modules/utils");
|
||||
const prepareContent_1 = require("../modules/prepareContent");
|
||||
exports.default = (options) => ({
|
||||
async style(svelteFile) {
|
||||
const { transformer } = await Promise.resolve().then(() => __importStar(require('../transformers/scss')));
|
||||
let { content, filename, attributes, lang, alias, dependencies } = await (0, tagInfo_1.getTagInfo)(svelteFile);
|
||||
if (alias === 'sass') {
|
||||
options = {
|
||||
...options,
|
||||
stripIndent: true,
|
||||
indentedSyntax: true,
|
||||
};
|
||||
}
|
||||
if (lang !== 'scss') {
|
||||
return { code: content };
|
||||
}
|
||||
content = (0, prepareContent_1.prepareContent)({ options, content });
|
||||
const transformed = await transformer({
|
||||
content,
|
||||
filename,
|
||||
attributes,
|
||||
options,
|
||||
});
|
||||
return {
|
||||
...transformed,
|
||||
dependencies: (0, utils_1.concat)(dependencies, transformed.dependencies),
|
||||
};
|
||||
},
|
||||
});
|
1
node_modules/svelte-preprocess/dist/processors/scss.js.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/processors/scss.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"scss.js","sourceRoot":"","sources":["../../src/processors/scss.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAgD;AAChD,4CAA0C;AAC1C,8DAA2D;AAI3D,kBAAe,CAAC,OAAsB,EAAqB,EAAE,CAAC,CAAC;IAC7D,KAAK,CAAC,KAAK,CAAC,UAAU;QACpB,MAAM,EAAE,WAAW,EAAE,GAAG,wDAAa,sBAAsB,GAAC,CAAC;QAC7D,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY,EAAE,GAC9D,MAAM,IAAA,oBAAU,EAAC,UAAU,CAAC,CAAC;QAE/B,IAAI,KAAK,KAAK,MAAM,EAAE;YACpB,OAAO,GAAG;gBACR,GAAG,OAAO;gBACV,WAAW,EAAE,IAAI;gBACjB,cAAc,EAAE,IAAI;aACrB,CAAC;SACH;QAED,IAAI,IAAI,KAAK,MAAM,EAAE;YACnB,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;SAC1B;QAED,OAAO,GAAG,IAAA,+BAAc,EAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;QAE/C,MAAM,WAAW,GAAG,MAAM,WAAW,CAAC;YACpC,OAAO;YACP,QAAQ;YACR,UAAU;YACV,OAAO;SACR,CAAC,CAAC;QAEH,OAAO;YACL,GAAG,WAAW;YACd,YAAY,EAAE,IAAA,cAAM,EAAC,YAAY,EAAE,WAAW,CAAC,YAAY,CAAC;SAC7D,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
3
node_modules/svelte-preprocess/dist/processors/stylus.d.ts
generated
vendored
Normal file
3
node_modules/svelte-preprocess/dist/processors/stylus.d.ts
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
import type { Options, PreprocessorGroup } from '../types';
|
||||
declare const _default: (options?: Options.Stylus) => PreprocessorGroup;
|
||||
export default _default;
|
1
node_modules/svelte-preprocess/dist/processors/stylus.d.ts.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/processors/stylus.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"stylus.d.ts","sourceRoot":"","sources":["../../src/processors/stylus.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;mCAEjC,QAAQ,MAAM,KAAG,iBAAiB;AAA5D,wBA8BG"}
|
54
node_modules/svelte-preprocess/dist/processors/stylus.js
generated
vendored
Normal file
54
node_modules/svelte-preprocess/dist/processors/stylus.js
generated
vendored
Normal file
@ -0,0 +1,54 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const tagInfo_1 = require("../modules/tagInfo");
|
||||
const utils_1 = require("../modules/utils");
|
||||
const prepareContent_1 = require("../modules/prepareContent");
|
||||
exports.default = (options) => ({
|
||||
async style(svelteFile) {
|
||||
const { transformer } = await Promise.resolve().then(() => __importStar(require('../transformers/stylus')));
|
||||
let { content, filename, attributes, lang, dependencies } = await (0, tagInfo_1.getTagInfo)(svelteFile);
|
||||
if (lang !== 'stylus') {
|
||||
return { code: content };
|
||||
}
|
||||
content = (0, prepareContent_1.prepareContent)({
|
||||
options: {
|
||||
...options,
|
||||
stripIndent: true,
|
||||
},
|
||||
content,
|
||||
});
|
||||
const transformed = await transformer({
|
||||
content,
|
||||
filename,
|
||||
attributes,
|
||||
options,
|
||||
});
|
||||
return {
|
||||
...transformed,
|
||||
dependencies: (0, utils_1.concat)(dependencies, transformed.dependencies),
|
||||
};
|
||||
},
|
||||
});
|
1
node_modules/svelte-preprocess/dist/processors/stylus.js.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/processors/stylus.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"stylus.js","sourceRoot":"","sources":["../../src/processors/stylus.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAgD;AAChD,4CAA0C;AAC1C,8DAA2D;AAI3D,kBAAe,CAAC,OAAwB,EAAqB,EAAE,CAAC,CAAC;IAC/D,KAAK,CAAC,KAAK,CAAC,UAAU;QACpB,MAAM,EAAE,WAAW,EAAE,GAAG,wDAAa,wBAAwB,GAAC,CAAC;QAC/D,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,GACvD,MAAM,IAAA,oBAAU,EAAC,UAAU,CAAC,CAAC;QAE/B,IAAI,IAAI,KAAK,QAAQ,EAAE;YACrB,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;SAC1B;QAED,OAAO,GAAG,IAAA,+BAAc,EAAC;YACvB,OAAO,EAAE;gBACP,GAAG,OAAO;gBACV,WAAW,EAAE,IAAI;aAClB;YACD,OAAO;SACR,CAAC,CAAC;QAEH,MAAM,WAAW,GAAG,MAAM,WAAW,CAAC;YACpC,OAAO;YACP,QAAQ;YACR,UAAU;YACV,OAAO;SACR,CAAC,CAAC;QAEH,OAAO;YACL,GAAG,WAAW;YACd,YAAY,EAAE,IAAA,cAAM,EAAC,YAAY,EAAE,WAAW,CAAC,YAAY,CAAC;SAC7D,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
3
node_modules/svelte-preprocess/dist/processors/typescript.d.ts
generated
vendored
Normal file
3
node_modules/svelte-preprocess/dist/processors/typescript.d.ts
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
import type { Options, PreprocessorGroup } from '../types';
|
||||
declare const _default: (options?: Options.Typescript) => PreprocessorGroup;
|
||||
export default _default;
|
1
node_modules/svelte-preprocess/dist/processors/typescript.d.ts.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/processors/typescript.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../src/processors/typescript.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;mCAEjC,QAAQ,UAAU,KAAG,iBAAiB;AAAhE,wBAyBG"}
|
49
node_modules/svelte-preprocess/dist/processors/typescript.js
generated
vendored
Normal file
49
node_modules/svelte-preprocess/dist/processors/typescript.js
generated
vendored
Normal file
@ -0,0 +1,49 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const tagInfo_1 = require("../modules/tagInfo");
|
||||
const utils_1 = require("../modules/utils");
|
||||
const prepareContent_1 = require("../modules/prepareContent");
|
||||
exports.default = (options) => ({
|
||||
async script(svelteFile) {
|
||||
const { transformer } = await Promise.resolve().then(() => __importStar(require('../transformers/typescript')));
|
||||
let { content, markup, filename, attributes, lang, dependencies } = await (0, tagInfo_1.getTagInfo)(svelteFile);
|
||||
if (lang !== 'typescript') {
|
||||
return { code: content };
|
||||
}
|
||||
content = (0, prepareContent_1.prepareContent)({ options, content });
|
||||
const transformed = await transformer({
|
||||
content,
|
||||
markup,
|
||||
filename,
|
||||
attributes,
|
||||
options,
|
||||
});
|
||||
return {
|
||||
...transformed,
|
||||
dependencies: (0, utils_1.concat)(dependencies, transformed.dependencies),
|
||||
};
|
||||
},
|
||||
});
|
1
node_modules/svelte-preprocess/dist/processors/typescript.js.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/processors/typescript.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"typescript.js","sourceRoot":"","sources":["../../src/processors/typescript.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAgD;AAChD,4CAA0C;AAC1C,8DAA2D;AAI3D,kBAAe,CAAC,OAA4B,EAAqB,EAAE,CAAC,CAAC;IACnE,KAAK,CAAC,MAAM,CAAC,UAAU;QACrB,MAAM,EAAE,WAAW,EAAE,GAAG,wDAAa,4BAA4B,GAAC,CAAC;QACnE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,GAC/D,MAAM,IAAA,oBAAU,EAAC,UAAU,CAAC,CAAC;QAE/B,IAAI,IAAI,KAAK,YAAY,EAAE;YACzB,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;SAC1B;QAED,OAAO,GAAG,IAAA,+BAAc,EAAC,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;QAE/C,MAAM,WAAW,GAAG,MAAM,WAAW,CAAC;YACpC,OAAO;YACP,MAAM;YACN,QAAQ;YACR,UAAU;YACV,OAAO;SACR,CAAC,CAAC;QAEH,OAAO;YACL,GAAG,WAAW;YACd,YAAY,EAAE,IAAA,cAAM,EAAC,YAAY,EAAE,WAAW,CAAC,YAAY,CAAC;SAC7D,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
3
node_modules/svelte-preprocess/dist/transformers/babel.d.ts
generated
vendored
Normal file
3
node_modules/svelte-preprocess/dist/transformers/babel.d.ts
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
import type { Transformer, Options } from '../types';
|
||||
declare const transformer: Transformer<Options.Babel>;
|
||||
export { transformer };
|
1
node_modules/svelte-preprocess/dist/transformers/babel.d.ts.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/transformers/babel.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"babel.d.ts","sourceRoot":"","sources":["../../src/transformers/babel.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAErD,QAAA,MAAM,WAAW,EAAE,WAAW,CAAC,OAAO,CAAC,KAAK,CA0C3C,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
38
node_modules/svelte-preprocess/dist/transformers/babel.js
generated
vendored
Normal file
38
node_modules/svelte-preprocess/dist/transformers/babel.js
generated
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.transformer = void 0;
|
||||
const core_1 = require("@babel/core");
|
||||
const transformer = async ({ content, filename, options, map = undefined, }) => {
|
||||
const babelOptions = {
|
||||
...options,
|
||||
inputSourceMap: typeof map === 'string' ? JSON.parse(map) : map !== null && map !== void 0 ? map : undefined,
|
||||
sourceType: 'module',
|
||||
// istanbul ignore next
|
||||
sourceMaps: !!(options === null || options === void 0 ? void 0 : options.sourceMaps),
|
||||
filename,
|
||||
minified: false,
|
||||
ast: false,
|
||||
code: true,
|
||||
caller: {
|
||||
name: 'svelte-preprocess',
|
||||
supportsStaticESM: true,
|
||||
supportsDynamicImport: true,
|
||||
// this isn't supported by Svelte but let it error with a good error on this syntax untouched
|
||||
supportsTopLevelAwait: true,
|
||||
// todo: this can be enabled once all "peer deps" understand this
|
||||
// this syntax is supported since rollup@1.26.0 and webpack@5.0.0-beta.21
|
||||
// supportsExportNamespaceFrom: true,
|
||||
...options === null || options === void 0 ? void 0 : options.caller,
|
||||
},
|
||||
};
|
||||
const result = await (0, core_1.transformAsync)(content, babelOptions);
|
||||
if (result == null) {
|
||||
return { code: content };
|
||||
}
|
||||
const { code, map: sourcemap } = result;
|
||||
return {
|
||||
code: code,
|
||||
map: sourcemap !== null && sourcemap !== void 0 ? sourcemap : undefined,
|
||||
};
|
||||
};
|
||||
exports.transformer = transformer;
|
1
node_modules/svelte-preprocess/dist/transformers/babel.js.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/transformers/babel.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"babel.js","sourceRoot":"","sources":["../../src/transformers/babel.ts"],"names":[],"mappings":";;;AAAA,sCAA6C;AAK7C,MAAM,WAAW,GAA+B,KAAK,EAAE,EACrD,OAAO,EACP,QAAQ,EACR,OAAO,EACP,GAAG,GAAG,SAAS,GAChB,EAAE,EAAE;IACH,MAAM,YAAY,GAAG;QACnB,GAAG,OAAO;QACV,cAAc,EACZ,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,aAAH,GAAG,cAAH,GAAG,GAAI,SAAS;QAC9D,UAAU,EAAE,QAAQ;QACpB,uBAAuB;QACvB,UAAU,EAAE,CAAC,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,CAAA;QACjC,QAAQ;QACR,QAAQ,EAAE,KAAK;QACf,GAAG,EAAE,KAAK;QACV,IAAI,EAAE,IAAI;QACV,MAAM,EAAE;YACN,IAAI,EAAE,mBAAmB;YACzB,iBAAiB,EAAE,IAAI;YACvB,qBAAqB,EAAE,IAAI;YAC3B,6FAA6F;YAC7F,qBAAqB,EAAE,IAAI;YAC3B,iEAAiE;YACjE,yEAAyE;YACzE,qCAAqC;YACrC,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM;SACnB;KACkB,CAAC;IAEtB,MAAM,MAAM,GAAG,MAAM,IAAA,qBAAc,EAAC,OAAO,EAAE,YAAY,CAAC,CAAC;IAE3D,IAAI,MAAM,IAAI,IAAI,EAAE;QAClB,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;KAC1B;IAED,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;IAExC,OAAO;QACL,IAAI,EAAE,IAAc;QACpB,GAAG,EAAE,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,SAAS;KAC5B,CAAC;AACJ,CAAC,CAAC;AAEO,kCAAW"}
|
3
node_modules/svelte-preprocess/dist/transformers/coffeescript.d.ts
generated
vendored
Normal file
3
node_modules/svelte-preprocess/dist/transformers/coffeescript.d.ts
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
import type { Transformer, Options } from '../types';
|
||||
declare const transformer: Transformer<Options.Coffeescript>;
|
||||
export { transformer };
|
1
node_modules/svelte-preprocess/dist/transformers/coffeescript.d.ts.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/transformers/coffeescript.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"coffeescript.d.ts","sourceRoot":"","sources":["../../src/transformers/coffeescript.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAErD,QAAA,MAAM,WAAW,EAAE,WAAW,CAAC,OAAO,CAAC,YAAY,CA0BlD,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
24
node_modules/svelte-preprocess/dist/transformers/coffeescript.js
generated
vendored
Normal file
24
node_modules/svelte-preprocess/dist/transformers/coffeescript.js
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.transformer = void 0;
|
||||
const coffeescript_1 = __importDefault(require("coffeescript"));
|
||||
const transformer = ({ content, filename, options, }) => {
|
||||
const coffeeOptions = {
|
||||
filename,
|
||||
/*
|
||||
* Since `coffeescript` transpiles variables to `var` definitions, it uses a safety mechanism to prevent variables from bleeding to outside contexts. This mechanism consists of wrapping your `coffeescript` code inside an IIFE which, unfortunately, prevents `svelte` from finding your variables. To bypass this behavior, `svelte-preprocess` sets the [`bare` coffeescript compiler option](https://coffeescript.org/#lexical-scope) to `true`.
|
||||
*/
|
||||
bare: true,
|
||||
...options,
|
||||
};
|
||||
if (coffeeOptions.sourceMap) {
|
||||
const { js: code, v3SourceMap } = coffeescript_1.default.compile(content, coffeeOptions);
|
||||
const map = JSON.parse(v3SourceMap);
|
||||
return { code, map };
|
||||
}
|
||||
return { code: coffeescript_1.default.compile(content, coffeeOptions) };
|
||||
};
|
||||
exports.transformer = transformer;
|
1
node_modules/svelte-preprocess/dist/transformers/coffeescript.js.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/transformers/coffeescript.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"coffeescript.js","sourceRoot":"","sources":["../../src/transformers/coffeescript.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAwC;AAIxC,MAAM,WAAW,GAAsC,CAAC,EACtD,OAAO,EACP,QAAQ,EACR,OAAO,GACR,EAAE,EAAE;IACH,MAAM,aAAa,GAAG;QACpB,QAAQ;QACR;;WAEG;QACH,IAAI,EAAE,IAAI;QACV,GAAG,OAAO;KAC2B,CAAC;IAExC,IAAI,aAAa,CAAC,SAAS,EAAE;QAC3B,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,sBAAY,CAAC,OAAO,CACpD,OAAO,EACP,aAAa,CACd,CAAC;QAEF,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAEpC,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC;KACtB;IAED,OAAO,EAAE,IAAI,EAAE,sBAAY,CAAC,OAAO,CAAC,OAAO,EAAE,aAAa,CAAC,EAAE,CAAC;AAChE,CAAC,CAAC;AAEO,kCAAW"}
|
3
node_modules/svelte-preprocess/dist/transformers/globalStyle.d.ts
generated
vendored
Normal file
3
node_modules/svelte-preprocess/dist/transformers/globalStyle.d.ts
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
import type { Transformer, Options } from '../types';
|
||||
declare const transformer: Transformer<Options.GlobalStyle>;
|
||||
export { transformer };
|
1
node_modules/svelte-preprocess/dist/transformers/globalStyle.d.ts.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/transformers/globalStyle.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"globalStyle.d.ts","sourceRoot":"","sources":["../../src/transformers/globalStyle.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AA8DrD,QAAA,MAAM,WAAW,EAAE,WAAW,CAAC,OAAO,CAAC,WAAW,CAmBjD,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
69
node_modules/svelte-preprocess/dist/transformers/globalStyle.js
generated
vendored
Normal file
69
node_modules/svelte-preprocess/dist/transformers/globalStyle.js
generated
vendored
Normal file
@ -0,0 +1,69 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.transformer = void 0;
|
||||
const postcss_1 = __importDefault(require("postcss"));
|
||||
const globalifySelector_1 = require("../modules/globalifySelector");
|
||||
const selectorPattern = /:global(?!\()/;
|
||||
const globalifyRulePlugin = (root) => {
|
||||
root.walkRules(selectorPattern, (rule) => {
|
||||
var _a;
|
||||
const modifiedSelectors = rule.selectors
|
||||
.filter((selector) => selector !== ':global')
|
||||
.map((selector) => {
|
||||
const [beginning, ...rest] = selector.split(selectorPattern);
|
||||
if (rest.length === 0)
|
||||
return beginning;
|
||||
return [beginning, ...rest.map(globalifySelector_1.globalifySelector)]
|
||||
.map((str) => str.trim())
|
||||
.join(' ')
|
||||
.trim();
|
||||
});
|
||||
if (modifiedSelectors.length === 0) {
|
||||
if (((_a = rule.parent) === null || _a === void 0 ? void 0 : _a.type) === 'atrule' && rule.selector === ':global') {
|
||||
rule.replaceWith(...rule.nodes);
|
||||
}
|
||||
else {
|
||||
rule.remove();
|
||||
}
|
||||
return;
|
||||
}
|
||||
rule.replaceWith(rule.clone({
|
||||
selectors: modifiedSelectors,
|
||||
}));
|
||||
});
|
||||
};
|
||||
const globalAttrPlugin = (root) => {
|
||||
root.walkAtRules(/keyframes$/, (atrule) => {
|
||||
if (!atrule.params.startsWith('-global-')) {
|
||||
atrule.replaceWith(atrule.clone({
|
||||
params: `-global-${atrule.params}`,
|
||||
}));
|
||||
}
|
||||
});
|
||||
root.walkRules((rule) => {
|
||||
var _a, _b;
|
||||
// we use endsWith for checking @keyframes and prefixed @-{prefix}-keyframes
|
||||
if ((_b = (_a = rule === null || rule === void 0 ? void 0 : rule.parent) === null || _a === void 0 ? void 0 : _a.name) === null || _b === void 0 ? void 0 : _b.endsWith('keyframes')) {
|
||||
return;
|
||||
}
|
||||
rule.replaceWith(rule.clone({
|
||||
selectors: rule.selectors.map(globalifySelector_1.globalifySelector),
|
||||
}));
|
||||
});
|
||||
};
|
||||
const transformer = async ({ content, filename, options, map, attributes, }) => {
|
||||
const plugins = [
|
||||
globalifyRulePlugin,
|
||||
(attributes === null || attributes === void 0 ? void 0 : attributes.global) && globalAttrPlugin,
|
||||
].filter(Boolean);
|
||||
const { css, map: newMap } = await (0, postcss_1.default)(plugins).process(content, {
|
||||
from: filename,
|
||||
to: filename,
|
||||
map: (options === null || options === void 0 ? void 0 : options.sourceMap) ? { prev: map } : false,
|
||||
});
|
||||
return { code: css, map: newMap };
|
||||
};
|
||||
exports.transformer = transformer;
|
1
node_modules/svelte-preprocess/dist/transformers/globalStyle.js.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/transformers/globalStyle.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"globalStyle.js","sourceRoot":"","sources":["../../src/transformers/globalStyle.ts"],"names":[],"mappings":"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"}
|
3
node_modules/svelte-preprocess/dist/transformers/less.d.ts
generated
vendored
Normal file
3
node_modules/svelte-preprocess/dist/transformers/less.d.ts
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
import type { Transformer, Options } from '../types';
|
||||
declare const transformer: Transformer<Options.Less>;
|
||||
export { transformer };
|
1
node_modules/svelte-preprocess/dist/transformers/less.d.ts.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/transformers/less.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"less.d.ts","sourceRoot":"","sources":["../../src/transformers/less.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAErD,QAAA,MAAM,WAAW,EAAE,WAAW,CAAC,OAAO,CAAC,IAAI,CAyB1C,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
27
node_modules/svelte-preprocess/dist/transformers/less.js
generated
vendored
Normal file
27
node_modules/svelte-preprocess/dist/transformers/less.js
generated
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.transformer = void 0;
|
||||
const path_1 = require("path");
|
||||
const less_1 = __importDefault(require("less"));
|
||||
const utils_1 = require("../modules/utils");
|
||||
const transformer = async ({ content, filename, options = {}, }) => {
|
||||
options = {
|
||||
paths: (0, utils_1.getIncludePaths)(filename, options.paths),
|
||||
...options,
|
||||
};
|
||||
const { css, map, imports } = await less_1.default.render(content, {
|
||||
sourceMap: {},
|
||||
filename,
|
||||
...options,
|
||||
});
|
||||
const dependencies = imports.map((path) => (0, path_1.isAbsolute)(path) ? path : (0, path_1.join)(process.cwd(), path));
|
||||
return {
|
||||
code: css,
|
||||
map,
|
||||
dependencies,
|
||||
};
|
||||
};
|
||||
exports.transformer = transformer;
|
1
node_modules/svelte-preprocess/dist/transformers/less.js.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/transformers/less.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"less.js","sourceRoot":"","sources":["../../src/transformers/less.ts"],"names":[],"mappings":";;;;;;AAAA,+BAAwC;AAExC,gDAAwB;AAExB,4CAAmD;AAInD,MAAM,WAAW,GAA8B,KAAK,EAAE,EACpD,OAAO,EACP,QAAQ,EACR,OAAO,GAAG,EAAE,GACb,EAAE,EAAE;IACH,OAAO,GAAG;QACR,KAAK,EAAE,IAAA,uBAAe,EAAC,QAAQ,EAAE,OAAO,CAAC,KAAK,CAAC;QAC/C,GAAG,OAAO;KACX,CAAC;IAEF,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,MAAM,cAAI,CAAC,MAAM,CAAC,OAAO,EAAE;QACvD,SAAS,EAAE,EAAE;QACb,QAAQ;QACR,GAAG,OAAO;KACX,CAAC,CAAC;IAEH,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,IAAY,EAAE,EAAE,CAChD,IAAA,iBAAU,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAA,WAAI,EAAC,OAAO,CAAC,GAAG,EAAE,EAAE,IAAI,CAAC,CACpD,CAAC;IAEF,OAAO;QACL,IAAI,EAAE,GAAG;QACT,GAAG;QACH,YAAY;KACb,CAAC;AACJ,CAAC,CAAC;AAEO,kCAAW"}
|
4
node_modules/svelte-preprocess/dist/transformers/postcss.d.ts
generated
vendored
Normal file
4
node_modules/svelte-preprocess/dist/transformers/postcss.d.ts
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
import type { Transformer, Options } from '../types';
|
||||
/** Adapted from https://github.com/TehShrike/svelte-preprocess-postcss */
|
||||
declare const transformer: Transformer<Options.Postcss>;
|
||||
export { transformer };
|
1
node_modules/svelte-preprocess/dist/transformers/postcss.d.ts.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/transformers/postcss.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"postcss.d.ts","sourceRoot":"","sources":["../../src/transformers/postcss.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AA2DrD,0EAA0E;AAC1E,QAAA,MAAM,WAAW,EAAE,WAAW,CAAC,OAAO,CAAC,OAAO,CA2B7C,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
84
node_modules/svelte-preprocess/dist/transformers/postcss.js
generated
vendored
Normal file
84
node_modules/svelte-preprocess/dist/transformers/postcss.js
generated
vendored
Normal file
@ -0,0 +1,84 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.transformer = void 0;
|
||||
const postcss_1 = __importDefault(require("postcss"));
|
||||
async function process({ options: { plugins = [], parser, syntax } = {}, content, filename, sourceMap, }) {
|
||||
const { css, map, messages } = await (0, postcss_1.default)(plugins).process(content, {
|
||||
from: filename,
|
||||
to: filename,
|
||||
map: { prev: sourceMap, inline: false },
|
||||
parser,
|
||||
syntax,
|
||||
});
|
||||
const dependencies = messages.reduce((acc, msg) => {
|
||||
// istanbul ignore if
|
||||
if (msg.type !== 'dependency')
|
||||
return acc;
|
||||
acc.push(msg.file);
|
||||
return acc;
|
||||
}, []);
|
||||
return { code: css, map, dependencies };
|
||||
}
|
||||
async function getConfigFromFile(options) {
|
||||
try {
|
||||
/** If not, look for a postcss config file */
|
||||
const { default: postcssLoadConfig } = await Promise.resolve().then(() => __importStar(require(`postcss-load-config`)));
|
||||
const loadedConfig = await postcssLoadConfig(options, options === null || options === void 0 ? void 0 : options.configFilePath);
|
||||
return {
|
||||
error: null,
|
||||
config: {
|
||||
plugins: loadedConfig.plugins,
|
||||
// `postcss-load-config` puts all other props in a `options` object
|
||||
...loadedConfig.options,
|
||||
},
|
||||
};
|
||||
}
|
||||
catch (e) {
|
||||
return {
|
||||
config: null,
|
||||
error: e,
|
||||
};
|
||||
}
|
||||
}
|
||||
/** Adapted from https://github.com/TehShrike/svelte-preprocess-postcss */
|
||||
const transformer = async ({ content, filename, options = {}, map, }) => {
|
||||
let fileConfig = null;
|
||||
if (!options.plugins) {
|
||||
fileConfig = await getConfigFromFile(options);
|
||||
options = { ...options, ...fileConfig.config };
|
||||
}
|
||||
if (options.plugins || options.syntax || options.parser) {
|
||||
return process({ options, content, filename, sourceMap: map });
|
||||
}
|
||||
if ((fileConfig === null || fileConfig === void 0 ? void 0 : fileConfig.error) != null) {
|
||||
console.error(`[svelte-preprocess] PostCSS configuration was not passed or is invalid. If you expect to load it from a file make sure to install "postcss-load-config" and try again.\n\n${fileConfig.error}`);
|
||||
}
|
||||
return { code: content, map, dependencies: [] };
|
||||
};
|
||||
exports.transformer = transformer;
|
1
node_modules/svelte-preprocess/dist/transformers/postcss.js.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/transformers/postcss.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"postcss.js","sourceRoot":"","sources":["../../src/transformers/postcss.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sDAA8B;AAI9B,KAAK,UAAU,OAAO,CAAC,EACrB,OAAO,EAAE,EAAE,OAAO,GAAG,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,EAC9C,OAAO,EACP,QAAQ,EACR,SAAS,GAMV;IACC,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,MAAM,IAAA,iBAAO,EAAC,OAAO,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE;QACrE,IAAI,EAAE,QAAQ;QACd,EAAE,EAAE,QAAQ;QACZ,GAAG,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE;QACvC,MAAM;QACN,MAAM;KACP,CAAC,CAAC;IAEH,MAAM,YAAY,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;QAChD,qBAAqB;QACrB,IAAI,GAAG,CAAC,IAAI,KAAK,YAAY;YAAE,OAAO,GAAG,CAAC;QAC1C,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAEnB,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAc,CAAC,CAAC;IAEnB,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,YAAY,EAAE,CAAC;AAC1C,CAAC;AAED,KAAK,UAAU,iBAAiB,CAC9B,OAAwB;IAExB,IAAI;QACF,6CAA6C;QAC7C,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,GAAG,wDAAa,qBAAqB,GAAC,CAAC;QAC3E,MAAM,YAAY,GAAG,MAAM,iBAAiB,CAC1C,OAAO,EACP,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,CACxB,CAAC;QAEF,OAAO;YACL,KAAK,EAAE,IAAI;YACX,MAAM,EAAE;gBACN,OAAO,EAAE,YAAY,CAAC,OAAO;gBAC7B,mEAAmE;gBACnE,GAAG,YAAY,CAAC,OAAO;aACxB;SACF,CAAC;KACH;IAAC,OAAO,CAAM,EAAE;QACf,OAAO;YACL,MAAM,EAAE,IAAI;YACZ,KAAK,EAAE,CAAC;SACT,CAAC;KACH;AACH,CAAC;AAED,0EAA0E;AAC1E,MAAM,WAAW,GAAiC,KAAK,EAAE,EACvD,OAAO,EACP,QAAQ,EACR,OAAO,GAAG,EAAE,EACZ,GAAG,GACJ,EAAE,EAAE;IACH,IAAI,UAAU,GAGH,IAAI,CAAC;IAEhB,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;QACpB,UAAU,GAAG,MAAM,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC9C,OAAO,GAAG,EAAE,GAAG,OAAO,EAAE,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC;KAChD;IAED,IAAI,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,MAAM,EAAE;QACvD,OAAO,OAAO,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,CAAC;KAChE;IAED,IAAI,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,KAAI,IAAI,EAAE;QAC7B,OAAO,CAAC,KAAK,CACX,6KAA6K,UAAU,CAAC,KAAK,EAAE,CAChM,CAAC;KACH;IAED,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,EAAW,EAAE,CAAC;AAC3D,CAAC,CAAC;AAEO,kCAAW"}
|
3
node_modules/svelte-preprocess/dist/transformers/pug.d.ts
generated
vendored
Normal file
3
node_modules/svelte-preprocess/dist/transformers/pug.d.ts
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
import type { Transformer, Options } from '../types';
|
||||
declare const transformer: Transformer<Options.Pug>;
|
||||
export { transformer };
|
1
node_modules/svelte-preprocess/dist/transformers/pug.d.ts.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/transformers/pug.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"pug.d.ts","sourceRoot":"","sources":["../../src/transformers/pug.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAoDrD,QAAA,MAAM,WAAW,EAAE,WAAW,CAAC,OAAO,CAAC,GAAG,CAuCzC,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
83
node_modules/svelte-preprocess/dist/transformers/pug.js
generated
vendored
Normal file
83
node_modules/svelte-preprocess/dist/transformers/pug.js
generated
vendored
Normal file
@ -0,0 +1,83 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.transformer = void 0;
|
||||
const detect_indent_1 = __importDefault(require("detect-indent"));
|
||||
const pug_1 = __importDefault(require("pug"));
|
||||
// Mixins to use svelte template features
|
||||
const GET_MIXINS = (indentationType) => `mixin if(condition)
|
||||
%_| {#if !{condition}}
|
||||
%_block
|
||||
%_| {/if}
|
||||
|
||||
mixin else
|
||||
%_| {:else}
|
||||
%_block
|
||||
|
||||
mixin elseif(condition)
|
||||
%_| {:else if !{condition}}
|
||||
%_block
|
||||
|
||||
mixin key(expression)
|
||||
%_| {#key !{expression}}
|
||||
%_block
|
||||
%_| {/key}
|
||||
|
||||
mixin each(loop)
|
||||
%_| {#each !{loop}}
|
||||
%_block
|
||||
%_| {/each}
|
||||
|
||||
mixin await(promise)
|
||||
%_| {#await !{promise}}
|
||||
%_block
|
||||
%_| {/await}
|
||||
|
||||
mixin then(answer)
|
||||
%_| {:then !{answer}}
|
||||
%_block
|
||||
|
||||
mixin catch(error)
|
||||
%_| {:catch !{error}}
|
||||
%_block
|
||||
|
||||
mixin html(expression)
|
||||
%_| {@html !{expression}}
|
||||
|
||||
mixin const(expression)
|
||||
%_| {@const !{expression}}
|
||||
|
||||
mixin debug(variables)
|
||||
%_| {@debug !{variables}}`.replace(/%_/g, indentationType === 'tab' ? '\t' : ' ');
|
||||
const transformer = async ({ content, filename, options, }) => {
|
||||
var _a;
|
||||
const pugOptions = {
|
||||
// needed so pug doesn't mirror boolean attributes
|
||||
// and prop spreading expressions.
|
||||
doctype: 'html',
|
||||
compileDebug: false,
|
||||
filename,
|
||||
...options,
|
||||
};
|
||||
const { type: indentationType } = (0, detect_indent_1.default)(content);
|
||||
const input = `${GET_MIXINS(indentationType !== null && indentationType !== void 0 ? indentationType : 'space')}\n${content}`;
|
||||
const compiled = pug_1.default.compile(input, pugOptions);
|
||||
let code;
|
||||
try {
|
||||
code = compiled();
|
||||
}
|
||||
catch (e) {
|
||||
// The error message does not have much context, add more of it
|
||||
if (e instanceof Error) {
|
||||
e.message = `[svelte-preprocess] Pug error while preprocessing ${filename}\n\n${e.message}`;
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
return {
|
||||
code,
|
||||
dependencies: (_a = compiled.dependencies) !== null && _a !== void 0 ? _a : [],
|
||||
};
|
||||
};
|
||||
exports.transformer = transformer;
|
1
node_modules/svelte-preprocess/dist/transformers/pug.js.map
generated
vendored
Normal file
1
node_modules/svelte-preprocess/dist/transformers/pug.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"pug.js","sourceRoot":"","sources":["../../src/transformers/pug.ts"],"names":[],"mappings":";;;;;;AAAA,kEAAyC;AACzC,8CAAsB;AAItB,yCAAyC;AACzC,MAAM,UAAU,GAAG,CAAC,cAA+B,EAAE,EAAE,CACrD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BA2CwB,CAAC,OAAO,CAC9B,KAAK,EACL,cAAc,KAAK,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CACvC,CAAC;AAEJ,MAAM,WAAW,GAA6B,KAAK,EAAE,EACnD,OAAO,EACP,QAAQ,EACR,OAAO,GACR,EAAE,EAAE;;IACH,MAAM,UAAU,GAAG;QACjB,kDAAkD;QAClD,kCAAkC;QAClC,OAAO,EAAE,MAAM;QACf,YAAY,EAAE,KAAK;QACnB,QAAQ;QACR,GAAG,OAAO;KACX,CAAC;IAEF,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,GAAG,IAAA,uBAAY,EAAC,OAAO,CAAC,CAAC;IACvD,MAAM,KAAK,GAAG,GAAG,UAAU,CAAC,cAAc,aAAd,cAAc,cAAd,cAAc,GAAI,OAAO,CAAC,KAAK,OAAO,EAAE,CAAC;IACrE,MAAM,QAAQ,GAAG,aAAG,CAAC,OAAO,CAC1B,KAAK,EACL,UAAU,CAE0C,CAAC;IAEvD,IAAI,IAAY,CAAC;IAEjB,IAAI;QACF,IAAI,GAAG,QAAQ,EAAE,CAAC;KACnB;IAAC,OAAO,CAAC,EAAE;QACV,+DAA+D;QAC/D,IAAI,CAAC,YAAY,KAAK,EAAE;YACtB,CAAC,CAAC,OAAO,GAAG,qDAAqD,QAAQ,OAAO,CAAC,CAAC,OAAO,EAAE,CAAC;SAC7F;QAED,MAAM,CAAC,CAAC;KACT;IAED,OAAO;QACL,IAAI;QACJ,YAAY,EAAE,MAAA,QAAQ,CAAC,YAAY,mCAAI,EAAE;KAC1C,CAAC;AACJ,CAAC,CAAC;AAEO,kCAAW"}
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user