123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209 |
- import cjs from "./sass.node.js";
- export const compile = cjs.compile;
- export const compileAsync = cjs.compileAsync;
- export const compileString = cjs.compileString;
- export const compileStringAsync = cjs.compileStringAsync;
- export const initCompiler = cjs.initCompiler;
- export const initAsyncCompiler = cjs.initAsyncCompiler;
- export const Compiler = cjs.Compiler;
- export const AsyncCompiler = cjs.AsyncCompiler;
- export const Logger = cjs.Logger;
- export const SassArgumentList = cjs.SassArgumentList;
- export const SassBoolean = cjs.SassBoolean;
- export const SassCalculation = cjs.SassCalculation;
- export const CalculationOperation = cjs.CalculationOperation;
- export const CalculationInterpolation = cjs.CalculationInterpolation;
- export const SassColor = cjs.SassColor;
- export const SassFunction = cjs.SassFunction;
- export const SassList = cjs.SassList;
- export const SassMap = cjs.SassMap;
- export const SassMixin = cjs.SassMixin;
- export const SassNumber = cjs.SassNumber;
- export const SassString = cjs.SassString;
- export const Value = cjs.Value;
- export const CustomFunction = cjs.CustomFunction;
- export const ListSeparator = cjs.ListSeparator;
- export const sassFalse = cjs.sassFalse;
- export const sassNull = cjs.sassNull;
- export const sassTrue = cjs.sassTrue;
- export const Exception = cjs.Exception;
- export const PromiseOr = cjs.PromiseOr;
- export const info = cjs.info;
- export const render = cjs.render;
- export const renderSync = cjs.renderSync;
- export const TRUE = cjs.TRUE;
- export const FALSE = cjs.FALSE;
- export const NULL = cjs.NULL;
- export const types = cjs.types;
- export const NodePackageImporter = cjs.NodePackageImporter;
- export const deprecations = cjs.deprecations;
- export const Version = cjs.Version;
- let printedDefaultExportDeprecation = false;
- function defaultExportDeprecation() {
- if (printedDefaultExportDeprecation) return;
- printedDefaultExportDeprecation = true;
- console.error(
- "`import sass from 'sass'` is deprecated.\n" +
- "Please use `import * as sass from 'sass'` instead.");
- }
- export default {
- get compile() {
- defaultExportDeprecation();
- return cjs.compile;
- },
- get compileAsync() {
- defaultExportDeprecation();
- return cjs.compileAsync;
- },
- get compileString() {
- defaultExportDeprecation();
- return cjs.compileString;
- },
- get compileStringAsync() {
- defaultExportDeprecation();
- return cjs.compileStringAsync;
- },
- get initCompiler() {
- defaultExportDeprecation();
- return cjs.initCompiler;
- },
- get initAsyncCompiler() {
- defaultExportDeprecation();
- return cjs.initAsyncCompiler;
- },
- get Compiler() {
- defaultExportDeprecation();
- return cjs.Compiler;
- },
- get AsyncCompiler() {
- defaultExportDeprecation();
- return cjs.AsyncCompiler;
- },
- get Logger() {
- defaultExportDeprecation();
- return cjs.Logger;
- },
- get SassArgumentList() {
- defaultExportDeprecation();
- return cjs.SassArgumentList;
- },
- get SassBoolean() {
- defaultExportDeprecation();
- return cjs.SassBoolean;
- },
- get SassCalculation() {
- defaultExportDeprecation();
- return cjs.SassCalculation;
- },
- get CalculationOperation() {
- defaultExportDeprecation();
- return cjs.CalculationOperation;
- },
- get CalculationInterpolation() {
- defaultExportDeprecation();
- return cjs.CalculationInterpolation;
- },
- get SassColor() {
- defaultExportDeprecation();
- return cjs.SassColor;
- },
- get SassFunction() {
- defaultExportDeprecation();
- return cjs.SassFunction;
- },
- get SassList() {
- defaultExportDeprecation();
- return cjs.SassList;
- },
- get SassMap() {
- defaultExportDeprecation();
- return cjs.SassMap;
- },
- get SassMixin() {
- defaultExportDeprecation();
- return cjs.SassMixin;
- },
- get SassNumber() {
- defaultExportDeprecation();
- return cjs.SassNumber;
- },
- get SassString() {
- defaultExportDeprecation();
- return cjs.SassString;
- },
- get Value() {
- defaultExportDeprecation();
- return cjs.Value;
- },
- get CustomFunction() {
- defaultExportDeprecation();
- return cjs.CustomFunction;
- },
- get ListSeparator() {
- defaultExportDeprecation();
- return cjs.ListSeparator;
- },
- get sassFalse() {
- defaultExportDeprecation();
- return cjs.sassFalse;
- },
- get sassNull() {
- defaultExportDeprecation();
- return cjs.sassNull;
- },
- get sassTrue() {
- defaultExportDeprecation();
- return cjs.sassTrue;
- },
- get Exception() {
- defaultExportDeprecation();
- return cjs.Exception;
- },
- get PromiseOr() {
- defaultExportDeprecation();
- return cjs.PromiseOr;
- },
- get info() {
- defaultExportDeprecation();
- return cjs.info;
- },
- get render() {
- defaultExportDeprecation();
- return cjs.render;
- },
- get renderSync() {
- defaultExportDeprecation();
- return cjs.renderSync;
- },
- get TRUE() {
- defaultExportDeprecation();
- return cjs.TRUE;
- },
- get FALSE() {
- defaultExportDeprecation();
- return cjs.FALSE;
- },
- get NULL() {
- defaultExportDeprecation();
- return cjs.NULL;
- },
- get types() {
- defaultExportDeprecation();
- return cjs.types;
- },
- get NodePackageImporter() {
- defaultExportDeprecation();
- return cjs.NodePackageImporter;
- },
- get deprecations() {
- defaultExportDeprecation();
- return cjs.deprecations;
- },
- get Version() {
- defaultExportDeprecation();
- return cjs.Version;
- },
- };
|