@@ -40,176 +40,3 @@ export const TRUE = sass.TRUE;
4040export const FALSE = sass . FALSE ;
4141export const NULL = sass . NULL ;
4242export const types = sass . types ;
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-
54- export default {
55- get compile ( ) {
56- defaultExportDeprecation ( ) ;
57- return sass . compile ;
58- } ,
59- get compileAsync ( ) {
60- defaultExportDeprecation ( ) ;
61- return sass . compileAsync ;
62- } ,
63- get compileString ( ) {
64- defaultExportDeprecation ( ) ;
65- return sass . compileString ;
66- } ,
67- get compileStringAsync ( ) {
68- defaultExportDeprecation ( ) ;
69- return sass . compileStringAsync ;
70- } ,
71- get NodePackageImporter ( ) {
72- defaultExportDeprecation ( ) ;
73- return sass . NodePackageImporter ;
74- } ,
75- get initAsyncCompiler ( ) {
76- defaultExportDeprecation ( ) ;
77- return sass . initAsyncCompiler ;
78- } ,
79- get initCompiler ( ) {
80- defaultExportDeprecation ( ) ;
81- return sass . initCompiler ;
82- } ,
83- get AsyncCompiler ( ) {
84- defaultExportDeprecation ( ) ;
85- return sass . AsyncCompiler ;
86- } ,
87- get Compiler ( ) {
88- defaultExportDeprecation ( ) ;
89- return sass . Compiler ;
90- } ,
91- get deprecations ( ) {
92- defaultExportDeprecation ( ) ;
93- return sass . deprecations ;
94- } ,
95- get Version ( ) {
96- defaultExportDeprecation ( ) ;
97- return sass . Version ;
98- } ,
99- get Logger ( ) {
100- defaultExportDeprecation ( ) ;
101- return sass . Logger ;
102- } ,
103- get CalculationOperation ( ) {
104- defaultExportDeprecation ( ) ;
105- return sass . CalculationOperation ;
106- } ,
107- get CalculationOperator ( ) {
108- defaultExportDeprecation ( ) ;
109- return sass . CalculationOperator ;
110- } ,
111- get CalculationInterpolation ( ) {
112- defaultExportDeprecation ( ) ;
113- return sass . CalculationInterpolation ;
114- } ,
115- get SassArgumentList ( ) {
116- defaultExportDeprecation ( ) ;
117- return sass . SassArgumentList ;
118- } ,
119- get SassBoolean ( ) {
120- defaultExportDeprecation ( ) ;
121- return sass . SassBoolean ;
122- } ,
123- get SassCalculation ( ) {
124- defaultExportDeprecation ( ) ;
125- return sass . SassCalculation ;
126- } ,
127- get SassColor ( ) {
128- defaultExportDeprecation ( ) ;
129- return sass . SassColor ;
130- } ,
131- get SassFunction ( ) {
132- defaultExportDeprecation ( ) ;
133- return sass . SassFunction ;
134- } ,
135- get SassMixin ( ) {
136- defaultExportDeprecation ( ) ;
137- return sass . SassMixin ;
138- } ,
139- get SassList ( ) {
140- defaultExportDeprecation ( ) ;
141- return sass . SassList ;
142- } ,
143- get SassMap ( ) {
144- defaultExportDeprecation ( ) ;
145- return sass . SassMap ;
146- } ,
147- get SassNumber ( ) {
148- defaultExportDeprecation ( ) ;
149- return sass . SassNumber ;
150- } ,
151- get SassString ( ) {
152- defaultExportDeprecation ( ) ;
153- return sass . SassString ;
154- } ,
155- get Value ( ) {
156- defaultExportDeprecation ( ) ;
157- return sass . Value ;
158- } ,
159- get CustomFunction ( ) {
160- defaultExportDeprecation ( ) ;
161- return sass . CustomFunction ;
162- } ,
163- get ListSeparator ( ) {
164- defaultExportDeprecation ( ) ;
165- return sass . ListSeparator ;
166- } ,
167- get sassFalse ( ) {
168- defaultExportDeprecation ( ) ;
169- return sass . sassFalse ;
170- } ,
171- get sassNull ( ) {
172- defaultExportDeprecation ( ) ;
173- return sass . sassNull ;
174- } ,
175- get sassTrue ( ) {
176- defaultExportDeprecation ( ) ;
177- return sass . sassTrue ;
178- } ,
179- get Exception ( ) {
180- defaultExportDeprecation ( ) ;
181- return sass . Exception ;
182- } ,
183- get PromiseOr ( ) {
184- defaultExportDeprecation ( ) ;
185- return sass . PromiseOr ;
186- } ,
187- get info ( ) {
188- defaultExportDeprecation ( ) ;
189- return sass . info ;
190- } ,
191- get render ( ) {
192- defaultExportDeprecation ( ) ;
193- return sass . render ;
194- } ,
195- get renderSync ( ) {
196- defaultExportDeprecation ( ) ;
197- return sass . renderSync ;
198- } ,
199- get TRUE ( ) {
200- defaultExportDeprecation ( ) ;
201- return sass . TRUE ;
202- } ,
203- get FALSE ( ) {
204- defaultExportDeprecation ( ) ;
205- return sass . FALSE ;
206- } ,
207- get NULL ( ) {
208- defaultExportDeprecation ( ) ;
209- return sass . NULL ;
210- } ,
211- get types ( ) {
212- defaultExportDeprecation ( ) ;
213- return sass . types ;
214- } ,
215- } ;
0 commit comments