unplugin-raw 0.4.1 → 0.4.3
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/esbuild.d.ts +21 -2
- package/dist/esbuild.js +16 -2
- package/dist/rolldown.d.ts +21 -2
- package/dist/rolldown.js +16 -2
- package/dist/rollup.d.ts +21 -2
- package/dist/rollup.js +16 -2
- package/dist/rspack.d.ts +19 -2
- package/dist/rspack.js +14 -2
- package/dist/vite.d.ts +21 -2
- package/dist/vite.js +16 -2
- package/dist/webpack.d.ts +19 -2
- package/dist/webpack.js +14 -2
- package/package.json +16 -16
package/dist/esbuild.d.ts
CHANGED
|
@@ -3,6 +3,25 @@ import 'unplugin';
|
|
|
3
3
|
import 'esbuild';
|
|
4
4
|
import 'unplugin-utils';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* This entry file is for esbuild plugin. Requires esbuild >= 0.15
|
|
8
|
+
*
|
|
9
|
+
* @module
|
|
10
|
+
*/
|
|
7
11
|
|
|
8
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Esbuild plugin
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* // esbuild.config.js
|
|
18
|
+
* import { build } from 'esbuild'
|
|
19
|
+
*
|
|
20
|
+
* build({
|
|
21
|
+
* plugins: [require('unplugin-raw/esbuild')()],
|
|
22
|
+
* })
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
declare const esbuild: typeof unplugin.esbuild;
|
|
26
|
+
|
|
27
|
+
export { esbuild as 'module.exports', esbuild as default };
|
package/dist/esbuild.js
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
import { src_default } from "./src-AICy7ULA.js";
|
|
2
2
|
|
|
3
3
|
//#region src/esbuild.ts
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Esbuild plugin
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* // esbuild.config.js
|
|
10
|
+
* import { build } from 'esbuild'
|
|
11
|
+
*
|
|
12
|
+
* build({
|
|
13
|
+
* plugins: [require('unplugin-raw/esbuild')()],
|
|
14
|
+
* })
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
const esbuild = src_default.esbuild;
|
|
18
|
+
var esbuild_default = esbuild;
|
|
5
19
|
|
|
6
20
|
//#endregion
|
|
7
|
-
export { esbuild_default as default };
|
|
21
|
+
export { esbuild_default as default, esbuild as 'module.exports' };
|
package/dist/rolldown.d.ts
CHANGED
|
@@ -3,6 +3,25 @@ import 'unplugin';
|
|
|
3
3
|
import 'esbuild';
|
|
4
4
|
import 'unplugin-utils';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* This entry file is for Rolldown plugin.
|
|
8
|
+
*
|
|
9
|
+
* @module
|
|
10
|
+
*/
|
|
7
11
|
|
|
8
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Rolldown plugin
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* // rolldown.config.js
|
|
18
|
+
* import Raw from 'unplugin-raw/rolldown'
|
|
19
|
+
*
|
|
20
|
+
* export default {
|
|
21
|
+
* plugins: [Raw()],
|
|
22
|
+
* }
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
declare const rolldown: typeof unplugin.rolldown;
|
|
26
|
+
|
|
27
|
+
export { rolldown as 'module.exports', rolldown as default };
|
package/dist/rolldown.js
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
import { src_default } from "./src-AICy7ULA.js";
|
|
2
2
|
|
|
3
3
|
//#region src/rolldown.ts
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Rolldown plugin
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* // rolldown.config.js
|
|
10
|
+
* import Raw from 'unplugin-raw/rolldown'
|
|
11
|
+
*
|
|
12
|
+
* export default {
|
|
13
|
+
* plugins: [Raw()],
|
|
14
|
+
* }
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
const rolldown = src_default.rolldown;
|
|
18
|
+
var rolldown_default = rolldown;
|
|
5
19
|
|
|
6
20
|
//#endregion
|
|
7
|
-
export { rolldown_default as default };
|
|
21
|
+
export { rolldown_default as default, rolldown as 'module.exports' };
|
package/dist/rollup.d.ts
CHANGED
|
@@ -3,6 +3,25 @@ import 'unplugin';
|
|
|
3
3
|
import 'esbuild';
|
|
4
4
|
import 'unplugin-utils';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* This entry file is for Rollup plugin.
|
|
8
|
+
*
|
|
9
|
+
* @module
|
|
10
|
+
*/
|
|
7
11
|
|
|
8
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Rollup plugin
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* // rollup.config.js
|
|
18
|
+
* import Raw from 'unplugin-raw/rollup'
|
|
19
|
+
*
|
|
20
|
+
* export default {
|
|
21
|
+
* plugins: [Raw()],
|
|
22
|
+
* }
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
declare const rollup: typeof unplugin.rollup;
|
|
26
|
+
|
|
27
|
+
export { rollup as 'module.exports', rollup as default };
|
package/dist/rollup.js
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
import { src_default } from "./src-AICy7ULA.js";
|
|
2
2
|
|
|
3
3
|
//#region src/rollup.ts
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Rollup plugin
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* // rollup.config.js
|
|
10
|
+
* import Raw from 'unplugin-raw/rollup'
|
|
11
|
+
*
|
|
12
|
+
* export default {
|
|
13
|
+
* plugins: [Raw()],
|
|
14
|
+
* }
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
const rollup = src_default.rollup;
|
|
18
|
+
var rollup_default = rollup;
|
|
5
19
|
|
|
6
20
|
//#endregion
|
|
7
|
-
export { rollup_default as default };
|
|
21
|
+
export { rollup_default as default, rollup as 'module.exports' };
|
package/dist/rspack.d.ts
CHANGED
|
@@ -3,6 +3,23 @@ import 'unplugin';
|
|
|
3
3
|
import 'esbuild';
|
|
4
4
|
import 'unplugin-utils';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* This entry file is for rspack plugin.
|
|
8
|
+
*
|
|
9
|
+
* @module
|
|
10
|
+
*/
|
|
7
11
|
|
|
8
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Rspack plugin
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* // rspack.config.js
|
|
18
|
+
* module.exports = {
|
|
19
|
+
* plugins: [require('unplugin-raw/rspack')()],
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
declare const rspack: typeof unplugin.rspack;
|
|
24
|
+
|
|
25
|
+
export { rspack as 'module.exports', rspack as default };
|
package/dist/rspack.js
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
import { src_default } from "./src-AICy7ULA.js";
|
|
2
2
|
|
|
3
3
|
//#region src/rspack.ts
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Rspack plugin
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* // rspack.config.js
|
|
10
|
+
* module.exports = {
|
|
11
|
+
* plugins: [require('unplugin-raw/rspack')()],
|
|
12
|
+
* }
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
const rspack = src_default.rspack;
|
|
16
|
+
var rspack_default = rspack;
|
|
5
17
|
|
|
6
18
|
//#endregion
|
|
7
|
-
export { rspack_default as default };
|
|
19
|
+
export { rspack_default as default, rspack as 'module.exports' };
|
package/dist/vite.d.ts
CHANGED
|
@@ -3,6 +3,25 @@ import 'unplugin';
|
|
|
3
3
|
import 'esbuild';
|
|
4
4
|
import 'unplugin-utils';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* This entry file is for Vite plugin.
|
|
8
|
+
*
|
|
9
|
+
* @module
|
|
10
|
+
*/
|
|
7
11
|
|
|
8
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Vite plugin
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* // vite.config.ts
|
|
18
|
+
* import Raw from 'unplugin-raw/vite'
|
|
19
|
+
*
|
|
20
|
+
* export default defineConfig({
|
|
21
|
+
* plugins: [Raw()],
|
|
22
|
+
* })
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
declare const vite: typeof unplugin.vite;
|
|
26
|
+
|
|
27
|
+
export { vite as 'module.exports', vite as default };
|
package/dist/vite.js
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
import { src_default } from "./src-AICy7ULA.js";
|
|
2
2
|
|
|
3
3
|
//#region src/vite.ts
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Vite plugin
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* // vite.config.ts
|
|
10
|
+
* import Raw from 'unplugin-raw/vite'
|
|
11
|
+
*
|
|
12
|
+
* export default defineConfig({
|
|
13
|
+
* plugins: [Raw()],
|
|
14
|
+
* })
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
const vite = src_default.vite;
|
|
18
|
+
var vite_default = vite;
|
|
5
19
|
|
|
6
20
|
//#endregion
|
|
7
|
-
export { vite_default as default };
|
|
21
|
+
export { vite_default as default, vite as 'module.exports' };
|
package/dist/webpack.d.ts
CHANGED
|
@@ -3,6 +3,23 @@ import 'unplugin';
|
|
|
3
3
|
import 'esbuild';
|
|
4
4
|
import 'unplugin-utils';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* This entry file is for webpack plugin.
|
|
8
|
+
*
|
|
9
|
+
* @module
|
|
10
|
+
*/
|
|
7
11
|
|
|
8
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Webpack plugin
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* // webpack.config.js
|
|
18
|
+
* module.exports = {
|
|
19
|
+
* plugins: [require('unplugin-raw/webpack')()],
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
declare const webpack: typeof unplugin.webpack;
|
|
24
|
+
|
|
25
|
+
export { webpack as 'module.exports', webpack as default };
|
package/dist/webpack.js
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
import { src_default } from "./src-AICy7ULA.js";
|
|
2
2
|
|
|
3
3
|
//#region src/webpack.ts
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Webpack plugin
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* // webpack.config.js
|
|
10
|
+
* module.exports = {
|
|
11
|
+
* plugins: [require('unplugin-raw/webpack')()],
|
|
12
|
+
* }
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
const webpack = src_default.webpack;
|
|
16
|
+
var webpack_default = webpack;
|
|
5
17
|
|
|
6
18
|
//#endregion
|
|
7
|
-
export { webpack_default as default };
|
|
19
|
+
export { webpack_default as default, webpack as 'module.exports' };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unplugin-raw",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Transform file to a default-export string.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"type": "git",
|
|
20
20
|
"url": "git+https://github.com/unplugin/unplugin-raw.git"
|
|
21
21
|
},
|
|
22
|
-
"author": "三咲智子 <sxzz@sxzz.moe>",
|
|
22
|
+
"author": "三咲智子 Kevin Deng <sxzz@sxzz.moe>",
|
|
23
23
|
"files": [
|
|
24
24
|
"dist"
|
|
25
25
|
],
|
|
@@ -48,23 +48,23 @@
|
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"esbuild": "^0.
|
|
52
|
-
"unplugin": "^2.
|
|
53
|
-
"unplugin-utils": "^0.2.
|
|
51
|
+
"esbuild": "^0.25.0",
|
|
52
|
+
"unplugin": "^2.2.0",
|
|
53
|
+
"unplugin-utils": "^0.2.4"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@sxzz/eslint-config": "^5.
|
|
57
|
-
"@sxzz/prettier-config": "^2.
|
|
58
|
-
"@types/node": "^22.13.
|
|
59
|
-
"bumpp": "^10.0.
|
|
60
|
-
"eslint": "^9.
|
|
61
|
-
"prettier": "^3.
|
|
62
|
-
"rollup": "^4.34.
|
|
63
|
-
"tsdown": "^0.
|
|
64
|
-
"tsx": "^4.19.
|
|
56
|
+
"@sxzz/eslint-config": "^5.1.1",
|
|
57
|
+
"@sxzz/prettier-config": "^2.2.0",
|
|
58
|
+
"@types/node": "^22.13.5",
|
|
59
|
+
"bumpp": "^10.0.3",
|
|
60
|
+
"eslint": "^9.21.0",
|
|
61
|
+
"prettier": "^3.5.2",
|
|
62
|
+
"rollup": "^4.34.8",
|
|
63
|
+
"tsdown": "^0.6.0",
|
|
64
|
+
"tsx": "^4.19.3",
|
|
65
65
|
"typescript": "^5.7.3",
|
|
66
|
-
"vite": "^6.
|
|
67
|
-
"vitest": "^3.0.
|
|
66
|
+
"vite": "^6.2.0",
|
|
67
|
+
"vitest": "^3.0.7"
|
|
68
68
|
},
|
|
69
69
|
"engines": {
|
|
70
70
|
"node": ">=18.12.0"
|