@atlaspack/transformer-css 2.14.5-canary.189 → 2.14.5-canary.190

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.
@@ -60,6 +60,13 @@ function _diagnostic() {
60
60
  };
61
61
  return data;
62
62
  }
63
+ function _featureFlags() {
64
+ const data = require("@atlaspack/feature-flags");
65
+ _featureFlags = function () {
66
+ return data;
67
+ };
68
+ return data;
69
+ }
63
70
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
64
71
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
65
72
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -118,7 +125,8 @@ var _default = exports.default = new (_plugin().Transformer)({
118
125
  },
119
126
  shouldOptimize: asset.env.shouldOptimize,
120
127
  shouldScopeHoist: asset.env.shouldScopeHoist,
121
- sourceMap: asset.env.sourceMap
128
+ sourceMap: asset.env.sourceMap,
129
+ unstableSingleFileOutput: (0, _featureFlags().getFeatureFlag)('preserveUnstableSingleFileOutputInCss') ? asset.env.unstableSingleFileOutput : undefined
122
130
  });
123
131
  let [code, originalMap] = await Promise.all([asset.getBuffer(), asset.getMap(),
124
132
  // @ts-expect-error TS2339
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/transformer-css",
3
- "version": "2.14.5-canary.189+0684997c1",
3
+ "version": "2.14.5-canary.190+7a52bab62",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -16,10 +16,11 @@
16
16
  "node": ">= 16.0.0"
17
17
  },
18
18
  "dependencies": {
19
- "@atlaspack/diagnostic": "2.14.1-canary.257+0684997c1",
20
- "@atlaspack/plugin": "2.14.5-canary.189+0684997c1",
21
- "@atlaspack/types": "2.14.5-canary.189+0684997c1",
22
- "@atlaspack/utils": "2.14.5-canary.189+0684997c1",
19
+ "@atlaspack/diagnostic": "2.14.1-canary.258+7a52bab62",
20
+ "@atlaspack/feature-flags": "2.14.1-canary.258+7a52bab62",
21
+ "@atlaspack/plugin": "2.14.5-canary.190+7a52bab62",
22
+ "@atlaspack/types": "2.14.5-canary.190+7a52bab62",
23
+ "@atlaspack/utils": "2.14.5-canary.190+7a52bab62",
23
24
  "@parcel/source-map": "^2.1.1",
24
25
  "browserslist": "^4.6.6",
25
26
  "lightningcss": "^1.28.2",
@@ -36,5 +37,5 @@
36
37
  "check-ts": "tsc --emitDeclarationOnly --rootDir src",
37
38
  "build:lib": "gulp build --gulpfile ../../../gulpfile.js --cwd ."
38
39
  },
39
- "gitHead": "0684997c127a6204af1376b36e556fddd1ba5557"
40
+ "gitHead": "7a52bab6281e8edbfa66af248eb6f872c6b4b7bd"
40
41
  }
@@ -14,6 +14,7 @@ import * as native from 'lightningcss';
14
14
  import browserslist from 'browserslist';
15
15
  import nullthrows from 'nullthrows';
16
16
  import ThrowableDiagnostic, {errorToDiagnostic} from '@atlaspack/diagnostic';
17
+ import {getFeatureFlag} from '@atlaspack/feature-flags';
17
18
 
18
19
  const {transform, transformStyleAttribute, browserslistToTargets} = native;
19
20
 
@@ -63,6 +64,11 @@ export default new Transformer({
63
64
  shouldOptimize: asset.env.shouldOptimize,
64
65
  shouldScopeHoist: asset.env.shouldScopeHoist,
65
66
  sourceMap: asset.env.sourceMap,
67
+ unstableSingleFileOutput: getFeatureFlag(
68
+ 'preserveUnstableSingleFileOutputInCss',
69
+ )
70
+ ? asset.env.unstableSingleFileOutput
71
+ : undefined,
66
72
  });
67
73
 
68
74
  let [code, originalMap] = await Promise.all([