rolldown-require 1.0.6 → 2.0.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/dist/index.mjs +2 -1
- package/package.json +4 -5
- package/dist/index.cjs +0 -1573
- package/dist/index.d.cts +0 -116
package/dist/index.mjs
CHANGED
|
@@ -1104,8 +1104,9 @@ async function bundleFile(fileName, options) {
|
|
|
1104
1104
|
throw new Error("Failed to initialize bundler");
|
|
1105
1105
|
}
|
|
1106
1106
|
const rolldownOutputOptions = options?.rolldownOptions?.output || {};
|
|
1107
|
+
const { codeSplitting: _codeSplitting, ...normalizedOutputOptions } = rolldownOutputOptions;
|
|
1107
1108
|
const result = await bundle.generate({
|
|
1108
|
-
...
|
|
1109
|
+
...normalizedOutputOptions,
|
|
1109
1110
|
format: options.format,
|
|
1110
1111
|
sourcemap: false,
|
|
1111
1112
|
inlineDynamicImports: true
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown-require",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.1",
|
|
5
5
|
"description": "bundle and require a file using rolldown!",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -34,11 +34,10 @@
|
|
|
34
34
|
"exports": {
|
|
35
35
|
".": {
|
|
36
36
|
"types": "./dist/index.d.ts",
|
|
37
|
-
"import": "./dist/index.mjs"
|
|
38
|
-
"require": "./dist/index.cjs"
|
|
37
|
+
"import": "./dist/index.mjs"
|
|
39
38
|
}
|
|
40
39
|
},
|
|
41
|
-
"main": "./dist/index.
|
|
40
|
+
"main": "./dist/index.mjs",
|
|
42
41
|
"module": "./dist/index.mjs",
|
|
43
42
|
"types": "./dist/index.d.ts",
|
|
44
43
|
"files": [
|
|
@@ -46,7 +45,7 @@
|
|
|
46
45
|
"misc"
|
|
47
46
|
],
|
|
48
47
|
"engines": {
|
|
49
|
-
"node": "^
|
|
48
|
+
"node": "^20.19.0 || >=22.12.0"
|
|
50
49
|
},
|
|
51
50
|
"peerDependencies": {
|
|
52
51
|
"rolldown": ">=1.0.0-beta.53"
|