rolldown-require 1.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/LICENSE +21 -0
- package/README.md +126 -0
- package/dist/chunk-Q6XJHTDB.cjs +15 -0
- package/dist/chunk-WUKYLWAZ.mjs +0 -0
- package/dist/false-G5OFYI37.mjs +7 -0
- package/dist/false-SI6OY5LO.cjs +9 -0
- package/dist/index.cjs +1151 -0
- package/dist/index.d.cts +77 -0
- package/dist/index.d.ts +77 -0
- package/dist/index.mjs +1148 -0
- package/misc/false.d.ts +2 -0
- package/misc/false.js +1 -0
- package/misc/true.d.ts +2 -0
- package/misc/true.js +1 -0
- package/package.json +63 -0
package/misc/false.d.ts
ADDED
package/misc/false.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default false
|
package/misc/true.d.ts
ADDED
package/misc/true.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default true
|
package/package.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rolldown-require",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"description": "bundle and require a file using rolldown!",
|
|
6
|
+
"author": "ice breaker <1324318532@qq.com>",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/weapp-vite/weapp-vite.git",
|
|
11
|
+
"directory": "packages/rolldown-require"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/weapp-vite/weapp-vite/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [],
|
|
17
|
+
"sideEffects": false,
|
|
18
|
+
"imports": {
|
|
19
|
+
"#module-sync-enabled": {
|
|
20
|
+
"module-sync": "./misc/true.js",
|
|
21
|
+
"default": "./misc/false.js"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"exports": {
|
|
25
|
+
".": {
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
27
|
+
"import": "./dist/index.mjs",
|
|
28
|
+
"require": "./dist/index.cjs"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"main": "./dist/index.cjs",
|
|
32
|
+
"module": "./dist/index.mjs",
|
|
33
|
+
"types": "./dist/index.d.ts",
|
|
34
|
+
"files": [
|
|
35
|
+
"dist",
|
|
36
|
+
"misc"
|
|
37
|
+
],
|
|
38
|
+
"engines": {
|
|
39
|
+
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
|
|
40
|
+
},
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"rolldown": "*"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@rollup/pluginutils": "^5.1.4",
|
|
46
|
+
"get-tsconfig": "^4.10.1",
|
|
47
|
+
"mlly": "^1.7.4",
|
|
48
|
+
"resolve.exports": "^2.0.3"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@types/pnpapi": "^0.0.5"
|
|
52
|
+
},
|
|
53
|
+
"scripts": {
|
|
54
|
+
"dev": "unbuild --stub",
|
|
55
|
+
"build:watch": "tsup --watch --sourcemap",
|
|
56
|
+
"build": "tsup",
|
|
57
|
+
"test": "vitest run",
|
|
58
|
+
"test:dev": "vitest",
|
|
59
|
+
"release": "pnpm publish",
|
|
60
|
+
"lint": "eslint .",
|
|
61
|
+
"lint:fix": "eslint . --fix"
|
|
62
|
+
}
|
|
63
|
+
}
|