@tailwindcss-mangle/core 2.0.0 → 2.0.1
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 +1 -1
- package/dist/index.mjs +10 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
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
|