@tailwindcss-mangle/core 2.0.0 → 2.0.2

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.
package/dist/index.cjs CHANGED
@@ -400,7 +400,7 @@ function preProcessJs(options) {
400
400
  presets: [
401
401
  // ['@babel/preset-react', {}],
402
402
  [
403
- "@babel/preset-typescript",
403
+ require("@babel/preset-typescript"),
404
404
  {
405
405
  allExtensions: true,
406
406
  isTSX: true
@@ -417,7 +417,8 @@ function preProcessJs(options) {
417
417
  addToUsedBy
418
418
  }
419
419
  ]
420
- ]
420
+ ],
421
+ filename: id
421
422
  });
422
423
  return magicString.toString();
423
424
  }
package/dist/index.mjs CHANGED
@@ -7,6 +7,15 @@ import babel, { transformSync } from '@babel/core';
7
7
  import { declare } from '@babel/helper-plugin-utils';
8
8
  import MagicString from 'magic-string';
9
9
 
10
+
11
+
12
+ // -- Unbuild CommonJS Shims --
13
+ import __cjs_url__ from 'url';
14
+ import __cjs_path__ from 'path';
15
+ import __cjs_mod__ from 'module';
16
+ const __filename = __cjs_url__.fileURLToPath(import.meta.url);
17
+ const __dirname = __cjs_path__.dirname(__filename);
18
+ const require = __cjs_mod__.createRequire(import.meta.url);
10
19
  function isObject(value) {
11
20
  return value !== null && typeof value === "object";
12
21
  }
@@ -392,7 +401,7 @@ function preProcessJs(options) {
392
401
  presets: [
393
402
  // ['@babel/preset-react', {}],
394
403
  [
395
- "@babel/preset-typescript",
404
+ require("@babel/preset-typescript"),
396
405
  {
397
406
  allExtensions: true,
398
407
  isTSX: true
@@ -409,7 +418,8 @@ function preProcessJs(options) {
409
418
  addToUsedBy
410
419
  }
411
420
  ]
412
- ]
421
+ ],
422
+ filename: id
413
423
  });
414
424
  return magicString.toString();
415
425
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailwindcss-mangle/core",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "The core of tailwindcss-mangle",
5
5
  "exports": {
6
6
  ".": {