Skip to content

Commit 1398af2

Browse files
committed
fix: define new CssWriter properties;
- Related: #72
1 parent 5de6230 commit 1398af2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

index.d.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Plugin, RollupWarning } from 'rollup';
1+
import { Plugin, RollupWarning, PluginContext } from 'rollup';
22
import { PreprocessorGroup } from 'svelte/types/compiler/preprocess';
33

44
interface Css {
@@ -8,6 +8,7 @@ interface Css {
88

99
declare class CssWriter {
1010
code: string;
11+
filename: string;
1112
map: {
1213
version: number;
1314
file?: boolean;
@@ -17,6 +18,7 @@ declare class CssWriter {
1718
mappings: string;
1819
};
1920
warn: RollupWarning;
21+
bundle: PluginContext;
2022
write(dest: string, map: boolean): void;
2123
toString(): string;
2224
}

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ module.exports = function svelte(options = {}) {
328328

329329
css(writer);
330330

331-
331+
332332
}
333333
if (pkg_export_errors.size < 1) return;
334334

0 commit comments

Comments
 (0)