1 | import cjs from "./sass.node.js";
|
---|
2 |
|
---|
3 | export const compile = cjs.compile;
|
---|
4 | export const compileAsync = cjs.compileAsync;
|
---|
5 | export const compileString = cjs.compileString;
|
---|
6 | export const compileStringAsync = cjs.compileStringAsync;
|
---|
7 | export const initCompiler = cjs.initCompiler;
|
---|
8 | export const initAsyncCompiler = cjs.initAsyncCompiler;
|
---|
9 | export const Compiler = cjs.Compiler;
|
---|
10 | export const AsyncCompiler = cjs.AsyncCompiler;
|
---|
11 | export const Logger = cjs.Logger;
|
---|
12 | export const SassArgumentList = cjs.SassArgumentList;
|
---|
13 | export const SassBoolean = cjs.SassBoolean;
|
---|
14 | export const SassCalculation = cjs.SassCalculation;
|
---|
15 | export const CalculationOperation = cjs.CalculationOperation;
|
---|
16 | export const CalculationInterpolation = cjs.CalculationInterpolation;
|
---|
17 | export const SassColor = cjs.SassColor;
|
---|
18 | export const SassFunction = cjs.SassFunction;
|
---|
19 | export const SassList = cjs.SassList;
|
---|
20 | export const SassMap = cjs.SassMap;
|
---|
21 | export const SassMixin = cjs.SassMixin;
|
---|
22 | export const SassNumber = cjs.SassNumber;
|
---|
23 | export const SassString = cjs.SassString;
|
---|
24 | export const Value = cjs.Value;
|
---|
25 | export const CustomFunction = cjs.CustomFunction;
|
---|
26 | export const ListSeparator = cjs.ListSeparator;
|
---|
27 | export const sassFalse = cjs.sassFalse;
|
---|
28 | export const sassNull = cjs.sassNull;
|
---|
29 | export const sassTrue = cjs.sassTrue;
|
---|
30 | export const Exception = cjs.Exception;
|
---|
31 | export const PromiseOr = cjs.PromiseOr;
|
---|
32 | export const info = cjs.info;
|
---|
33 | export const render = cjs.render;
|
---|
34 | export const renderSync = cjs.renderSync;
|
---|
35 | export const TRUE = cjs.TRUE;
|
---|
36 | export const FALSE = cjs.FALSE;
|
---|
37 | export const NULL = cjs.NULL;
|
---|
38 | export const types = cjs.types;
|
---|
39 | export const NodePackageImporter = cjs.NodePackageImporter;
|
---|
40 | export const deprecations = cjs.deprecations;
|
---|
41 | export const Version = cjs.Version;
|
---|
42 | export const parser_ = cjs.parser_;
|
---|
43 |
|
---|
44 | let printedDefaultExportDeprecation = false;
|
---|
45 | function defaultExportDeprecation() {
|
---|
46 | if (printedDefaultExportDeprecation) return;
|
---|
47 | printedDefaultExportDeprecation = true;
|
---|
48 | console.error(
|
---|
49 | "`import sass from 'sass'` is deprecated.\n" +
|
---|
50 | "Please use `import * as sass from 'sass'` instead.");
|
---|
51 | }
|
---|
52 |
|
---|
53 | export default {
|
---|
54 | get compile() {
|
---|
55 | defaultExportDeprecation();
|
---|
56 | return cjs.compile;
|
---|
57 | },
|
---|
58 | get compileAsync() {
|
---|
59 | defaultExportDeprecation();
|
---|
60 | return cjs.compileAsync;
|
---|
61 | },
|
---|
62 | get compileString() {
|
---|
63 | defaultExportDeprecation();
|
---|
64 | return cjs.compileString;
|
---|
65 | },
|
---|
66 | get compileStringAsync() {
|
---|
67 | defaultExportDeprecation();
|
---|
68 | return cjs.compileStringAsync;
|
---|
69 | },
|
---|
70 | get initCompiler() {
|
---|
71 | defaultExportDeprecation();
|
---|
72 | return cjs.initCompiler;
|
---|
73 | },
|
---|
74 | get initAsyncCompiler() {
|
---|
75 | defaultExportDeprecation();
|
---|
76 | return cjs.initAsyncCompiler;
|
---|
77 | },
|
---|
78 | get Compiler() {
|
---|
79 | defaultExportDeprecation();
|
---|
80 | return cjs.Compiler;
|
---|
81 | },
|
---|
82 | get AsyncCompiler() {
|
---|
83 | defaultExportDeprecation();
|
---|
84 | return cjs.AsyncCompiler;
|
---|
85 | },
|
---|
86 | get Logger() {
|
---|
87 | defaultExportDeprecation();
|
---|
88 | return cjs.Logger;
|
---|
89 | },
|
---|
90 | get SassArgumentList() {
|
---|
91 | defaultExportDeprecation();
|
---|
92 | return cjs.SassArgumentList;
|
---|
93 | },
|
---|
94 | get SassBoolean() {
|
---|
95 | defaultExportDeprecation();
|
---|
96 | return cjs.SassBoolean;
|
---|
97 | },
|
---|
98 | get SassCalculation() {
|
---|
99 | defaultExportDeprecation();
|
---|
100 | return cjs.SassCalculation;
|
---|
101 | },
|
---|
102 | get CalculationOperation() {
|
---|
103 | defaultExportDeprecation();
|
---|
104 | return cjs.CalculationOperation;
|
---|
105 | },
|
---|
106 | get CalculationInterpolation() {
|
---|
107 | defaultExportDeprecation();
|
---|
108 | return cjs.CalculationInterpolation;
|
---|
109 | },
|
---|
110 | get SassColor() {
|
---|
111 | defaultExportDeprecation();
|
---|
112 | return cjs.SassColor;
|
---|
113 | },
|
---|
114 | get SassFunction() {
|
---|
115 | defaultExportDeprecation();
|
---|
116 | return cjs.SassFunction;
|
---|
117 | },
|
---|
118 | get SassList() {
|
---|
119 | defaultExportDeprecation();
|
---|
120 | return cjs.SassList;
|
---|
121 | },
|
---|
122 | get SassMap() {
|
---|
123 | defaultExportDeprecation();
|
---|
124 | return cjs.SassMap;
|
---|
125 | },
|
---|
126 | get SassMixin() {
|
---|
127 | defaultExportDeprecation();
|
---|
128 | return cjs.SassMixin;
|
---|
129 | },
|
---|
130 | get SassNumber() {
|
---|
131 | defaultExportDeprecation();
|
---|
132 | return cjs.SassNumber;
|
---|
133 | },
|
---|
134 | get SassString() {
|
---|
135 | defaultExportDeprecation();
|
---|
136 | return cjs.SassString;
|
---|
137 | },
|
---|
138 | get Value() {
|
---|
139 | defaultExportDeprecation();
|
---|
140 | return cjs.Value;
|
---|
141 | },
|
---|
142 | get CustomFunction() {
|
---|
143 | defaultExportDeprecation();
|
---|
144 | return cjs.CustomFunction;
|
---|
145 | },
|
---|
146 | get ListSeparator() {
|
---|
147 | defaultExportDeprecation();
|
---|
148 | return cjs.ListSeparator;
|
---|
149 | },
|
---|
150 | get sassFalse() {
|
---|
151 | defaultExportDeprecation();
|
---|
152 | return cjs.sassFalse;
|
---|
153 | },
|
---|
154 | get sassNull() {
|
---|
155 | defaultExportDeprecation();
|
---|
156 | return cjs.sassNull;
|
---|
157 | },
|
---|
158 | get sassTrue() {
|
---|
159 | defaultExportDeprecation();
|
---|
160 | return cjs.sassTrue;
|
---|
161 | },
|
---|
162 | get Exception() {
|
---|
163 | defaultExportDeprecation();
|
---|
164 | return cjs.Exception;
|
---|
165 | },
|
---|
166 | get PromiseOr() {
|
---|
167 | defaultExportDeprecation();
|
---|
168 | return cjs.PromiseOr;
|
---|
169 | },
|
---|
170 | get info() {
|
---|
171 | defaultExportDeprecation();
|
---|
172 | return cjs.info;
|
---|
173 | },
|
---|
174 | get render() {
|
---|
175 | defaultExportDeprecation();
|
---|
176 | return cjs.render;
|
---|
177 | },
|
---|
178 | get renderSync() {
|
---|
179 | defaultExportDeprecation();
|
---|
180 | return cjs.renderSync;
|
---|
181 | },
|
---|
182 | get TRUE() {
|
---|
183 | defaultExportDeprecation();
|
---|
184 | return cjs.TRUE;
|
---|
185 | },
|
---|
186 | get FALSE() {
|
---|
187 | defaultExportDeprecation();
|
---|
188 | return cjs.FALSE;
|
---|
189 | },
|
---|
190 | get NULL() {
|
---|
191 | defaultExportDeprecation();
|
---|
192 | return cjs.NULL;
|
---|
193 | },
|
---|
194 | get types() {
|
---|
195 | defaultExportDeprecation();
|
---|
196 | return cjs.types;
|
---|
197 | },
|
---|
198 | get NodePackageImporter() {
|
---|
199 | defaultExportDeprecation();
|
---|
200 | return cjs.NodePackageImporter;
|
---|
201 | },
|
---|
202 | get deprecations() {
|
---|
203 | defaultExportDeprecation();
|
---|
204 | return cjs.deprecations;
|
---|
205 | },
|
---|
206 | get Version() {
|
---|
207 | defaultExportDeprecation();
|
---|
208 | return cjs.Version;
|
---|
209 | },
|
---|
210 | get parser_() {
|
---|
211 | defaultExportDeprecation();
|
---|
212 | return cjs.parser_;
|
---|
213 | },
|
---|
214 | };
|
---|