Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import fs from "fs";
import path from "path";
import { Store } from "svelte/store";
import Processor from "@modular-css/processor";
import lz from "lznext";
import listen from "./listen.js";
import { prompt } from "./data/prompt.js";
const processor = new Processor({
cwd : "/",
// Custom file resolver to work around gaps in fake node environment
resolvers : [
(src, file) => path.resolve(`/${file}`),
],
});
// iterators are so much fun
const first = (set) => set.values().next().value;
class CssStore extends Store {
constructor(...args) {
super(...args);
import path from "path";
import Processor from "@modular-css/processor";
const processor = new Processor({
cwd : "/",
// Custom file resolver to work around gaps in fake node environment
resolvers : [
(src, file) => path.resolve(`/${file}`),
],
});
export default processor;
import fs from "fs";
import Processor from "@modular-css/processor";
var state = {
files : [],
output : {
css : "",
js : false,
},
processor : new Processor({
resolvers : [
(src, file) => {
file = file.replace(/^\.\.\/|\.\//, "");
return `/${file}`;
},
],
}),
tab : "CSS",
error : false,
};
export function createFile() {
var file = `/${state.files.length + 1}.css`;