unplugin-raw 0.6.0 → 0.6.1
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/LICENSE +1 -1
- package/README.md +14 -3
- package/dist/esbuild.js +3 -4
- package/dist/index.js +2 -2
- package/dist/rolldown.js +3 -4
- package/dist/rollup.js +3 -4
- package/dist/rspack.js +3 -4
- package/dist/{src-BAcSYQaW.js → src-Dwv4ealK.js} +1 -2
- package/dist/vite.js +3 -4
- package/dist/webpack.js +3 -4
- package/package.json +9 -9
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright © 2023-PRESENT
|
|
3
|
+
Copyright © 2023-PRESENT Kevin Deng (https://github.com/sxzz)
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
# unplugin-raw
|
|
1
|
+
# unplugin-raw
|
|
2
2
|
|
|
3
|
-
[![
|
|
3
|
+
[![npm version][npm-version-src]][npm-version-href]
|
|
4
|
+
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
5
|
+
[![Unit Test][unit-test-src]][unit-test-href]
|
|
4
6
|
|
|
5
7
|
Transform file to a default-export string, and can be transformed by esbuild.
|
|
6
8
|
|
|
@@ -110,4 +112,13 @@ import text4 from './with.js' with { type: 'text' }
|
|
|
110
112
|
|
|
111
113
|
## License
|
|
112
114
|
|
|
113
|
-
[MIT](./LICENSE) License © 2023-PRESENT [
|
|
115
|
+
[MIT](./LICENSE) License © 2023-PRESENT [Kevin Deng](https://github.com/sxzz)
|
|
116
|
+
|
|
117
|
+
<!-- Badges -->
|
|
118
|
+
|
|
119
|
+
[npm-version-src]: https://img.shields.io/npm/v/unplugin-raw.svg
|
|
120
|
+
[npm-version-href]: https://npmjs.com/package/unplugin-raw
|
|
121
|
+
[npm-downloads-src]: https://img.shields.io/npm/dm/unplugin-raw
|
|
122
|
+
[npm-downloads-href]: https://www.npmcharts.com/compare/unplugin-raw?interval=30
|
|
123
|
+
[unit-test-src]: https://github.com/unplugin/unplugin-raw/actions/workflows/unit-test.yml/badge.svg
|
|
124
|
+
[unit-test-href]: https://github.com/unplugin/unplugin-raw/actions/workflows/unit-test.yml
|
package/dist/esbuild.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./options-BTT0I76V.js";
|
|
2
|
-
import {
|
|
2
|
+
import { unplugin } from "./src-Dwv4ealK.js";
|
|
3
3
|
|
|
4
4
|
//#region src/esbuild.ts
|
|
5
5
|
/**
|
|
@@ -15,8 +15,7 @@ import { src_default } from "./src-BAcSYQaW.js";
|
|
|
15
15
|
* })
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
|
-
const esbuild =
|
|
19
|
-
var esbuild_default = esbuild;
|
|
18
|
+
const esbuild = unplugin.esbuild;
|
|
20
19
|
|
|
21
20
|
//#endregion
|
|
22
|
-
export {
|
|
21
|
+
export { esbuild as default, esbuild as "module.exports" };
|
package/dist/index.js
CHANGED
package/dist/rolldown.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./options-BTT0I76V.js";
|
|
2
|
-
import {
|
|
2
|
+
import { unplugin } from "./src-Dwv4ealK.js";
|
|
3
3
|
|
|
4
4
|
//#region src/rolldown.ts
|
|
5
5
|
/**
|
|
@@ -15,8 +15,7 @@ import { src_default } from "./src-BAcSYQaW.js";
|
|
|
15
15
|
* }
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
|
-
const rolldown =
|
|
19
|
-
var rolldown_default = rolldown;
|
|
18
|
+
const rolldown = unplugin.rolldown;
|
|
20
19
|
|
|
21
20
|
//#endregion
|
|
22
|
-
export {
|
|
21
|
+
export { rolldown as default, rolldown as "module.exports" };
|
package/dist/rollup.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./options-BTT0I76V.js";
|
|
2
|
-
import {
|
|
2
|
+
import { unplugin } from "./src-Dwv4ealK.js";
|
|
3
3
|
|
|
4
4
|
//#region src/rollup.ts
|
|
5
5
|
/**
|
|
@@ -15,8 +15,7 @@ import { src_default } from "./src-BAcSYQaW.js";
|
|
|
15
15
|
* }
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
|
-
const rollup =
|
|
19
|
-
var rollup_default = rollup;
|
|
18
|
+
const rollup = unplugin.rollup;
|
|
20
19
|
|
|
21
20
|
//#endregion
|
|
22
|
-
export {
|
|
21
|
+
export { rollup as default, rollup as "module.exports" };
|
package/dist/rspack.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./options-BTT0I76V.js";
|
|
2
|
-
import {
|
|
2
|
+
import { unplugin } from "./src-Dwv4ealK.js";
|
|
3
3
|
|
|
4
4
|
//#region src/rspack.ts
|
|
5
5
|
/**
|
|
@@ -13,8 +13,7 @@ import { src_default } from "./src-BAcSYQaW.js";
|
|
|
13
13
|
* }
|
|
14
14
|
* ```
|
|
15
15
|
*/
|
|
16
|
-
const rspack =
|
|
17
|
-
var rspack_default = rspack;
|
|
16
|
+
const rspack = unplugin.rspack;
|
|
18
17
|
|
|
19
18
|
//#endregion
|
|
20
|
-
export {
|
|
19
|
+
export { rspack as default, rspack as "module.exports" };
|
package/dist/vite.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./options-BTT0I76V.js";
|
|
2
|
-
import {
|
|
2
|
+
import { unplugin } from "./src-Dwv4ealK.js";
|
|
3
3
|
|
|
4
4
|
//#region src/vite.ts
|
|
5
5
|
/**
|
|
@@ -15,8 +15,7 @@ import { src_default } from "./src-BAcSYQaW.js";
|
|
|
15
15
|
* })
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
|
-
const vite =
|
|
19
|
-
var vite_default = vite;
|
|
18
|
+
const vite = unplugin.vite;
|
|
20
19
|
|
|
21
20
|
//#endregion
|
|
22
|
-
export {
|
|
21
|
+
export { vite as default, vite as "module.exports" };
|
package/dist/webpack.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./options-BTT0I76V.js";
|
|
2
|
-
import {
|
|
2
|
+
import { unplugin } from "./src-Dwv4ealK.js";
|
|
3
3
|
|
|
4
4
|
//#region src/webpack.ts
|
|
5
5
|
/**
|
|
@@ -13,8 +13,7 @@ import { src_default } from "./src-BAcSYQaW.js";
|
|
|
13
13
|
* }
|
|
14
14
|
* ```
|
|
15
15
|
*/
|
|
16
|
-
const webpack =
|
|
17
|
-
var webpack_default = webpack;
|
|
16
|
+
const webpack = unplugin.webpack;
|
|
18
17
|
|
|
19
18
|
//#endregion
|
|
20
|
-
export {
|
|
19
|
+
export { webpack as default, webpack as "module.exports" };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unplugin-raw",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
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": "
|
|
22
|
+
"author": "Kevin Deng <sxzz@sxzz.moe>",
|
|
23
23
|
"funding": "https://github.com/sponsors/sxzz",
|
|
24
24
|
"files": [
|
|
25
25
|
"dist"
|
|
@@ -29,13 +29,14 @@
|
|
|
29
29
|
"types": "./dist/index.d.ts",
|
|
30
30
|
"exports": {
|
|
31
31
|
".": "./dist/index.js",
|
|
32
|
+
"./api": "./dist/api.js",
|
|
33
|
+
"./esbuild": "./dist/esbuild.js",
|
|
34
|
+
"./rolldown": "./dist/rolldown.js",
|
|
35
|
+
"./rollup": "./dist/rollup.js",
|
|
36
|
+
"./rspack": "./dist/rspack.js",
|
|
32
37
|
"./vite": "./dist/vite.js",
|
|
33
38
|
"./webpack": "./dist/webpack.js",
|
|
34
|
-
"./
|
|
35
|
-
"./rollup": "./dist/rollup.js",
|
|
36
|
-
"./rolldown": "./dist/rolldown.js",
|
|
37
|
-
"./esbuild": "./dist/esbuild.js",
|
|
38
|
-
"./*": "./*"
|
|
39
|
+
"./package.json": "./package.json"
|
|
39
40
|
},
|
|
40
41
|
"typesVersions": {
|
|
41
42
|
"*": {
|
|
@@ -70,7 +71,6 @@
|
|
|
70
71
|
"prettier": "^3.6.2",
|
|
71
72
|
"rollup": "^4.46.2",
|
|
72
73
|
"tsdown": "^0.14.1",
|
|
73
|
-
"tsx": "^4.20.4",
|
|
74
74
|
"typescript": "^5.9.2",
|
|
75
75
|
"vite": "^7.1.2",
|
|
76
76
|
"vitest": "^3.2.4"
|
|
@@ -86,6 +86,6 @@
|
|
|
86
86
|
"dev": "tsdown --watch",
|
|
87
87
|
"test": "vitest",
|
|
88
88
|
"typecheck": "tsc --noEmit",
|
|
89
|
-
"release": "bumpp
|
|
89
|
+
"release": "bumpp"
|
|
90
90
|
}
|
|
91
91
|
}
|