weapp-tailwindcss 4.7.2 → 4.7.4
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/{chunk-Z2H7M33Z.mjs → chunk-6IYMPBCH.mjs} +107 -31
- package/dist/{chunk-5BW6X6AJ.mjs → chunk-FPX2BD2A.mjs} +2 -2
- package/dist/{chunk-2SI3KT2H.js → chunk-HMTZ4JJN.js} +2 -2
- package/dist/{chunk-GNWJEIZZ.js → chunk-I6FBWASF.js} +114 -38
- package/dist/{chunk-Q6PLZCM6.mjs → chunk-JII7EQ6K.mjs} +1 -1
- package/dist/{chunk-FPDJ3BCM.js → chunk-QA6SPWSQ.js} +120 -100
- package/dist/chunk-R7GWRQDJ.js +15 -0
- package/dist/chunk-SCOGAO45.mjs +18 -0
- package/dist/{chunk-OPTIAB5G.js → chunk-SIZNRUIV.js} +4 -4
- package/dist/{chunk-QZRXYCOQ.js → chunk-T5BSWDY2.js} +5 -5
- package/dist/{chunk-JYCQWWYU.mjs → chunk-V35QS2PT.mjs} +116 -96
- package/dist/cli.js +383 -15
- package/dist/cli.mjs +382 -15
- package/dist/core.js +4 -4
- package/dist/core.mjs +2 -2
- package/dist/css-macro/postcss.js +1 -1
- package/dist/css-macro/postcss.mjs +1 -1
- package/dist/css-macro.js +1 -1
- package/dist/css-macro.mjs +1 -1
- package/dist/defaults.js +1 -1
- package/dist/defaults.mjs +1 -1
- package/dist/escape.js +1 -1
- package/dist/escape.mjs +1 -1
- package/dist/gulp.js +5 -5
- package/dist/gulp.mjs +3 -3
- package/dist/index.js +7 -7
- package/dist/index.mjs +5 -5
- package/dist/postcss-html-transform.js +1 -1
- package/dist/postcss-html-transform.mjs +1 -1
- package/dist/presets.d.mts +2 -0
- package/dist/presets.d.ts +2 -0
- package/dist/presets.js +9 -5
- package/dist/presets.mjs +7 -3
- package/dist/types.d.mts +6 -0
- package/dist/types.d.ts +6 -0
- package/dist/types.js +1 -1
- package/dist/types.mjs +1 -1
- package/dist/vite.js +5 -5
- package/dist/vite.mjs +3 -3
- package/dist/webpack.js +5 -5
- package/dist/webpack.mjs +3 -3
- package/dist/webpack4.js +7 -7
- package/dist/webpack4.mjs +2 -2
- package/package.json +5 -3
- package/dist/chunk-4EUTRMUC.mjs +0 -10
- package/dist/chunk-QXSBMK2W.js +0 -7
package/dist/presets.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ interface UniAppXOptions {
|
|
|
15
15
|
rem2rpx?: UserDefinedOptions['rem2rpx'];
|
|
16
16
|
rawOptions?: UserDefinedOptions;
|
|
17
17
|
resolve?: PackageResolvingOptions;
|
|
18
|
+
customAttributes?: UserDefinedOptions['customAttributes'];
|
|
18
19
|
}
|
|
19
20
|
declare function uniAppX(options: UniAppXOptions): Partial<UserDefinedOptions>;
|
|
20
21
|
interface HBuilderXOptions {
|
|
@@ -23,6 +24,7 @@ interface HBuilderXOptions {
|
|
|
23
24
|
rem2rpx?: UserDefinedOptions['rem2rpx'];
|
|
24
25
|
rawOptions?: UserDefinedOptions;
|
|
25
26
|
resolve?: PackageResolvingOptions;
|
|
27
|
+
customAttributes?: UserDefinedOptions['customAttributes'];
|
|
26
28
|
}
|
|
27
29
|
declare function hbuilderx(options?: HBuilderXOptions): Partial<UserDefinedOptions>;
|
|
28
30
|
|
package/dist/presets.js
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
var _chunkOXASK55Qjs = require('./chunk-OXASK55Q.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkSIZNRUIVjs = require('./chunk-SIZNRUIV.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkUW3WHSZ5js = require('./chunk-UW3WHSZ5.js');
|
|
10
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-R7GWRQDJ.js');
|
|
11
11
|
|
|
12
12
|
// src/presets.ts
|
|
13
13
|
var _process = require('process'); var _process2 = _interopRequireDefault(_process);
|
|
@@ -15,7 +15,7 @@ function uniAppX(options) {
|
|
|
15
15
|
_chunkOXASK55Qjs.logger.info(`UNI_PLATFORM: ${_process2.default.env.UNI_PLATFORM}`);
|
|
16
16
|
const isApp = _process2.default.env.UNI_PLATFORM === "app" || _process2.default.env.UNI_PLATFORM === "app-plus" || _process2.default.env.UNI_PLATFORM === "app-harmony";
|
|
17
17
|
return _chunkUW3WHSZ5js.defuOverrideArray.call(void 0,
|
|
18
|
-
options.rawOptions,
|
|
18
|
+
_nullishCoalesce(options.rawOptions, () => ( {})),
|
|
19
19
|
{
|
|
20
20
|
uniAppX: isApp,
|
|
21
21
|
// 安卓
|
|
@@ -45,7 +45,8 @@ function uniAppX(options) {
|
|
|
45
45
|
preserve: false
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
}
|
|
48
|
+
},
|
|
49
|
+
...options.customAttributes ? { customAttributes: options.customAttributes } : {}
|
|
49
50
|
}
|
|
50
51
|
);
|
|
51
52
|
}
|
|
@@ -56,7 +57,7 @@ function toCssEntries(entries) {
|
|
|
56
57
|
return Array.isArray(entries) ? entries : [entries];
|
|
57
58
|
}
|
|
58
59
|
function hbuilderx(options = {}) {
|
|
59
|
-
const baseDir =
|
|
60
|
+
const baseDir = _chunkSIZNRUIVjs.resolveTailwindcssBasedir.call(void 0, options.base);
|
|
60
61
|
const cssEntries = toCssEntries(options.cssEntries);
|
|
61
62
|
const tailwindConfig = {
|
|
62
63
|
v2: {
|
|
@@ -94,6 +95,9 @@ function hbuilderx(options = {}) {
|
|
|
94
95
|
tailwind: resolvedTailwind
|
|
95
96
|
}
|
|
96
97
|
};
|
|
98
|
+
if (options.customAttributes) {
|
|
99
|
+
preset.customAttributes = options.customAttributes;
|
|
100
|
+
}
|
|
97
101
|
if (options.rem2rpx !== void 0) {
|
|
98
102
|
preset.rem2rpx = options.rem2rpx;
|
|
99
103
|
}
|
package/dist/presets.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
defuOverrideArray
|
|
9
9
|
} from "./chunk-ZNKIYZRQ.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-SCOGAO45.mjs";
|
|
11
11
|
|
|
12
12
|
// src/presets.ts
|
|
13
13
|
import process from "process";
|
|
@@ -15,7 +15,7 @@ function uniAppX(options) {
|
|
|
15
15
|
logger.info(`UNI_PLATFORM: ${process.env.UNI_PLATFORM}`);
|
|
16
16
|
const isApp = process.env.UNI_PLATFORM === "app" || process.env.UNI_PLATFORM === "app-plus" || process.env.UNI_PLATFORM === "app-harmony";
|
|
17
17
|
return defuOverrideArray(
|
|
18
|
-
options.rawOptions,
|
|
18
|
+
options.rawOptions ?? {},
|
|
19
19
|
{
|
|
20
20
|
uniAppX: isApp,
|
|
21
21
|
// 安卓
|
|
@@ -45,7 +45,8 @@ function uniAppX(options) {
|
|
|
45
45
|
preserve: false
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
}
|
|
48
|
+
},
|
|
49
|
+
...options.customAttributes ? { customAttributes: options.customAttributes } : {}
|
|
49
50
|
}
|
|
50
51
|
);
|
|
51
52
|
}
|
|
@@ -94,6 +95,9 @@ function hbuilderx(options = {}) {
|
|
|
94
95
|
tailwind: resolvedTailwind
|
|
95
96
|
}
|
|
96
97
|
};
|
|
98
|
+
if (options.customAttributes) {
|
|
99
|
+
preset.customAttributes = options.customAttributes;
|
|
100
|
+
}
|
|
97
101
|
if (options.rem2rpx !== void 0) {
|
|
98
102
|
preset.rem2rpx = options.rem2rpx;
|
|
99
103
|
}
|
package/dist/types.d.mts
CHANGED
|
@@ -555,6 +555,11 @@ interface IJsHandlerOptions {
|
|
|
555
555
|
ignoreCallExpressionIdentifiers?: (string | RegExp)[];
|
|
556
556
|
uniAppX?: boolean;
|
|
557
557
|
moduleSpecifierReplacements?: Record<string, string>;
|
|
558
|
+
/**
|
|
559
|
+
* When true, the handler treats the input as a standalone expression instead of a full program.
|
|
560
|
+
* Useful for template bindings such as `:class="{ 'foo bar': cond }"`.
|
|
561
|
+
*/
|
|
562
|
+
wrapExpression?: boolean;
|
|
558
563
|
/**
|
|
559
564
|
* Absolute path of the module currently being transformed.
|
|
560
565
|
* Required when enabling cross-file analysis.
|
|
@@ -598,6 +603,7 @@ interface ITemplateHandlerOptions extends ICommonReplaceOptions {
|
|
|
598
603
|
disabledDefaultTemplateHandler?: boolean;
|
|
599
604
|
quote?: string | null;
|
|
600
605
|
ignoreHead?: boolean;
|
|
606
|
+
wrapExpression?: boolean;
|
|
601
607
|
}
|
|
602
608
|
type InternalUserDefinedOptions = Required<Omit<UserDefinedOptions, 'supportCustomLengthUnitsPatch' | 'customReplaceDictionary' | 'cache'> & {
|
|
603
609
|
supportCustomLengthUnitsPatch: ILengthUnitsPatchOptions | boolean;
|
package/dist/types.d.ts
CHANGED
|
@@ -555,6 +555,11 @@ interface IJsHandlerOptions {
|
|
|
555
555
|
ignoreCallExpressionIdentifiers?: (string | RegExp)[];
|
|
556
556
|
uniAppX?: boolean;
|
|
557
557
|
moduleSpecifierReplacements?: Record<string, string>;
|
|
558
|
+
/**
|
|
559
|
+
* When true, the handler treats the input as a standalone expression instead of a full program.
|
|
560
|
+
* Useful for template bindings such as `:class="{ 'foo bar': cond }"`.
|
|
561
|
+
*/
|
|
562
|
+
wrapExpression?: boolean;
|
|
558
563
|
/**
|
|
559
564
|
* Absolute path of the module currently being transformed.
|
|
560
565
|
* Required when enabling cross-file analysis.
|
|
@@ -598,6 +603,7 @@ interface ITemplateHandlerOptions extends ICommonReplaceOptions {
|
|
|
598
603
|
disabledDefaultTemplateHandler?: boolean;
|
|
599
604
|
quote?: string | null;
|
|
600
605
|
ignoreHead?: boolean;
|
|
606
|
+
wrapExpression?: boolean;
|
|
601
607
|
}
|
|
602
608
|
type InternalUserDefinedOptions = Required<Omit<UserDefinedOptions, 'supportCustomLengthUnitsPatch' | 'customReplaceDictionary' | 'cache'> & {
|
|
603
609
|
supportCustomLengthUnitsPatch: ILengthUnitsPatchOptions | boolean;
|
package/dist/types.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use strict";require('./chunk-O2IOQ3BD.js');
|
|
2
|
-
require('./chunk-
|
|
2
|
+
require('./chunk-R7GWRQDJ.js');
|
package/dist/types.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import "./chunk-YAN7TO2B.mjs";
|
|
2
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-SCOGAO45.mjs";
|
package/dist/vite.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkI6FBWASFjs = require('./chunk-I6FBWASF.js');
|
|
4
4
|
require('./chunk-W7BVY5S5.js');
|
|
5
5
|
require('./chunk-LTJQUORK.js');
|
|
6
6
|
require('./chunk-BUMQQPAO.js');
|
|
7
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-QA6SPWSQ.js');
|
|
8
8
|
require('./chunk-DWAEHRHN.js');
|
|
9
|
-
require('./chunk-
|
|
9
|
+
require('./chunk-SIZNRUIV.js');
|
|
10
10
|
require('./chunk-WXBFAARR.js');
|
|
11
11
|
require('./chunk-UW3WHSZ5.js');
|
|
12
|
-
require('./chunk-
|
|
12
|
+
require('./chunk-R7GWRQDJ.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
exports.UnifiedViteWeappTailwindcssPlugin =
|
|
15
|
+
exports.UnifiedViteWeappTailwindcssPlugin = _chunkI6FBWASFjs.UnifiedViteWeappTailwindcssPlugin;
|
package/dist/vite.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UnifiedViteWeappTailwindcssPlugin
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6IYMPBCH.mjs";
|
|
4
4
|
import "./chunk-KZUIVLPP.mjs";
|
|
5
5
|
import "./chunk-RRHPTTCP.mjs";
|
|
6
6
|
import "./chunk-667CYXAH.mjs";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-V35QS2PT.mjs";
|
|
8
8
|
import "./chunk-VSRDBMDB.mjs";
|
|
9
9
|
import "./chunk-3ARXMTWC.mjs";
|
|
10
10
|
import "./chunk-KZJLIZIK.mjs";
|
|
11
11
|
import "./chunk-ZNKIYZRQ.mjs";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-SCOGAO45.mjs";
|
|
13
13
|
export {
|
|
14
14
|
UnifiedViteWeappTailwindcssPlugin
|
|
15
15
|
};
|
package/dist/webpack.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkT5BSWDY2js = require('./chunk-T5BSWDY2.js');
|
|
4
4
|
require('./chunk-6GP37C26.js');
|
|
5
5
|
require('./chunk-W7BVY5S5.js');
|
|
6
6
|
require('./chunk-LTJQUORK.js');
|
|
7
7
|
require('./chunk-BUMQQPAO.js');
|
|
8
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-QA6SPWSQ.js');
|
|
9
9
|
require('./chunk-DWAEHRHN.js');
|
|
10
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-SIZNRUIV.js');
|
|
11
11
|
require('./chunk-WXBFAARR.js');
|
|
12
12
|
require('./chunk-UW3WHSZ5.js');
|
|
13
|
-
require('./chunk-
|
|
13
|
+
require('./chunk-R7GWRQDJ.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
exports.UnifiedWebpackPluginV5 =
|
|
16
|
+
exports.UnifiedWebpackPluginV5 = _chunkT5BSWDY2js.UnifiedWebpackPluginV5;
|
package/dist/webpack.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UnifiedWebpackPluginV5
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FPX2BD2A.mjs";
|
|
4
4
|
import "./chunk-2F7HOQQY.mjs";
|
|
5
5
|
import "./chunk-KZUIVLPP.mjs";
|
|
6
6
|
import "./chunk-RRHPTTCP.mjs";
|
|
7
7
|
import "./chunk-667CYXAH.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-V35QS2PT.mjs";
|
|
9
9
|
import "./chunk-VSRDBMDB.mjs";
|
|
10
10
|
import "./chunk-3ARXMTWC.mjs";
|
|
11
11
|
import "./chunk-KZJLIZIK.mjs";
|
|
12
12
|
import "./chunk-ZNKIYZRQ.mjs";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-SCOGAO45.mjs";
|
|
14
14
|
export {
|
|
15
15
|
UnifiedWebpackPluginV5
|
|
16
16
|
};
|
package/dist/webpack4.js
CHANGED
|
@@ -17,14 +17,14 @@ var _chunkBUMQQPAOjs = require('./chunk-BUMQQPAO.js');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkQA6SPWSQjs = require('./chunk-QA6SPWSQ.js');
|
|
21
21
|
require('./chunk-DWAEHRHN.js');
|
|
22
|
-
require('./chunk-
|
|
22
|
+
require('./chunk-SIZNRUIV.js');
|
|
23
23
|
require('./chunk-WXBFAARR.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
var _chunkUW3WHSZ5js = require('./chunk-UW3WHSZ5.js');
|
|
27
|
-
require('./chunk-
|
|
27
|
+
require('./chunk-R7GWRQDJ.js');
|
|
28
28
|
|
|
29
29
|
// src/bundlers/webpack/BaseUnifiedPlugin/v4.ts
|
|
30
30
|
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
@@ -34,7 +34,7 @@ var _webpacksources = require('webpack-sources');
|
|
|
34
34
|
var debug = _chunkBUMQQPAOjs.createDebug.call(void 0, );
|
|
35
35
|
var UnifiedWebpackPluginV4 = class {
|
|
36
36
|
constructor(options = {}) {
|
|
37
|
-
this.options =
|
|
37
|
+
this.options = _chunkQA6SPWSQjs.getCompilerContext.call(void 0, options);
|
|
38
38
|
this.appType = this.options.appType;
|
|
39
39
|
}
|
|
40
40
|
apply(compiler) {
|
|
@@ -71,8 +71,8 @@ var UnifiedWebpackPluginV4 = class {
|
|
|
71
71
|
ident: null,
|
|
72
72
|
type: null
|
|
73
73
|
};
|
|
74
|
-
compiler.hooks.compilation.tap(
|
|
75
|
-
compilation.hooks.normalModuleLoader.tap(
|
|
74
|
+
compiler.hooks.compilation.tap(_chunkQA6SPWSQjs.pluginName, (compilation) => {
|
|
75
|
+
compilation.hooks.normalModuleLoader.tap(_chunkQA6SPWSQjs.pluginName, (_loaderContext, module) => {
|
|
76
76
|
if (isExisted) {
|
|
77
77
|
const idx = module.loaders.findIndex((x) => x.loader.includes("postcss-loader"));
|
|
78
78
|
if (idx > -1) {
|
|
@@ -81,7 +81,7 @@ var UnifiedWebpackPluginV4 = class {
|
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
83
|
});
|
|
84
|
-
compiler.hooks.emit.tapPromise(
|
|
84
|
+
compiler.hooks.emit.tapPromise(_chunkQA6SPWSQjs.pluginName, async (compilation) => {
|
|
85
85
|
await patchPromise;
|
|
86
86
|
onStart();
|
|
87
87
|
debug("start");
|
package/dist/webpack4.mjs
CHANGED
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
import {
|
|
18
18
|
getCompilerContext,
|
|
19
19
|
pluginName
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-V35QS2PT.mjs";
|
|
21
21
|
import "./chunk-VSRDBMDB.mjs";
|
|
22
22
|
import "./chunk-3ARXMTWC.mjs";
|
|
23
23
|
import "./chunk-KZJLIZIK.mjs";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
} from "./chunk-ZNKIYZRQ.mjs";
|
|
27
27
|
import {
|
|
28
28
|
__dirname
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-SCOGAO45.mjs";
|
|
30
30
|
|
|
31
31
|
// src/bundlers/webpack/BaseUnifiedPlugin/v4.ts
|
|
32
32
|
import fs from "fs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-tailwindcss",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.4",
|
|
4
4
|
"description": "把 tailwindcss 原子化样式思想,带给小程序开发者们! bring tailwindcss to miniprogram developers!",
|
|
5
5
|
"author": "ice breaker <1324318532@qq.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -162,10 +162,12 @@
|
|
|
162
162
|
"@babel/parser": "~7.28.5",
|
|
163
163
|
"@babel/traverse": "~7.28.5",
|
|
164
164
|
"@babel/types": "~7.28.5",
|
|
165
|
+
"@tailwindcss-mangle/config": "^6.0.1",
|
|
165
166
|
"@vue/compiler-dom": "^3.5.22",
|
|
166
167
|
"@vue/compiler-sfc": "^3.5.22",
|
|
167
168
|
"@weapp-core/escape": "~5.0.1",
|
|
168
169
|
"@weapp-core/regex": "~1.0.1",
|
|
170
|
+
"cac": "^6.7.14",
|
|
169
171
|
"debug": "~4.4.3",
|
|
170
172
|
"htmlparser2": "10.0.0",
|
|
171
173
|
"loader-utils": "2.0.4",
|
|
@@ -176,8 +178,8 @@
|
|
|
176
178
|
"tailwindcss-patch": "^8.2.1",
|
|
177
179
|
"webpack-sources": "3.3.3",
|
|
178
180
|
"@weapp-tailwindcss/logger": "1.1.0",
|
|
179
|
-
"@weapp-tailwindcss/
|
|
180
|
-
"@weapp-tailwindcss/
|
|
181
|
+
"@weapp-tailwindcss/shared": "1.1.0",
|
|
182
|
+
"@weapp-tailwindcss/postcss": "2.0.2"
|
|
181
183
|
},
|
|
182
184
|
"scripts": {
|
|
183
185
|
"dev": "tsup --watch --sourcemap",
|
package/dist/chunk-4EUTRMUC.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// ../../node_modules/.pnpm/tsup@8.5.0_@microsoft+api-extractor@7.53.1_@types+node@24.9.2__@swc+core@1.13.5_@swc+he_60071210c2c46d45864288786f4ed86d/node_modules/tsup/assets/esm_shims.js
|
|
2
|
-
import path from "path";
|
|
3
|
-
import { fileURLToPath } from "url";
|
|
4
|
-
var getFilename = () => fileURLToPath(import.meta.url);
|
|
5
|
-
var getDirname = () => path.dirname(getFilename());
|
|
6
|
-
var __dirname = /* @__PURE__ */ getDirname();
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
__dirname
|
|
10
|
-
};
|
package/dist/chunk-QXSBMK2W.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// ../../node_modules/.pnpm/tsup@8.5.0_@microsoft+api-extractor@7.53.1_@types+node@24.9.2__@swc+core@1.13.5_@swc+he_60071210c2c46d45864288786f4ed86d/node_modules/tsup/assets/cjs_shims.js
|
|
2
|
-
var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
3
|
-
var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
exports.importMetaUrl = importMetaUrl;
|