You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
564 B
28 lines
564 B
4 years ago
|
"use strict";
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports.default = void 0;
|
||
|
|
||
|
function getDefaultSassImplementation() {
|
||
|
let sassImplPkg = 'node-sass';
|
||
|
|
||
|
try {
|
||
|
require.resolve('node-sass');
|
||
|
} catch (error) {
|
||
|
try {
|
||
|
require.resolve('sass');
|
||
|
|
||
|
sassImplPkg = 'sass';
|
||
|
} catch (ignoreError) {
|
||
|
sassImplPkg = 'node-sass';
|
||
|
}
|
||
|
} // eslint-disable-next-line import/no-dynamic-require, global-require
|
||
|
|
||
|
|
||
|
return require(sassImplPkg);
|
||
|
}
|
||
|
|
||
|
var _default = getDefaultSassImplementation;
|
||
|
exports.default = _default;
|