svelte-preprocess
Version:
A Svelte preprocessor wrapper with baked-in support for commonly used preprocessors
14 lines (13 loc) • 601 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.replace = void 0;
const replace = (options) => ({
async markup({ content, filename }) {
const { transformer } = await import('../transformers/replace.js');
return transformer({ content, filename, options });
},
});
exports.replace = replace;
// both for backwards compat with old svelte-preprocess versions
// (was only default export once, now is named export because of transpilation causing node not to detect the named exports of 'svelte-preprocess' otherwise)
exports.default = replace;