mirror of
https://github.com/thangisme/notes.git
synced 2024-11-01 04:27:17 -04:00
27 lines
646 B
JavaScript
Executable File
27 lines
646 B
JavaScript
Executable File
'use strict';
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = lessParse;
|
|
|
|
var _input = require('postcss/lib/input');
|
|
|
|
var _input2 = _interopRequireDefault(_input);
|
|
|
|
var _lessParser = require('./less-parser');
|
|
|
|
var _lessParser2 = _interopRequireDefault(_lessParser);
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
|
|
function lessParse(less, opts) {
|
|
var input = new _input2.default(less, opts);
|
|
var parser = new _lessParser2.default(input, opts);
|
|
|
|
parser.tokenize();
|
|
parser.loop();
|
|
|
|
return parser.root;
|
|
}
|
|
module.exports = exports['default']; |