unplugin-tailwindcss-mangle 4.1.1 → 5.0.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.
- package/README.md +6 -3
- package/dist/{chunk-X56D3GEL.js → chunk-DIT5PI2Q.js} +2 -2
- package/dist/{chunk-Z4RDCMY3.js → chunk-GVV277P6.js} +4 -4
- package/dist/{chunk-E66B4GJ5.cjs → chunk-KXU3DR5D.cjs} +3 -3
- package/dist/{chunk-DTQBBX45.js → chunk-WVLLWHGJ.js} +2 -2
- package/dist/esbuild.cjs +2 -2
- package/dist/esbuild.d.cts +1 -1
- package/dist/esbuild.d.ts +1 -1
- package/dist/esbuild.js +3 -3
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/loader.cjs +2 -2
- package/dist/loader.d.cts +2 -2
- package/dist/loader.d.ts +2 -2
- package/dist/loader.js +3 -3
- package/dist/nuxt.cjs +3 -3
- package/dist/nuxt.d.cts +2 -2
- package/dist/nuxt.d.ts +2 -2
- package/dist/nuxt.js +3 -3
- package/dist/rollup.cjs +2 -2
- package/dist/rollup.d.cts +1 -1
- package/dist/rollup.d.ts +1 -1
- package/dist/rollup.js +3 -3
- package/dist/utils.js +2 -2
- package/dist/vite.cjs +2 -2
- package/dist/vite.d.cts +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +3 -3
- package/dist/webpack.cjs +2 -2
- package/dist/webpack.d.cts +1 -1
- package/dist/webpack.d.ts +1 -1
- package/dist/webpack.js +3 -3
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -52,9 +52,11 @@ npx tw-patch install
|
|
|
52
52
|
### 3. add `prepare` script in your `package.json`
|
|
53
53
|
|
|
54
54
|
```json
|
|
55
|
+
{
|
|
55
56
|
"scripts": {
|
|
56
57
|
"prepare": "tw-patch install"
|
|
57
|
-
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
58
60
|
```
|
|
59
61
|
|
|
60
62
|
### 4. Run extract command
|
|
@@ -101,9 +103,10 @@ You will see all class was renamed to `tw-*`
|
|
|
101
103
|
// esm
|
|
102
104
|
import { webpackPlugin as utwm } from 'unplugin-tailwindcss-mangle'
|
|
103
105
|
// or cjs
|
|
104
|
-
const utwm = require('unplugin-tailwindcss-mangle/webpack')
|
|
106
|
+
// const utwm = require('unplugin-tailwindcss-mangle/webpack')
|
|
105
107
|
// use this webpack plugin
|
|
106
108
|
// for example next.config.js
|
|
109
|
+
// eslint-disable-next-line perfectionist/sort-imports
|
|
107
110
|
const { defineConfig } = require('@vue/cli-service')
|
|
108
111
|
// vue.config.js
|
|
109
112
|
module.exports = defineConfig({
|
|
@@ -114,13 +117,13 @@ module.exports = defineConfig({
|
|
|
114
117
|
}
|
|
115
118
|
}
|
|
116
119
|
})
|
|
117
|
-
|
|
118
120
|
```
|
|
119
121
|
|
|
120
122
|
#### Nuxt 3
|
|
121
123
|
|
|
122
124
|
```ts
|
|
123
125
|
import nuxtPlugin from 'unplugin-tailwindcss-mangle/nuxt'
|
|
126
|
+
|
|
124
127
|
export default defineNuxtConfig({
|
|
125
128
|
// ...
|
|
126
129
|
// https://github.com/nuxt/nuxt/issues/20428
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// ../../node_modules/.pnpm/tsup@8.
|
|
2
|
-
import { fileURLToPath } from "url";
|
|
1
|
+
// ../../node_modules/.pnpm/tsup@8.5.0_jiti@2.6.1_postcss@8.5.6_tsx@4.20.6_typescript@5.9.3_yaml@2.8.1/node_modules/tsup/assets/esm_shims.js
|
|
3
2
|
import path from "path";
|
|
3
|
+
import { fileURLToPath } from "url";
|
|
4
4
|
var getFilename = () => fileURLToPath(import.meta.url);
|
|
5
5
|
var getDirname = () => path.dirname(getFilename());
|
|
6
6
|
var __dirname = /* @__PURE__ */ getDirname();
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getGroupedEntries,
|
|
3
3
|
pluginName,
|
|
4
4
|
posix
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WVLLWHGJ.js";
|
|
6
6
|
import {
|
|
7
7
|
__dirname
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DIT5PI2Q.js";
|
|
9
9
|
|
|
10
10
|
// src/core/plugin.ts
|
|
11
11
|
import { createUnplugin } from "unplugin";
|
|
@@ -24,9 +24,9 @@ var factory = (options) => {
|
|
|
24
24
|
enforce: "pre",
|
|
25
25
|
async buildStart() {
|
|
26
26
|
await ctx.initConfig({
|
|
27
|
-
|
|
27
|
+
transformerOptions: options
|
|
28
28
|
});
|
|
29
|
-
filter = createFilter(ctx.options.include, ctx.options.exclude);
|
|
29
|
+
filter = createFilter(ctx.options.sources?.include, ctx.options.sources?.exclude);
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
@@ -21,9 +21,9 @@ var factory = (options) => {
|
|
|
21
21
|
enforce: "pre",
|
|
22
22
|
async buildStart() {
|
|
23
23
|
await ctx.initConfig({
|
|
24
|
-
|
|
24
|
+
transformerOptions: options
|
|
25
25
|
});
|
|
26
|
-
filter = _pluginutils.createFilter.call(void 0, ctx.options.include, ctx.options.exclude);
|
|
26
|
+
filter = _pluginutils.createFilter.call(void 0, _optionalChain([ctx, 'access', _ => _.options, 'access', _2 => _2.sources, 'optionalAccess', _3 => _3.include]), _optionalChain([ctx, 'access', _4 => _4.options, 'access', _5 => _5.sources, 'optionalAccess', _6 => _6.exclude]));
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/utils.ts
|
|
2
|
-
import fs from "
|
|
3
|
-
import process2 from "
|
|
2
|
+
import fs from "fs/promises";
|
|
3
|
+
import process2 from "process";
|
|
4
4
|
import { groupBy } from "@tailwindcss-mangle/shared";
|
|
5
5
|
|
|
6
6
|
// ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
|
package/dist/esbuild.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkKXU3DR5Dcjs = require('./chunk-KXU3DR5D.cjs');
|
|
4
4
|
require('./chunk-BZZ6FFT4.cjs');
|
|
5
5
|
|
|
6
6
|
// src/esbuild.ts
|
|
7
|
-
var esbuild_default =
|
|
7
|
+
var esbuild_default = _chunkKXU3DR5Dcjs.plugin_default.esbuild;
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
exports.default = esbuild_default;
|
package/dist/esbuild.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as esbuild from 'esbuild';
|
|
2
2
|
import * as _tailwindcss_mangle_config from '@tailwindcss-mangle/config';
|
|
3
3
|
|
|
4
|
-
declare const _default: (options?: _tailwindcss_mangle_config.
|
|
4
|
+
declare const _default: (options?: _tailwindcss_mangle_config.TransformerOptions | undefined) => esbuild.Plugin;
|
|
5
5
|
|
|
6
6
|
export = _default;
|
package/dist/esbuild.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as esbuild from 'esbuild';
|
|
2
2
|
import * as _tailwindcss_mangle_config from '@tailwindcss-mangle/config';
|
|
3
3
|
|
|
4
|
-
declare const _default: (options?: _tailwindcss_mangle_config.
|
|
4
|
+
declare const _default: (options?: _tailwindcss_mangle_config.TransformerOptions | undefined) => esbuild.Plugin;
|
|
5
5
|
|
|
6
6
|
export { _default as default };
|
package/dist/esbuild.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
plugin_default
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-GVV277P6.js";
|
|
4
|
+
import "./chunk-WVLLWHGJ.js";
|
|
5
|
+
import "./chunk-DIT5PI2Q.js";
|
|
6
6
|
|
|
7
7
|
// src/esbuild.ts
|
|
8
8
|
var esbuild_default = plugin_default.esbuild;
|
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkKXU3DR5Dcjs = require('./chunk-KXU3DR5D.cjs');
|
|
4
4
|
require('./chunk-BZZ6FFT4.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
exports.default =
|
|
7
|
+
exports.default = _chunkKXU3DR5Dcjs.plugin_default;
|
|
8
8
|
|
|
9
9
|
module.exports = exports.default;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _unplugin from 'unplugin';
|
|
2
2
|
import * as _tailwindcss_mangle_config from '@tailwindcss-mangle/config';
|
|
3
3
|
|
|
4
|
-
declare const unplugin: _unplugin.UnpluginInstance<_tailwindcss_mangle_config.
|
|
4
|
+
declare const unplugin: _unplugin.UnpluginInstance<_tailwindcss_mangle_config.TransformerOptions | undefined, boolean>;
|
|
5
5
|
|
|
6
6
|
export = unplugin;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _unplugin from 'unplugin';
|
|
2
2
|
import * as _tailwindcss_mangle_config from '@tailwindcss-mangle/config';
|
|
3
3
|
|
|
4
|
-
declare const unplugin: _unplugin.UnpluginInstance<_tailwindcss_mangle_config.
|
|
4
|
+
declare const unplugin: _unplugin.UnpluginInstance<_tailwindcss_mangle_config.TransformerOptions | undefined, boolean>;
|
|
5
5
|
|
|
6
6
|
export { unplugin as default };
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
plugin_default
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-GVV277P6.js";
|
|
4
|
+
import "./chunk-WVLLWHGJ.js";
|
|
5
|
+
import "./chunk-DIT5PI2Q.js";
|
|
6
6
|
export {
|
|
7
7
|
plugin_default as default
|
|
8
8
|
};
|
package/dist/loader.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/loader.ts
|
|
2
2
|
var _core = require('@tailwindcss-mangle/core');
|
|
3
|
-
|
|
3
|
+
async function TailwindcssMangleWebpackLoader(source) {
|
|
4
4
|
const callback = this.async();
|
|
5
5
|
const { ctx } = this.getOptions();
|
|
6
6
|
const { code } = await _core.cssHandler.call(void 0, source, {
|
|
@@ -8,7 +8,7 @@ var TailwindcssMangleWebpackLoader = async function(source) {
|
|
|
8
8
|
id: this.resource
|
|
9
9
|
});
|
|
10
10
|
callback(null, code);
|
|
11
|
-
}
|
|
11
|
+
}
|
|
12
12
|
var loader_default = TailwindcssMangleWebpackLoader;
|
|
13
13
|
|
|
14
14
|
|
package/dist/loader.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Context } from '@tailwindcss-mangle/core';
|
|
2
2
|
import { LoaderContext } from 'webpack';
|
|
3
3
|
|
|
4
|
-
declare
|
|
4
|
+
declare function TailwindcssMangleWebpackLoader(this: LoaderContext<{
|
|
5
5
|
ctx: Context;
|
|
6
|
-
}>, source: string)
|
|
6
|
+
}>, source: string): Promise<void>;
|
|
7
7
|
|
|
8
8
|
export = TailwindcssMangleWebpackLoader;
|
package/dist/loader.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Context } from '@tailwindcss-mangle/core';
|
|
2
2
|
import { LoaderContext } from 'webpack';
|
|
3
3
|
|
|
4
|
-
declare
|
|
4
|
+
declare function TailwindcssMangleWebpackLoader(this: LoaderContext<{
|
|
5
5
|
ctx: Context;
|
|
6
|
-
}>, source: string)
|
|
6
|
+
}>, source: string): Promise<void>;
|
|
7
7
|
|
|
8
8
|
export { TailwindcssMangleWebpackLoader as default };
|
package/dist/loader.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-DIT5PI2Q.js";
|
|
2
2
|
|
|
3
3
|
// src/loader.ts
|
|
4
4
|
import { cssHandler } from "@tailwindcss-mangle/core";
|
|
5
|
-
|
|
5
|
+
async function TailwindcssMangleWebpackLoader(source) {
|
|
6
6
|
const callback = this.async();
|
|
7
7
|
const { ctx } = this.getOptions();
|
|
8
8
|
const { code } = await cssHandler(source, {
|
|
@@ -10,7 +10,7 @@ var TailwindcssMangleWebpackLoader = async function(source) {
|
|
|
10
10
|
id: this.resource
|
|
11
11
|
});
|
|
12
12
|
callback(null, code);
|
|
13
|
-
}
|
|
13
|
+
}
|
|
14
14
|
var loader_default = TailwindcssMangleWebpackLoader;
|
|
15
15
|
export {
|
|
16
16
|
loader_default as default
|
package/dist/nuxt.cjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkKXU3DR5Dcjs = require('./chunk-KXU3DR5D.cjs');
|
|
4
4
|
require('./chunk-BZZ6FFT4.cjs');
|
|
5
5
|
|
|
6
6
|
// src/nuxt.ts
|
|
7
7
|
function nuxt_default(options = {}, nuxt) {
|
|
8
8
|
nuxt.hook("webpack:config", (config) => {
|
|
9
9
|
config.plugins = config.plugins || [];
|
|
10
|
-
config.plugins.unshift(
|
|
10
|
+
config.plugins.unshift(_chunkKXU3DR5Dcjs.plugin_default.webpack(options));
|
|
11
11
|
});
|
|
12
12
|
nuxt.hook("vite:extendConfig", (config) => {
|
|
13
13
|
config.plugins = config.plugins || [];
|
|
14
|
-
config.plugins.push(
|
|
14
|
+
config.plugins.push(_chunkKXU3DR5Dcjs.plugin_default.vite(options));
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
17
|
|
package/dist/nuxt.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TransformerOptions } from '@tailwindcss-mangle/config';
|
|
2
2
|
|
|
3
|
-
declare function export_default(options:
|
|
3
|
+
declare function export_default(options: TransformerOptions | undefined, nuxt: any): void;
|
|
4
4
|
|
|
5
5
|
export = export_default;
|
package/dist/nuxt.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TransformerOptions } from '@tailwindcss-mangle/config';
|
|
2
2
|
|
|
3
|
-
declare function export_default(options:
|
|
3
|
+
declare function export_default(options: TransformerOptions | undefined, nuxt: any): void;
|
|
4
4
|
|
|
5
5
|
export { export_default as default };
|
package/dist/nuxt.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
plugin_default
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-GVV277P6.js";
|
|
4
|
+
import "./chunk-WVLLWHGJ.js";
|
|
5
|
+
import "./chunk-DIT5PI2Q.js";
|
|
6
6
|
|
|
7
7
|
// src/nuxt.ts
|
|
8
8
|
function nuxt_default(options = {}, nuxt) {
|
package/dist/rollup.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkKXU3DR5Dcjs = require('./chunk-KXU3DR5D.cjs');
|
|
4
4
|
require('./chunk-BZZ6FFT4.cjs');
|
|
5
5
|
|
|
6
6
|
// src/rollup.ts
|
|
7
|
-
var rollup_default =
|
|
7
|
+
var rollup_default = _chunkKXU3DR5Dcjs.plugin_default.rollup;
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
exports.default = rollup_default;
|
package/dist/rollup.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as rollup from 'rollup';
|
|
2
2
|
import * as _tailwindcss_mangle_config from '@tailwindcss-mangle/config';
|
|
3
3
|
|
|
4
|
-
declare const _default: (options?: _tailwindcss_mangle_config.
|
|
4
|
+
declare const _default: (options?: _tailwindcss_mangle_config.TransformerOptions | undefined) => rollup.Plugin<any> | rollup.Plugin<any>[];
|
|
5
5
|
|
|
6
6
|
export = _default;
|
package/dist/rollup.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as rollup from 'rollup';
|
|
2
2
|
import * as _tailwindcss_mangle_config from '@tailwindcss-mangle/config';
|
|
3
3
|
|
|
4
|
-
declare const _default: (options?: _tailwindcss_mangle_config.
|
|
4
|
+
declare const _default: (options?: _tailwindcss_mangle_config.TransformerOptions | undefined) => rollup.Plugin<any> | rollup.Plugin<any>[];
|
|
5
5
|
|
|
6
6
|
export { _default as default };
|
package/dist/rollup.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
plugin_default
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-GVV277P6.js";
|
|
4
|
+
import "./chunk-WVLLWHGJ.js";
|
|
5
|
+
import "./chunk-DIT5PI2Q.js";
|
|
6
6
|
|
|
7
7
|
// src/rollup.ts
|
|
8
8
|
var rollup_default = plugin_default.rollup;
|
package/dist/utils.js
CHANGED
package/dist/vite.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkKXU3DR5Dcjs = require('./chunk-KXU3DR5D.cjs');
|
|
4
4
|
require('./chunk-BZZ6FFT4.cjs');
|
|
5
5
|
|
|
6
6
|
// src/vite.ts
|
|
7
|
-
var vite_default =
|
|
7
|
+
var vite_default = _chunkKXU3DR5Dcjs.plugin_default.vite;
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
exports.default = vite_default;
|
package/dist/vite.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as vite from 'vite';
|
|
2
2
|
import * as _tailwindcss_mangle_config from '@tailwindcss-mangle/config';
|
|
3
3
|
|
|
4
|
-
declare const _default: (options?: _tailwindcss_mangle_config.
|
|
4
|
+
declare const _default: (options?: _tailwindcss_mangle_config.TransformerOptions | undefined) => vite.Plugin<any> | vite.Plugin<any>[];
|
|
5
5
|
|
|
6
6
|
export = _default;
|
package/dist/vite.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as vite from 'vite';
|
|
2
2
|
import * as _tailwindcss_mangle_config from '@tailwindcss-mangle/config';
|
|
3
3
|
|
|
4
|
-
declare const _default: (options?: _tailwindcss_mangle_config.
|
|
4
|
+
declare const _default: (options?: _tailwindcss_mangle_config.TransformerOptions | undefined) => vite.Plugin<any> | vite.Plugin<any>[];
|
|
5
5
|
|
|
6
6
|
export { _default as default };
|
package/dist/vite.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
plugin_default
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-GVV277P6.js";
|
|
4
|
+
import "./chunk-WVLLWHGJ.js";
|
|
5
|
+
import "./chunk-DIT5PI2Q.js";
|
|
6
6
|
|
|
7
7
|
// src/vite.ts
|
|
8
8
|
var vite_default = plugin_default.vite;
|
package/dist/webpack.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkKXU3DR5Dcjs = require('./chunk-KXU3DR5D.cjs');
|
|
4
4
|
require('./chunk-BZZ6FFT4.cjs');
|
|
5
5
|
|
|
6
6
|
// src/webpack.ts
|
|
7
|
-
var webpack_default =
|
|
7
|
+
var webpack_default = _chunkKXU3DR5Dcjs.plugin_default.webpack;
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
exports.default = webpack_default;
|
package/dist/webpack.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as webpack from 'webpack';
|
|
2
2
|
import * as _tailwindcss_mangle_config from '@tailwindcss-mangle/config';
|
|
3
3
|
|
|
4
|
-
declare const _default: (options?: _tailwindcss_mangle_config.
|
|
4
|
+
declare const _default: (options?: _tailwindcss_mangle_config.TransformerOptions | undefined) => webpack.WebpackPluginInstance;
|
|
5
5
|
|
|
6
6
|
export = _default;
|
package/dist/webpack.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as webpack from 'webpack';
|
|
2
2
|
import * as _tailwindcss_mangle_config from '@tailwindcss-mangle/config';
|
|
3
3
|
|
|
4
|
-
declare const _default: (options?: _tailwindcss_mangle_config.
|
|
4
|
+
declare const _default: (options?: _tailwindcss_mangle_config.TransformerOptions | undefined) => webpack.WebpackPluginInstance;
|
|
5
5
|
|
|
6
6
|
export { _default as default };
|
package/dist/webpack.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
plugin_default
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-GVV277P6.js";
|
|
4
|
+
import "./chunk-WVLLWHGJ.js";
|
|
5
|
+
import "./chunk-DIT5PI2Q.js";
|
|
6
6
|
|
|
7
7
|
// src/webpack.ts
|
|
8
8
|
var webpack_default = plugin_default.webpack;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unplugin-tailwindcss-mangle",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "5.0.0",
|
|
5
5
|
"description": "mangle tailwindcss utilities class plugin. support vite and webpack!",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -65,13 +65,13 @@
|
|
|
65
65
|
"dist"
|
|
66
66
|
],
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@rollup/pluginutils": "^5.
|
|
68
|
+
"@rollup/pluginutils": "^5.3.0",
|
|
69
69
|
"is-css-request": "^1.0.1",
|
|
70
|
-
"magic-string": "^0.30.
|
|
71
|
-
"unplugin": "^2.3.
|
|
72
|
-
"@tailwindcss-mangle/config": "^
|
|
73
|
-
"@tailwindcss-mangle/shared": "^4.1.
|
|
74
|
-
"@tailwindcss-mangle/core": "^
|
|
70
|
+
"magic-string": "^0.30.21",
|
|
71
|
+
"unplugin": "^2.3.10",
|
|
72
|
+
"@tailwindcss-mangle/config": "^6.0.0",
|
|
73
|
+
"@tailwindcss-mangle/shared": "^4.1.1",
|
|
74
|
+
"@tailwindcss-mangle/core": "^5.0.0"
|
|
75
75
|
},
|
|
76
76
|
"publishConfig": {
|
|
77
77
|
"access": "public",
|