File: use-node-node-sass.patch

package info (click to toggle)
node-rollup-plugin-sass 1.12.22-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 656 kB
  • sloc: javascript: 48; makefile: 4
file content (49 lines) | stat: -rw-r--r-- 1,346 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Description: sass module is not packaged and needs packaging dart lang first
Forwarded: not-needed
Reviewed-By: Yadd <yadd@debian.org>
Last-Update: 2022-07-28

--- a/src/index.ts
+++ b/src/index.ts
@@ -1,6 +1,6 @@
 import {promisify} from 'util';
 import resolve from 'resolve';
-import * as sass from 'sass';
+import * as sass from 'node-sass';
 import {dirname} from 'path';
 import * as fs from 'fs';
 import {createFilter} from '@rollup/pluginutils';
--- a/src/types.ts
+++ b/src/types.ts
@@ -1,4 +1,4 @@
-import {LegacyOptions, types} from 'sass';
+import {types} from 'node-sass';
 
 export interface IdAndContentObject {
   id?: string,
@@ -81,7 +81,24 @@
  *
  * @todo Update this if/when we update to the new sass API.
  */
-export type SassOptions = LegacyOptions<'async'>;
+export interface SassOptions {
+  data?: string,
+  file?: string,
+  functions?: SassFunctionsObject,
+  importer?: SassImporter | SassImporter[],
+  includePaths?: string[],
+  indentType?: 'space' | 'tab',
+  indentWidth?: number,
+  indentedSyntax?: boolean,
+  linefeed?: string,
+  omitSourceMapUrl?: boolean,
+  outFile?: string,
+  outputStyle?: 'compressed' | 'expanded',
+  sourceMapContents?: boolean,
+  sourceMapEmbed?: boolean,
+  sourceMapRoot?: string,
+  sourceMap?: boolean | string | undefined
+}
 
 /**
  * Rollup's `AssetInfo` bundle type.