balm-core 3.30.0 → 3.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@ var _check_config = _interopRequireDefault(require("./check_config"));
10
10
  var _constants = require("../config/constants");
11
11
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
12
12
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
13
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
13
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
14
14
  function createQuickPath(config, rootKey) {
15
15
  var result = {};
16
16
  var rootValue = config.roots[rootKey];
@@ -20,88 +20,86 @@ var esTransform = function esTransform(entryPoints, output, customTransformOptio
20
20
  (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
21
21
  var _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, entryPoint, filename, inputCode, result;
22
22
  return _regenerator["default"].wrap(function _callee$(_context) {
23
- while (1) {
24
- switch (_context.prev = _context.next) {
25
- case 0:
26
- _context.prev = 0;
27
- _iteratorAbruptCompletion = false;
28
- _didIteratorError = false;
29
- _context.prev = 3;
30
- _iterator = _asyncIterator(entryPoints);
31
- case 5:
32
- _context.next = 7;
33
- return _iterator.next();
34
- case 7:
35
- if (!(_iteratorAbruptCompletion = !(_step = _context.sent).done)) {
36
- _context.next = 25;
37
- break;
38
- }
39
- entryPoint = _step.value;
40
- build.input = BalmJS.file.absPath(entryPoint);
41
- BalmJS.logger.debug('esbuild bundler - transform', {
42
- input: build.input,
43
- output: build.output
44
- }, {
45
- pre: true
46
- });
47
- filename = entryPoint.split('/').pop();
48
- if (!(filename && _fs["default"].existsSync(build.input))) {
49
- _context.next = 21;
50
- break;
51
- }
52
- inputCode = _fs["default"].readFileSync(build.input, 'utf8');
53
- _context.next = 16;
54
- return require('esbuild').transform(inputCode, options);
55
- case 16:
56
- result = _context.sent;
57
- _fs["default"].mkdirSync(build.output, {
58
- recursive: true
59
- });
60
- _fs["default"].writeFileSync(path.join(build.output, filename), result.code);
61
- _context.next = 22;
23
+ while (1) switch (_context.prev = _context.next) {
24
+ case 0:
25
+ _context.prev = 0;
26
+ _iteratorAbruptCompletion = false;
27
+ _didIteratorError = false;
28
+ _context.prev = 3;
29
+ _iterator = _asyncIterator(entryPoints);
30
+ case 5:
31
+ _context.next = 7;
32
+ return _iterator.next();
33
+ case 7:
34
+ if (!(_iteratorAbruptCompletion = !(_step = _context.sent).done)) {
35
+ _context.next = 25;
62
36
  break;
63
- case 21:
64
- BalmJS.logger.warn('esbuild', "Invalid entry point: ".concat(entryPoint));
65
- case 22:
66
- _iteratorAbruptCompletion = false;
67
- _context.next = 5;
37
+ }
38
+ entryPoint = _step.value;
39
+ build.input = BalmJS.file.absPath(entryPoint);
40
+ BalmJS.logger.debug('esbuild bundler - transform', {
41
+ input: build.input,
42
+ output: build.output
43
+ }, {
44
+ pre: true
45
+ });
46
+ filename = entryPoint.split('/').pop();
47
+ if (!(filename && _fs["default"].existsSync(build.input))) {
48
+ _context.next = 21;
68
49
  break;
69
- case 25:
70
- _context.next = 31;
71
- break;
72
- case 27:
73
- _context.prev = 27;
74
- _context.t0 = _context["catch"](3);
75
- _didIteratorError = true;
76
- _iteratorError = _context.t0;
77
- case 31:
78
- _context.prev = 31;
79
- _context.prev = 32;
80
- if (!(_iteratorAbruptCompletion && _iterator["return"] != null)) {
81
- _context.next = 36;
82
- break;
83
- }
50
+ }
51
+ inputCode = _fs["default"].readFileSync(build.input, 'utf8');
52
+ _context.next = 16;
53
+ return require('esbuild').transform(inputCode, options);
54
+ case 16:
55
+ result = _context.sent;
56
+ _fs["default"].mkdirSync(build.output, {
57
+ recursive: true
58
+ });
59
+ _fs["default"].writeFileSync(path.join(build.output, filename), result.code);
60
+ _context.next = 22;
61
+ break;
62
+ case 21:
63
+ BalmJS.logger.warn('esbuild', "Invalid entry point: ".concat(entryPoint));
64
+ case 22:
65
+ _iteratorAbruptCompletion = false;
66
+ _context.next = 5;
67
+ break;
68
+ case 25:
69
+ _context.next = 31;
70
+ break;
71
+ case 27:
72
+ _context.prev = 27;
73
+ _context.t0 = _context["catch"](3);
74
+ _didIteratorError = true;
75
+ _iteratorError = _context.t0;
76
+ case 31:
77
+ _context.prev = 31;
78
+ _context.prev = 32;
79
+ if (!(_iteratorAbruptCompletion && _iterator["return"] != null)) {
84
80
  _context.next = 36;
85
- return _iterator["return"]();
86
- case 36:
87
- _context.prev = 36;
88
- if (!_didIteratorError) {
89
- _context.next = 39;
90
- break;
91
- }
92
- throw _iteratorError;
93
- case 39:
94
- return _context.finish(36);
95
- case 40:
96
- return _context.finish(31);
97
- case 41:
98
- _context.prev = 41;
99
- callback();
100
- return _context.finish(41);
101
- case 44:
102
- case "end":
103
- return _context.stop();
104
- }
81
+ break;
82
+ }
83
+ _context.next = 36;
84
+ return _iterator["return"]();
85
+ case 36:
86
+ _context.prev = 36;
87
+ if (!_didIteratorError) {
88
+ _context.next = 39;
89
+ break;
90
+ }
91
+ throw _iteratorError;
92
+ case 39:
93
+ return _context.finish(36);
94
+ case 40:
95
+ return _context.finish(31);
96
+ case 41:
97
+ _context.prev = 41;
98
+ callback();
99
+ return _context.finish(41);
100
+ case 44:
101
+ case "end":
102
+ return _context.stop();
105
103
  }
106
104
  }, _callee, null, [[0,, 41, 44], [3, 27, 31, 41], [32,, 36, 40]]);
107
105
  }))();
@@ -9,80 +9,78 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
9
9
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
10
10
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
11
11
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
12
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
12
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
13
13
  var build = /*#__PURE__*/function () {
14
14
  var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(bundle, outputOptions) {
15
15
  var _yield$bundle$generat, output, _iterator, _step, chunkOrAsset;
16
16
  return _regenerator["default"].wrap(function _callee$(_context) {
17
- while (1) {
18
- switch (_context.prev = _context.next) {
19
- case 0:
20
- _context.next = 2;
21
- return bundle.generate(outputOptions);
22
- case 2:
23
- _yield$bundle$generat = _context.sent;
24
- output = _yield$bundle$generat.output;
25
- _iterator = _createForOfIteratorHelper(output);
26
- try {
27
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
28
- chunkOrAsset = _step.value;
29
- if (chunkOrAsset.type === 'asset') {
30
- // For assets, this contains
31
- // {
32
- // fileName: string, // the asset file name
33
- // source: string | Uint8Array // the asset source
34
- // type: 'asset' // signifies that this is an asset
35
- // }
36
- BalmJS.logger.debug('rollup bundler - Asset', chunkOrAsset, {
37
- pre: true
38
- });
39
- } else {
40
- // For chunks, this contains
41
- // {
42
- // code: string, // the generated JS code
43
- // dynamicImports: string[], // external modules imported dynamically by the chunk
44
- // exports: string[], // exported variable names
45
- // facadeModuleId: string | null, // the id of a module that this chunk corresponds to
46
- // fileName: string, // the chunk file name
47
- // implicitlyLoadedBefore: string[]; // entries that should only be loaded after this chunk
48
- // imports: string[], // external modules imported statically by the chunk
49
- // importedBindings: {[imported: string]: string[]} // imported bindings per dependency
50
- // isDynamicEntry: boolean, // is this chunk a dynamic entry point
51
- // isEntry: boolean, // is this chunk a static entry point
52
- // isImplicitEntry: boolean, // should this chunk only be loaded after other chunks
53
- // map: string | null, // sourcemaps if present
54
- // modules: { // information about the modules in this chunk
55
- // [id: string]: {
56
- // renderedExports: string[]; // exported variable names that were included
57
- // removedExports: string[]; // exported variable names that were removed
58
- // renderedLength: number; // the length of the remaining code in this module
59
- // originalLength: number; // the original length of the code in this module
60
- // };
61
- // },
62
- // name: string // the name of this chunk as used in naming patterns
63
- // referencedFiles: string[] // files referenced via import.meta.ROLLUP_FILE_URL_<id>
64
- // type: 'chunk', // signifies that this is a chunk
65
- // }
66
- BalmJS.logger.debug('rollup bundler - Chunk', chunkOrAsset.modules, {
67
- pre: true
68
- });
69
- }
17
+ while (1) switch (_context.prev = _context.next) {
18
+ case 0:
19
+ _context.next = 2;
20
+ return bundle.generate(outputOptions);
21
+ case 2:
22
+ _yield$bundle$generat = _context.sent;
23
+ output = _yield$bundle$generat.output;
24
+ _iterator = _createForOfIteratorHelper(output);
25
+ try {
26
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
27
+ chunkOrAsset = _step.value;
28
+ if (chunkOrAsset.type === 'asset') {
29
+ // For assets, this contains
30
+ // {
31
+ // fileName: string, // the asset file name
32
+ // source: string | Uint8Array // the asset source
33
+ // type: 'asset' // signifies that this is an asset
34
+ // }
35
+ BalmJS.logger.debug('rollup bundler - Asset', chunkOrAsset, {
36
+ pre: true
37
+ });
38
+ } else {
39
+ // For chunks, this contains
40
+ // {
41
+ // code: string, // the generated JS code
42
+ // dynamicImports: string[], // external modules imported dynamically by the chunk
43
+ // exports: string[], // exported variable names
44
+ // facadeModuleId: string | null, // the id of a module that this chunk corresponds to
45
+ // fileName: string, // the chunk file name
46
+ // implicitlyLoadedBefore: string[]; // entries that should only be loaded after this chunk
47
+ // imports: string[], // external modules imported statically by the chunk
48
+ // importedBindings: {[imported: string]: string[]} // imported bindings per dependency
49
+ // isDynamicEntry: boolean, // is this chunk a dynamic entry point
50
+ // isEntry: boolean, // is this chunk a static entry point
51
+ // isImplicitEntry: boolean, // should this chunk only be loaded after other chunks
52
+ // map: string | null, // sourcemaps if present
53
+ // modules: { // information about the modules in this chunk
54
+ // [id: string]: {
55
+ // renderedExports: string[]; // exported variable names that were included
56
+ // removedExports: string[]; // exported variable names that were removed
57
+ // renderedLength: number; // the length of the remaining code in this module
58
+ // originalLength: number; // the original length of the code in this module
59
+ // };
60
+ // },
61
+ // name: string // the name of this chunk as used in naming patterns
62
+ // referencedFiles: string[] // files referenced via import.meta.ROLLUP_FILE_URL_<id>
63
+ // type: 'chunk', // signifies that this is a chunk
64
+ // }
65
+ BalmJS.logger.debug('rollup bundler - Chunk', chunkOrAsset.modules, {
66
+ pre: true
67
+ });
70
68
  }
71
-
72
- // or write the bundle to disk
73
- } catch (err) {
74
- _iterator.e(err);
75
- } finally {
76
- _iterator.f();
77
69
  }
78
- _context.next = 8;
79
- return bundle.write(outputOptions);
80
- case 8:
81
- return _context.abrupt("return", _context.sent);
82
- case 9:
83
- case "end":
84
- return _context.stop();
85
- }
70
+
71
+ // or write the bundle to disk
72
+ } catch (err) {
73
+ _iterator.e(err);
74
+ } finally {
75
+ _iterator.f();
76
+ }
77
+ _context.next = 8;
78
+ return bundle.write(outputOptions);
79
+ case 8:
80
+ return _context.abrupt("return", _context.sent);
81
+ case 9:
82
+ case "end":
83
+ return _context.stop();
86
84
  }
87
85
  }, _callee);
88
86
  }));
@@ -16,80 +16,78 @@ var buildLibrary = /*#__PURE__*/function () {
16
16
  var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(inputOptions, outputOptions) {
17
17
  var rollup, rollupOptions, bundle, _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, outputOption;
18
18
  return _regenerator["default"].wrap(function _callee$(_context) {
19
- while (1) {
20
- switch (_context.prev = _context.next) {
21
- case 0:
22
- rollup = require('rollup');
23
- inputOptions = (0, _entry["default"])(inputOptions);
24
- outputOptions = (0, _output["default"])(outputOptions);
25
- rollupOptions = Object.assign({}, inputOptions, {
26
- output: outputOptions
27
- });
28
- _context.next = 6;
29
- return rollup.rollup(rollupOptions);
30
- case 6:
31
- bundle = _context.sent;
32
- if (!Array.isArray(outputOptions)) {
33
- _context.next = 39;
34
- break;
35
- }
36
- _iteratorAbruptCompletion = false;
37
- _didIteratorError = false;
38
- _context.prev = 10;
39
- _iterator = _asyncIterator(outputOptions);
40
- case 12:
41
- _context.next = 14;
42
- return _iterator.next();
43
- case 14:
44
- if (!(_iteratorAbruptCompletion = !(_step = _context.sent).done)) {
45
- _context.next = 21;
46
- break;
47
- }
48
- outputOption = _step.value;
49
- _context.next = 18;
50
- return (0, _build["default"])(bundle, outputOption);
51
- case 18:
52
- _iteratorAbruptCompletion = false;
53
- _context.next = 12;
19
+ while (1) switch (_context.prev = _context.next) {
20
+ case 0:
21
+ rollup = require('rollup');
22
+ inputOptions = (0, _entry["default"])(inputOptions);
23
+ outputOptions = (0, _output["default"])(outputOptions);
24
+ rollupOptions = Object.assign({}, inputOptions, {
25
+ output: outputOptions
26
+ });
27
+ _context.next = 6;
28
+ return rollup.rollup(rollupOptions);
29
+ case 6:
30
+ bundle = _context.sent;
31
+ if (!Array.isArray(outputOptions)) {
32
+ _context.next = 39;
54
33
  break;
55
- case 21:
56
- _context.next = 27;
34
+ }
35
+ _iteratorAbruptCompletion = false;
36
+ _didIteratorError = false;
37
+ _context.prev = 10;
38
+ _iterator = _asyncIterator(outputOptions);
39
+ case 12:
40
+ _context.next = 14;
41
+ return _iterator.next();
42
+ case 14:
43
+ if (!(_iteratorAbruptCompletion = !(_step = _context.sent).done)) {
44
+ _context.next = 21;
57
45
  break;
58
- case 23:
59
- _context.prev = 23;
60
- _context.t0 = _context["catch"](10);
61
- _didIteratorError = true;
62
- _iteratorError = _context.t0;
63
- case 27:
64
- _context.prev = 27;
65
- _context.prev = 28;
66
- if (!(_iteratorAbruptCompletion && _iterator["return"] != null)) {
67
- _context.next = 32;
68
- break;
69
- }
46
+ }
47
+ outputOption = _step.value;
48
+ _context.next = 18;
49
+ return (0, _build["default"])(bundle, outputOption);
50
+ case 18:
51
+ _iteratorAbruptCompletion = false;
52
+ _context.next = 12;
53
+ break;
54
+ case 21:
55
+ _context.next = 27;
56
+ break;
57
+ case 23:
58
+ _context.prev = 23;
59
+ _context.t0 = _context["catch"](10);
60
+ _didIteratorError = true;
61
+ _iteratorError = _context.t0;
62
+ case 27:
63
+ _context.prev = 27;
64
+ _context.prev = 28;
65
+ if (!(_iteratorAbruptCompletion && _iterator["return"] != null)) {
70
66
  _context.next = 32;
71
- return _iterator["return"]();
72
- case 32:
73
- _context.prev = 32;
74
- if (!_didIteratorError) {
75
- _context.next = 35;
76
- break;
77
- }
78
- throw _iteratorError;
79
- case 35:
80
- return _context.finish(32);
81
- case 36:
82
- return _context.finish(27);
83
- case 37:
84
- _context.next = 41;
85
67
  break;
86
- case 39:
87
- _context.next = 41;
88
- return (0, _build["default"])(bundle, outputOptions);
89
- case 41:
90
- case "end":
91
- return _context.stop();
92
- }
68
+ }
69
+ _context.next = 32;
70
+ return _iterator["return"]();
71
+ case 32:
72
+ _context.prev = 32;
73
+ if (!_didIteratorError) {
74
+ _context.next = 35;
75
+ break;
76
+ }
77
+ throw _iteratorError;
78
+ case 35:
79
+ return _context.finish(32);
80
+ case 36:
81
+ return _context.finish(27);
82
+ case 37:
83
+ _context.next = 41;
84
+ break;
85
+ case 39:
86
+ _context.next = 41;
87
+ return (0, _build["default"])(bundle, outputOptions);
88
+ case 41:
89
+ case "end":
90
+ return _context.stop();
93
91
  }
94
92
  }, _callee, null, [[10, 23, 27, 37], [28,, 32, 36]]);
95
93
  }));
@@ -10,7 +10,7 @@ var _loaders = _interopRequireDefault(require("../loaders"));
10
10
  var _constants = require("../../../config/constants");
11
11
  function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
12
12
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
13
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
13
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
14
14
  function getDefaultPlugins(webpack, scripts) {
15
15
  var plugins = [
16
16
  // Moment.js is an extremely popular library that bundles large locale files
@@ -1,10 +1,14 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports["default"] = void 0;
8
+ var _fs = _interopRequireDefault(require("fs"));
7
9
  var _regex = require("../config/regex");
10
+ // Check if Tailwind config exists
11
+ var useTailwind = _fs["default"].existsSync(path.join(BalmJS.config.workspace, 'tailwind.config.js'));
8
12
  function cssLoader() {
9
13
  var styleLoader = {
10
14
  loader: require.resolve('style-loader'),
@@ -52,7 +56,7 @@ function cssLoader() {
52
56
  loader: require.resolve('postcss-loader'),
53
57
  options: Object.assign({
54
58
  postcssOptions: {
55
- plugins: BalmJS.plugins.postcssPlugins(true)
59
+ plugins: BalmJS.plugins.postcssPlugins(true, useTailwind)
56
60
  },
57
61
  sourceMap: sourceMap
58
62
  }, BalmJS.config.scripts.postcssLoaderOptions)
@@ -19,20 +19,20 @@ var _server = _interopRequireDefault(require("./server"));
19
19
  var _ftp = _interopRequireDefault(require("./ftp"));
20
20
  var _pwa = _interopRequireDefault(require("./pwa"));
21
21
  var _logs = _interopRequireDefault(require("./logs"));
22
- var LogLevel;
23
- (function (LogLevel) {
22
+ var LogLevel = /*#__PURE__*/function (LogLevel) {
24
23
  LogLevel[LogLevel["Trace"] = 0] = "Trace";
25
24
  LogLevel[LogLevel["Debug"] = 1] = "Debug";
26
25
  LogLevel[LogLevel["Info"] = 2] = "Info";
27
26
  LogLevel[LogLevel["Warn"] = 3] = "Warn";
28
27
  LogLevel[LogLevel["Error"] = 4] = "Error";
29
- })(LogLevel || (LogLevel = {}));
30
- var Bundler;
31
- (function (Bundler) {
28
+ return LogLevel;
29
+ }(LogLevel || {});
30
+ var Bundler = /*#__PURE__*/function (Bundler) {
32
31
  Bundler["webpack"] = "webpack";
33
32
  Bundler["rollup"] = "rollup";
34
33
  Bundler["esbuild"] = "esbuild";
35
- })(Bundler || (Bundler = {}));
34
+ return Bundler;
35
+ }(Bundler || {});
36
36
  var vendors = [];
37
37
  var workspace = process.env.BALM_CWD;
38
38
  /**
@@ -36,10 +36,10 @@ var lessOptions = {};
36
36
  * @reference https://github.com/csstools/postcss-preset-env#options
37
37
  */
38
38
  var postcssEnvOptions = {
39
- stage: 0,
40
39
  autoprefixer: {
41
40
  flexbox: 'no-2009'
42
- }
41
+ },
42
+ stage: 3
43
43
  };
44
44
  /**
45
45
  * PostCSS plugins