unplugin-raw 0.3.0 → 0.4.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 CHANGED
@@ -68,9 +68,10 @@ module.exports = {
68
68
  ## Usage
69
69
 
70
70
  ```ts
71
- import text2 from './js.js?raw'
72
- import text3 from './jsx.jsx?raw'
73
- import text from './ts.ts?raw'
71
+ import text from './js.js?raw'
72
+ import text2 from './jsx.jsx?raw'
73
+ import text3 from './ts.ts?raw'
74
+ import text4 from './with.js' with { type: 'text' }
74
75
  ```
75
76
 
76
77
  ## Sponsors
package/dist/esbuild.js CHANGED
@@ -1,9 +1,7 @@
1
- import {
2
- index_default
3
- } from "./chunk-YVIWXCBI.js";
1
+ import { src_default } from "./src-CKYUwO6i.js";
4
2
 
5
- // src/esbuild.ts
6
- var esbuild_default = index_default.esbuild;
7
- export {
8
- esbuild_default as default
9
- };
3
+ //#region src/esbuild.ts
4
+ var esbuild_default = src_default.esbuild;
5
+
6
+ //#endregion
7
+ export { esbuild_default as default };
package/dist/index.js CHANGED
@@ -1,8 +1,3 @@
1
- import {
2
- guessLoader,
3
- index_default
4
- } from "./chunk-YVIWXCBI.js";
5
- export {
6
- index_default as default,
7
- guessLoader
8
- };
1
+ import { guessLoader, src_default } from "./src-CKYUwO6i.js";
2
+
3
+ export { src_default as default, guessLoader };
package/dist/rolldown.js CHANGED
@@ -1,9 +1,7 @@
1
- import {
2
- index_default
3
- } from "./chunk-YVIWXCBI.js";
1
+ import { src_default } from "./src-CKYUwO6i.js";
4
2
 
5
- // src/rolldown.ts
6
- var rolldown_default = index_default.rolldown;
7
- export {
8
- rolldown_default as default
9
- };
3
+ //#region src/rolldown.ts
4
+ var rolldown_default = src_default.rolldown;
5
+
6
+ //#endregion
7
+ export { rolldown_default as default };
package/dist/rollup.js CHANGED
@@ -1,9 +1,7 @@
1
- import {
2
- index_default
3
- } from "./chunk-YVIWXCBI.js";
1
+ import { src_default } from "./src-CKYUwO6i.js";
4
2
 
5
- // src/rollup.ts
6
- var rollup_default = index_default.rollup;
7
- export {
8
- rollup_default as default
9
- };
3
+ //#region src/rollup.ts
4
+ var rollup_default = src_default.rollup;
5
+
6
+ //#endregion
7
+ export { rollup_default as default };
package/dist/rspack.js CHANGED
@@ -1,9 +1,7 @@
1
- import {
2
- index_default
3
- } from "./chunk-YVIWXCBI.js";
1
+ import { src_default } from "./src-CKYUwO6i.js";
4
2
 
5
- // src/rspack.ts
6
- var rspack_default = index_default.rspack;
7
- export {
8
- rspack_default as default
9
- };
3
+ //#region src/rspack.ts
4
+ var rspack_default = src_default.rspack;
5
+
6
+ //#endregion
7
+ export { rspack_default as default };
@@ -0,0 +1,88 @@
1
+ import { readFile } from "node:fs/promises";
2
+ import path from "node:path";
3
+ import { createFilter } from "@rollup/pluginutils";
4
+ import { createUnplugin } from "unplugin";
5
+
6
+ //#region src/core/options.ts
7
+ function resolveOptions(options) {
8
+ return {
9
+ ...options,
10
+ enforce: "enforce" in options ? options.enforce : "pre",
11
+ transform: {
12
+ ...options.transform,
13
+ include: options.transform?.include || [/\.[cm]?[jt]sx?$/],
14
+ exclude: options.transform?.exclude || [/node_modules/],
15
+ options: options.transform?.options || {}
16
+ }
17
+ };
18
+ }
19
+
20
+ //#endregion
21
+ //#region src/index.ts
22
+ const unplugin = createUnplugin((rawOptions = {}, meta) => {
23
+ const options = resolveOptions(rawOptions);
24
+ const transformFilter = createFilter(options.transform.include, options.transform.exclude);
25
+ return {
26
+ name: "unplugin-raw",
27
+ enforce: options.enforce,
28
+ resolveId: meta.framework === "rollup" ? async function(id, importer, opt) {
29
+ if (opt?.attributes?.type === "text") if (id.includes("?")) id += "&raw";
30
+ else id += "?raw";
31
+ if (!rawRE.test(id)) return;
32
+ const file = cleanUrl(id);
33
+ const resolved = await this.resolve(file, importer);
34
+ if (!resolved) return;
35
+ return id.replace(file, resolved.id);
36
+ } : undefined,
37
+ loadInclude: (id) => rawRE.test(id),
38
+ async load(id) {
39
+ const file = cleanUrl(id);
40
+ let contents = await readFile(file, "utf-8");
41
+ if (transformFilter(file)) {
42
+ let transform;
43
+ const nativeContext = this.getNativeBuildContext?.();
44
+ if (nativeContext?.framework === "esbuild") ({transform} = nativeContext.build.esbuild);
45
+ else transform = (await import("esbuild")).transform;
46
+ contents = (await transform(contents, {
47
+ loader: guessLoader(file),
48
+ ...options.transform.options
49
+ })).code;
50
+ }
51
+ return `export default ${JSON.stringify(contents)}`;
52
+ },
53
+ esbuild: { setup(build) {
54
+ build.onLoad({ filter: /.*/ }, (args) => {
55
+ if (args.with.type === "text") return { contents: "export default \"123\"" };
56
+ });
57
+ } }
58
+ };
59
+ });
60
+ var src_default = unplugin;
61
+ const rawRE = /[&?]raw(?:&|$)/;
62
+ const postfixRE = /[#?].*$/s;
63
+ function cleanUrl(url) {
64
+ return url.replace(postfixRE, "");
65
+ }
66
+ const ExtToLoader = {
67
+ ".js": "js",
68
+ ".mjs": "js",
69
+ ".cjs": "js",
70
+ ".jsx": "jsx",
71
+ ".ts": "ts",
72
+ ".cts": "ts",
73
+ ".mts": "ts",
74
+ ".tsx": "tsx",
75
+ ".css": "css",
76
+ ".less": "css",
77
+ ".stylus": "css",
78
+ ".scss": "css",
79
+ ".sass": "css",
80
+ ".json": "json",
81
+ ".txt": "text"
82
+ };
83
+ function guessLoader(id) {
84
+ return ExtToLoader[path.extname(id).toLowerCase()] || "js";
85
+ }
86
+
87
+ //#endregion
88
+ export { guessLoader, src_default };
package/dist/vite.js CHANGED
@@ -1,9 +1,7 @@
1
- import {
2
- index_default
3
- } from "./chunk-YVIWXCBI.js";
1
+ import { src_default } from "./src-CKYUwO6i.js";
4
2
 
5
- // src/vite.ts
6
- var vite_default = index_default.vite;
7
- export {
8
- vite_default as default
9
- };
3
+ //#region src/vite.ts
4
+ var vite_default = src_default.vite;
5
+
6
+ //#endregion
7
+ export { vite_default as default };
package/dist/webpack.js CHANGED
@@ -1,9 +1,7 @@
1
- import {
2
- index_default
3
- } from "./chunk-YVIWXCBI.js";
1
+ import { src_default } from "./src-CKYUwO6i.js";
4
2
 
5
- // src/webpack.ts
6
- var webpack_default = index_default.webpack;
7
- export {
8
- webpack_default as default
9
- };
3
+ //#region src/webpack.ts
4
+ var webpack_default = src_default.webpack;
5
+
6
+ //#endregion
7
+ export { webpack_default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unplugin-raw",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Transform file to a default-export string.",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -27,34 +27,13 @@
27
27
  "module": "./dist/index.js",
28
28
  "types": "./dist/index.d.ts",
29
29
  "exports": {
30
- ".": {
31
- "require": "./dist/index.cjs",
32
- "import": "./dist/index.js"
33
- },
34
- "./vite": {
35
- "require": "./dist/vite.cjs",
36
- "import": "./dist/vite.js"
37
- },
38
- "./webpack": {
39
- "require": "./dist/webpack.cjs",
40
- "import": "./dist/webpack.js"
41
- },
42
- "./rspack": {
43
- "require": "./dist/rspack.cjs",
44
- "import": "./dist/rspack.js"
45
- },
46
- "./rollup": {
47
- "require": "./dist/rollup.cjs",
48
- "import": "./dist/rollup.js"
49
- },
50
- "./rolldown": {
51
- "require": "./dist/rolldown.cjs",
52
- "import": "./dist/rolldown.js"
53
- },
54
- "./esbuild": {
55
- "require": "./dist/esbuild.cjs",
56
- "import": "./dist/esbuild.js"
57
- },
30
+ ".": "./dist/index.js",
31
+ "./vite": "./dist/vite.js",
32
+ "./webpack": "./dist/webpack.js",
33
+ "./rspack": "./dist/rspack.js",
34
+ "./rollup": "./dist/rollup.js",
35
+ "./rolldown": "./dist/rolldown.js",
36
+ "./esbuild": "./dist/esbuild.js",
58
37
  "./*": [
59
38
  "./*",
60
39
  "./*.d.ts"
@@ -74,21 +53,21 @@
74
53
  "dependencies": {
75
54
  "@rollup/pluginutils": "^5.1.4",
76
55
  "esbuild": "^0.24.2",
77
- "unplugin": "^2.1.0"
56
+ "unplugin": "^2.1.2"
78
57
  },
79
58
  "devDependencies": {
80
- "@sxzz/eslint-config": "^4.5.1",
81
- "@sxzz/prettier-config": "^2.0.2",
82
- "@types/node": "^22.10.2",
83
- "bumpp": "^9.9.2",
84
- "eslint": "^9.17.0",
59
+ "@sxzz/eslint-config": "^5.0.0",
60
+ "@sxzz/prettier-config": "^2.1.1",
61
+ "@types/node": "^22.13.1",
62
+ "bumpp": "^10.0.1",
63
+ "eslint": "^9.19.0",
85
64
  "prettier": "^3.4.2",
86
- "rollup": "^4.29.1",
87
- "tsup": "^8.3.5",
65
+ "rollup": "^4.34.2",
66
+ "tsdown": "^0.5.6",
88
67
  "tsx": "^4.19.2",
89
- "typescript": "^5.7.2",
90
- "vite": "^6.0.6",
91
- "vitest": "^2.1.8"
68
+ "typescript": "^5.7.3",
69
+ "vite": "^6.0.11",
70
+ "vitest": "^3.0.5"
92
71
  },
93
72
  "engines": {
94
73
  "node": ">=18.12.0"
@@ -97,8 +76,8 @@
97
76
  "scripts": {
98
77
  "lint": "eslint --cache .",
99
78
  "lint:fix": "pnpm run lint --fix",
100
- "build": "tsup",
101
- "dev": "tsup --watch",
79
+ "build": "tsdown",
80
+ "dev": "tsdown --watch",
102
81
  "test": "vitest",
103
82
  "typecheck": "tsc --noEmit",
104
83
  "release": "bumpp && pnpm publish"
@@ -1,95 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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; }// src/index.ts
2
- var _promises = require('fs/promises');
3
- var _path = require('path'); var _path2 = _interopRequireDefault(_path);
4
- var _pluginutils = require('@rollup/pluginutils');
5
- var _unplugin = require('unplugin');
6
-
7
- // src/core/options.ts
8
- function resolveOptions(options) {
9
- return {
10
- ...options,
11
- enforce: "enforce" in options ? options.enforce : "pre",
12
- transform: {
13
- ...options.transform,
14
- include: _optionalChain([options, 'access', _ => _.transform, 'optionalAccess', _2 => _2.include]) || [/\.[cm]?[jt]sx?$/],
15
- exclude: _optionalChain([options, 'access', _3 => _3.transform, 'optionalAccess', _4 => _4.exclude]) || [/node_modules/],
16
- options: _optionalChain([options, 'access', _5 => _5.transform, 'optionalAccess', _6 => _6.options]) || {}
17
- }
18
- };
19
- }
20
-
21
- // src/index.ts
22
- var unplugin = _unplugin.createUnplugin.call(void 0,
23
- (rawOptions = {}, meta) => {
24
- const options = resolveOptions(rawOptions);
25
- const transformFilter = _pluginutils.createFilter.call(void 0,
26
- options.transform.include,
27
- options.transform.exclude
28
- );
29
- return {
30
- name: "unplugin-raw",
31
- enforce: options.enforce,
32
- resolveId: meta.framework === "rollup" ? async function(id, importer) {
33
- if (!rawRE.test(id)) return;
34
- const file = cleanUrl(id);
35
- const resolved = await this.resolve(
36
- file,
37
- importer
38
- );
39
- if (!resolved) return;
40
- return id.replace(file, resolved.id);
41
- } : void 0,
42
- loadInclude: (id) => rawRE.test(id),
43
- async load(id) {
44
- const file = cleanUrl(id);
45
- let contents = await _promises.readFile.call(void 0, file, "utf-8");
46
- if (transformFilter(file)) {
47
- let transform;
48
- const nativeContext = _optionalChain([this, 'access', _7 => _7.getNativeBuildContext, 'optionalCall', _8 => _8()]);
49
- if (_optionalChain([nativeContext, 'optionalAccess', _9 => _9.framework]) === "esbuild") {
50
- ;
51
- ({ transform } = nativeContext.build.esbuild);
52
- } else {
53
- transform = (await Promise.resolve().then(() => _interopRequireWildcard(require("esbuild")))).transform;
54
- }
55
- contents = (await transform(contents, {
56
- loader: guessLoader(file),
57
- ...options.transform.options
58
- })).code;
59
- }
60
- return `export default ${JSON.stringify(contents)}`;
61
- }
62
- };
63
- }
64
- );
65
- var index_default = unplugin;
66
- var rawRE = /[&?]raw(?:&|$)/;
67
- var postfixRE = /[#?].*$/s;
68
- function cleanUrl(url) {
69
- return url.replace(postfixRE, "");
70
- }
71
- var ExtToLoader = {
72
- ".js": "js",
73
- ".mjs": "js",
74
- ".cjs": "js",
75
- ".jsx": "jsx",
76
- ".ts": "ts",
77
- ".cts": "ts",
78
- ".mts": "ts",
79
- ".tsx": "tsx",
80
- ".css": "css",
81
- ".less": "css",
82
- ".stylus": "css",
83
- ".scss": "css",
84
- ".sass": "css",
85
- ".json": "json",
86
- ".txt": "text"
87
- };
88
- function guessLoader(id) {
89
- return ExtToLoader[_path2.default.extname(id).toLowerCase()] || "js";
90
- }
91
-
92
-
93
-
94
-
95
- exports.index_default = index_default; exports.guessLoader = guessLoader;
@@ -1,95 +0,0 @@
1
- // src/index.ts
2
- import { readFile } from "node:fs/promises";
3
- import path from "node:path";
4
- import { createFilter } from "@rollup/pluginutils";
5
- import { createUnplugin } from "unplugin";
6
-
7
- // src/core/options.ts
8
- function resolveOptions(options) {
9
- return {
10
- ...options,
11
- enforce: "enforce" in options ? options.enforce : "pre",
12
- transform: {
13
- ...options.transform,
14
- include: options.transform?.include || [/\.[cm]?[jt]sx?$/],
15
- exclude: options.transform?.exclude || [/node_modules/],
16
- options: options.transform?.options || {}
17
- }
18
- };
19
- }
20
-
21
- // src/index.ts
22
- var unplugin = createUnplugin(
23
- (rawOptions = {}, meta) => {
24
- const options = resolveOptions(rawOptions);
25
- const transformFilter = createFilter(
26
- options.transform.include,
27
- options.transform.exclude
28
- );
29
- return {
30
- name: "unplugin-raw",
31
- enforce: options.enforce,
32
- resolveId: meta.framework === "rollup" ? async function(id, importer) {
33
- if (!rawRE.test(id)) return;
34
- const file = cleanUrl(id);
35
- const resolved = await this.resolve(
36
- file,
37
- importer
38
- );
39
- if (!resolved) return;
40
- return id.replace(file, resolved.id);
41
- } : void 0,
42
- loadInclude: (id) => rawRE.test(id),
43
- async load(id) {
44
- const file = cleanUrl(id);
45
- let contents = await readFile(file, "utf-8");
46
- if (transformFilter(file)) {
47
- let transform;
48
- const nativeContext = this.getNativeBuildContext?.();
49
- if (nativeContext?.framework === "esbuild") {
50
- ;
51
- ({ transform } = nativeContext.build.esbuild);
52
- } else {
53
- transform = (await import("esbuild")).transform;
54
- }
55
- contents = (await transform(contents, {
56
- loader: guessLoader(file),
57
- ...options.transform.options
58
- })).code;
59
- }
60
- return `export default ${JSON.stringify(contents)}`;
61
- }
62
- };
63
- }
64
- );
65
- var index_default = unplugin;
66
- var rawRE = /[&?]raw(?:&|$)/;
67
- var postfixRE = /[#?].*$/s;
68
- function cleanUrl(url) {
69
- return url.replace(postfixRE, "");
70
- }
71
- var ExtToLoader = {
72
- ".js": "js",
73
- ".mjs": "js",
74
- ".cjs": "js",
75
- ".jsx": "jsx",
76
- ".ts": "ts",
77
- ".cts": "ts",
78
- ".mts": "ts",
79
- ".tsx": "tsx",
80
- ".css": "css",
81
- ".less": "css",
82
- ".stylus": "css",
83
- ".scss": "css",
84
- ".sass": "css",
85
- ".json": "json",
86
- ".txt": "text"
87
- };
88
- function guessLoader(id) {
89
- return ExtToLoader[path.extname(id).toLowerCase()] || "js";
90
- }
91
-
92
- export {
93
- index_default,
94
- guessLoader
95
- };
package/dist/esbuild.cjs DELETED
@@ -1,11 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkJWWJRTRZcjs = require('./chunk-JWWJRTRZ.cjs');
4
-
5
- // src/esbuild.ts
6
- var esbuild_default = _chunkJWWJRTRZcjs.index_default.esbuild;
7
-
8
-
9
- exports.default = esbuild_default;
10
-
11
- module.exports = exports.default;
@@ -1,8 +0,0 @@
1
- import unplugin from './index.cjs';
2
- import 'unplugin';
3
- import '@rollup/pluginutils';
4
- import 'esbuild';
5
-
6
- declare const _default: typeof unplugin.esbuild;
7
-
8
- export = _default;
package/dist/index.cjs DELETED
@@ -1,8 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
- var _chunkJWWJRTRZcjs = require('./chunk-JWWJRTRZ.cjs');
5
-
6
-
7
-
8
- exports.default = _chunkJWWJRTRZcjs.index_default; exports.guessLoader = _chunkJWWJRTRZcjs.guessLoader;
package/dist/index.d.cts DELETED
@@ -1,23 +0,0 @@
1
- import { UnpluginInstance } from 'unplugin';
2
- import { FilterPattern } from '@rollup/pluginutils';
3
- import { TransformOptions, Loader } from 'esbuild';
4
-
5
- interface Options {
6
- /** @default 'pre' */
7
- enforce?: 'pre' | 'post' | undefined;
8
- /** Transform */
9
- transform?: {
10
- /** @default [/\.[cm]?[jt]sx?$/] */
11
- include?: FilterPattern;
12
- /** @default [/node_modules/] */
13
- exclude?: FilterPattern;
14
- /** @default {} */
15
- options?: TransformOptions;
16
- };
17
- }
18
-
19
- declare const unplugin: UnpluginInstance<Options | undefined, false>;
20
-
21
- declare function guessLoader(id: string): Loader;
22
-
23
- export { unplugin as default, guessLoader };
package/dist/rolldown.cjs DELETED
@@ -1,11 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkJWWJRTRZcjs = require('./chunk-JWWJRTRZ.cjs');
4
-
5
- // src/rolldown.ts
6
- var rolldown_default = _chunkJWWJRTRZcjs.index_default.rolldown;
7
-
8
-
9
- exports.default = rolldown_default;
10
-
11
- module.exports = exports.default;
@@ -1,8 +0,0 @@
1
- import unplugin from './index.cjs';
2
- import 'unplugin';
3
- import '@rollup/pluginutils';
4
- import 'esbuild';
5
-
6
- declare const _default: typeof unplugin.rolldown;
7
-
8
- export = _default;
package/dist/rollup.cjs DELETED
@@ -1,11 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkJWWJRTRZcjs = require('./chunk-JWWJRTRZ.cjs');
4
-
5
- // src/rollup.ts
6
- var rollup_default = _chunkJWWJRTRZcjs.index_default.rollup;
7
-
8
-
9
- exports.default = rollup_default;
10
-
11
- module.exports = exports.default;
package/dist/rollup.d.cts DELETED
@@ -1,8 +0,0 @@
1
- import unplugin from './index.cjs';
2
- import 'unplugin';
3
- import '@rollup/pluginutils';
4
- import 'esbuild';
5
-
6
- declare const _default: typeof unplugin.rollup;
7
-
8
- export = _default;
package/dist/rspack.cjs DELETED
@@ -1,11 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkJWWJRTRZcjs = require('./chunk-JWWJRTRZ.cjs');
4
-
5
- // src/rspack.ts
6
- var rspack_default = _chunkJWWJRTRZcjs.index_default.rspack;
7
-
8
-
9
- exports.default = rspack_default;
10
-
11
- module.exports = exports.default;
package/dist/rspack.d.cts DELETED
@@ -1,8 +0,0 @@
1
- import unplugin from './index.cjs';
2
- import 'unplugin';
3
- import '@rollup/pluginutils';
4
- import 'esbuild';
5
-
6
- declare const _default: typeof unplugin.rspack;
7
-
8
- export = _default;
package/dist/vite.cjs DELETED
@@ -1,11 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkJWWJRTRZcjs = require('./chunk-JWWJRTRZ.cjs');
4
-
5
- // src/vite.ts
6
- var vite_default = _chunkJWWJRTRZcjs.index_default.vite;
7
-
8
-
9
- exports.default = vite_default;
10
-
11
- module.exports = exports.default;
package/dist/vite.d.cts DELETED
@@ -1,8 +0,0 @@
1
- import unplugin from './index.cjs';
2
- import 'unplugin';
3
- import '@rollup/pluginutils';
4
- import 'esbuild';
5
-
6
- declare const _default: typeof unplugin.vite;
7
-
8
- export = _default;
package/dist/webpack.cjs DELETED
@@ -1,11 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkJWWJRTRZcjs = require('./chunk-JWWJRTRZ.cjs');
4
-
5
- // src/webpack.ts
6
- var webpack_default = _chunkJWWJRTRZcjs.index_default.webpack;
7
-
8
-
9
- exports.default = webpack_default;
10
-
11
- module.exports = exports.default;
@@ -1,8 +0,0 @@
1
- import unplugin from './index.cjs';
2
- import 'unplugin';
3
- import '@rollup/pluginutils';
4
- import 'esbuild';
5
-
6
- declare const _default: typeof unplugin.webpack;
7
-
8
- export = _default;