diff --git a/src/generators/Selector.ts b/src/css/Selector.ts similarity index 100% rename from src/generators/Selector.ts rename to src/css/Selector.ts diff --git a/src/generators/Stylesheet.ts b/src/css/Stylesheet.ts similarity index 100% rename from src/generators/Stylesheet.ts rename to src/css/Stylesheet.ts diff --git a/src/generators/Generator.ts b/src/generators/Generator.ts index 9ce1f8b39e..17b524aac5 100644 --- a/src/generators/Generator.ts +++ b/src/generators/Generator.ts @@ -14,8 +14,7 @@ import annotateWithScopes from '../utils/annotateWithScopes'; import clone from '../utils/clone'; import DomBlock from './dom/Block'; import SsrBlock from './server-side-rendering/Block'; -import Selector from './Selector'; -import Stylesheet from './Stylesheet'; +import Stylesheet from '../css/Stylesheet'; import { Node, Parsed, CompileOptions } from '../interfaces'; const test = typeof global !== 'undefined' && global.__svelte_test; diff --git a/src/generators/dom/index.ts b/src/generators/dom/index.ts index 01cd6cc568..4bac2bb014 100644 --- a/src/generators/dom/index.ts +++ b/src/generators/dom/index.ts @@ -9,7 +9,7 @@ import CodeBuilder from '../../utils/CodeBuilder'; import visit from './visit'; import shared from './shared'; import Generator from '../Generator'; -import Stylesheet from '../Stylesheet'; +import Stylesheet from '../../css/Stylesheet'; import preprocess from './preprocess'; import Block from './Block'; import { Parsed, CompileOptions, Node } from '../../interfaces'; diff --git a/src/generators/server-side-rendering/index.ts b/src/generators/server-side-rendering/index.ts index 9bd68dcbf2..ca5158764d 100644 --- a/src/generators/server-side-rendering/index.ts +++ b/src/generators/server-side-rendering/index.ts @@ -1,6 +1,6 @@ import deindent from '../../utils/deindent'; import Generator from '../Generator'; -import Stylesheet from '../Stylesheet'; +import Stylesheet from '../../css/Stylesheet'; import Block from './Block'; import preprocess from './preprocess'; import visit from './visit'; diff --git a/src/index.ts b/src/index.ts index 78696bc3a4..c9c4d23a1e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,7 +4,7 @@ import generate from './generators/dom/index'; import generateSSR from './generators/server-side-rendering/index'; import { assign } from './shared/index.js'; import { version } from '../package.json'; -import Stylesheet from './generators/Stylesheet'; +import Stylesheet from './css/Stylesheet'; import { Parsed, CompileOptions, Warning } from './interfaces'; function normalizeOptions(options: CompileOptions): CompileOptions { diff --git a/src/validate/index.ts b/src/validate/index.ts index 00d9d649f0..d29a054c9a 100644 --- a/src/validate/index.ts +++ b/src/validate/index.ts @@ -3,7 +3,7 @@ import validateHtml from './html/index'; import { getLocator, Location } from 'locate-character'; import getCodeFrame from '../utils/getCodeFrame'; import CompileError from '../utils/CompileError'; -import Stylesheet from '../generators/Stylesheet'; +import Stylesheet from '../css/Stylesheet'; import { Node, Parsed, CompileOptions, Warning } from '../interfaces'; class ValidationError extends CompileError {