unplugin-raw 0.4.2 → 0.4.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/esbuild.d.ts +17 -17
- package/dist/index.d.ts +11 -11
- package/dist/rolldown.d.ts +17 -17
- package/dist/rollup.d.ts +17 -17
- package/dist/rspack.d.ts +15 -15
- package/dist/vite.d.ts +17 -17
- package/dist/webpack.d.ts +15 -15
- package/package.json +17 -16
package/dist/esbuild.d.ts
CHANGED
|
@@ -4,24 +4,24 @@ import 'esbuild';
|
|
|
4
4
|
import 'unplugin-utils';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
* This entry file is for esbuild plugin. Requires esbuild >= 0.15
|
|
8
|
+
*
|
|
9
|
+
* @module
|
|
10
|
+
*/
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
25
|
declare const esbuild: typeof unplugin.esbuild;
|
|
26
26
|
|
|
27
|
-
export { esbuild as
|
|
27
|
+
export { esbuild as "module.exports", esbuild as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,17 +3,17 @@ import { TransformOptions, Loader } from 'esbuild';
|
|
|
3
3
|
import { FilterPattern } from 'unplugin-utils';
|
|
4
4
|
|
|
5
5
|
interface Options {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
17
|
}
|
|
18
18
|
|
|
19
19
|
declare const unplugin: UnpluginInstance<Options | undefined, false>;
|
package/dist/rolldown.d.ts
CHANGED
|
@@ -4,24 +4,24 @@ import 'esbuild';
|
|
|
4
4
|
import 'unplugin-utils';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
* This entry file is for Rolldown plugin.
|
|
8
|
+
*
|
|
9
|
+
* @module
|
|
10
|
+
*/
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
25
|
declare const rolldown: typeof unplugin.rolldown;
|
|
26
26
|
|
|
27
|
-
export { rolldown as
|
|
27
|
+
export { rolldown as "module.exports", rolldown as default };
|
package/dist/rollup.d.ts
CHANGED
|
@@ -4,24 +4,24 @@ import 'esbuild';
|
|
|
4
4
|
import 'unplugin-utils';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
* This entry file is for Rollup plugin.
|
|
8
|
+
*
|
|
9
|
+
* @module
|
|
10
|
+
*/
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
25
|
declare const rollup: typeof unplugin.rollup;
|
|
26
26
|
|
|
27
|
-
export { rollup as
|
|
27
|
+
export { rollup as "module.exports", rollup as default };
|
package/dist/rspack.d.ts
CHANGED
|
@@ -4,22 +4,22 @@ import 'esbuild';
|
|
|
4
4
|
import 'unplugin-utils';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
* This entry file is for rspack plugin.
|
|
8
|
+
*
|
|
9
|
+
* @module
|
|
10
|
+
*/
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
23
|
declare const rspack: typeof unplugin.rspack;
|
|
24
24
|
|
|
25
|
-
export { rspack as
|
|
25
|
+
export { rspack as "module.exports", rspack as default };
|
package/dist/vite.d.ts
CHANGED
|
@@ -4,24 +4,24 @@ import 'esbuild';
|
|
|
4
4
|
import 'unplugin-utils';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
* This entry file is for Vite plugin.
|
|
8
|
+
*
|
|
9
|
+
* @module
|
|
10
|
+
*/
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
25
|
declare const vite: typeof unplugin.vite;
|
|
26
26
|
|
|
27
|
-
export { vite as
|
|
27
|
+
export { vite as "module.exports", vite as default };
|
package/dist/webpack.d.ts
CHANGED
|
@@ -4,22 +4,22 @@ import 'esbuild';
|
|
|
4
4
|
import 'unplugin-utils';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
* This entry file is for webpack plugin.
|
|
8
|
+
*
|
|
9
|
+
* @module
|
|
10
|
+
*/
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
23
|
declare const webpack: typeof unplugin.webpack;
|
|
24
24
|
|
|
25
|
-
export { webpack as
|
|
25
|
+
export { webpack as "module.exports", webpack as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unplugin-raw",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"description": "Transform file to a default-export string.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"url": "git+https://github.com/unplugin/unplugin-raw.git"
|
|
21
21
|
},
|
|
22
22
|
"author": "三咲智子 Kevin Deng <sxzz@sxzz.moe>",
|
|
23
|
+
"funding": "https://github.com/sponsors/sxzz",
|
|
23
24
|
"files": [
|
|
24
25
|
"dist"
|
|
25
26
|
],
|
|
@@ -48,23 +49,23 @@
|
|
|
48
49
|
"access": "public"
|
|
49
50
|
},
|
|
50
51
|
"dependencies": {
|
|
51
|
-
"esbuild": "^0.
|
|
52
|
-
"unplugin": "^2.
|
|
53
|
-
"unplugin-utils": "^0.2.
|
|
52
|
+
"esbuild": "^0.25.0",
|
|
53
|
+
"unplugin": "^2.2.0",
|
|
54
|
+
"unplugin-utils": "^0.2.4"
|
|
54
55
|
},
|
|
55
56
|
"devDependencies": {
|
|
56
|
-
"@sxzz/eslint-config": "^5.0
|
|
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.
|
|
65
|
-
"typescript": "^5.
|
|
66
|
-
"vite": "^6.
|
|
67
|
-
"vitest": "^3.0.
|
|
57
|
+
"@sxzz/eslint-config": "^5.2.0",
|
|
58
|
+
"@sxzz/prettier-config": "^2.2.0",
|
|
59
|
+
"@types/node": "^22.13.9",
|
|
60
|
+
"bumpp": "^10.0.3",
|
|
61
|
+
"eslint": "^9.21.0",
|
|
62
|
+
"prettier": "^3.5.3",
|
|
63
|
+
"rollup": "^4.34.9",
|
|
64
|
+
"tsdown": "^0.6.3",
|
|
65
|
+
"tsx": "^4.19.3",
|
|
66
|
+
"typescript": "^5.8.2",
|
|
67
|
+
"vite": "^6.2.0",
|
|
68
|
+
"vitest": "^3.0.7"
|
|
68
69
|
},
|
|
69
70
|
"engines": {
|
|
70
71
|
"node": ">=18.12.0"
|