UNPKG

644 BJavaScriptView Raw
1Object.defineProperty(exports, "__esModule", {
2 value: true
3});
4
5var _path = require('path');
6
7var _compile = require('./utils/compile');
8
9require('babel-register');
10
11function compileCSS(entryPointFilePath) {
12 (0, _compile.prepareCompilationEnvironment)();
13 var entryPointFileAbsolutePath = (0, _path.resolve)(entryPointFilePath);
14 // eslint-disable-next-line global-require, import/no-dynamic-require
15 require(entryPointFileAbsolutePath);
16 (0, _compile.cleanupCompilationEnvironment)();
17 return _compile.CSS;
18}
19
20// All further imports/requires will be transpiled
21// eslint-disable-next-line import/first
22exports['default'] = compileCSS;
\No newline at end of file