rolldown 1.0.0-beta.7-commit.139c54d → 1.0.0-beta.7-commit.d97c9cc
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/cjs/cli.cjs +2 -2
- package/dist/cjs/experimental-index.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/parallel-plugin-worker.cjs +1 -1
- package/dist/esm/cli.mjs +2 -2
- package/dist/esm/experimental-index.mjs +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/parallel-plugin-worker.mjs +1 -1
- package/dist/shared/{src-DGUmeSRg.cjs → src-B8is7bWo.cjs} +1 -1
- package/dist/shared/{src-B2OfQx0E.mjs → src-CqGqHbOH.mjs} +1 -1
- package/dist/types/plugin/hook-filter.d.ts +6 -5
- package/package.json +14 -14
package/dist/cjs/cli.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('../shared/chunk-qZFfknuJ.cjs');
|
|
3
|
-
const require_src = require('../shared/src-
|
|
3
|
+
const require_src = require('../shared/src-B8is7bWo.cjs');
|
|
4
4
|
const require_parse_ast_index = require('../shared/parse-ast-index-DbQWN9pL.cjs');
|
|
5
5
|
const node_process = require_chunk.__toESM(require("node:process"));
|
|
6
6
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
@@ -1393,7 +1393,7 @@ function collectOutputEntries(output) {
|
|
|
1393
1393
|
return output.map((chunk) => ({
|
|
1394
1394
|
type: chunk.type,
|
|
1395
1395
|
fileName: chunk.fileName,
|
|
1396
|
-
size: chunk.type === "chunk" ? chunk.code
|
|
1396
|
+
size: chunk.type === "chunk" ? Buffer.byteLength(chunk.code) : Buffer.byteLength(chunk.source)
|
|
1397
1397
|
}));
|
|
1398
1398
|
}
|
|
1399
1399
|
function collectOutputLayoutAdjustmentSizes(entries) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('../shared/chunk-qZFfknuJ.cjs');
|
|
3
|
-
const require_src = require('../shared/src-
|
|
3
|
+
const require_src = require('../shared/src-B8is7bWo.cjs');
|
|
4
4
|
const require_parse_ast_index = require('../shared/parse-ast-index-DbQWN9pL.cjs');
|
|
5
5
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
6
6
|
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('../shared/chunk-qZFfknuJ.cjs');
|
|
3
|
-
const require_src = require('../shared/src-
|
|
3
|
+
const require_src = require('../shared/src-B8is7bWo.cjs');
|
|
4
4
|
const require_parse_ast_index = require('../shared/parse-ast-index-DbQWN9pL.cjs');
|
|
5
5
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
6
6
|
|
package/dist/esm/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { colors } from "../shared/parse-ast-index-B-UemHTj.mjs";
|
|
2
|
-
import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "../shared/src-
|
|
2
|
+
import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "../shared/src-CqGqHbOH.mjs";
|
|
3
3
|
import process$1, { cwd } from "node:process";
|
|
4
4
|
import path, { sep } from "node:path";
|
|
5
5
|
import fs from "node:fs";
|
|
@@ -1389,7 +1389,7 @@ function collectOutputEntries(output) {
|
|
|
1389
1389
|
return output.map((chunk) => ({
|
|
1390
1390
|
type: chunk.type,
|
|
1391
1391
|
fileName: chunk.fileName,
|
|
1392
|
-
size: chunk.type === "chunk" ? chunk.code
|
|
1392
|
+
size: chunk.type === "chunk" ? Buffer.byteLength(chunk.code) : Buffer.byteLength(chunk.source)
|
|
1393
1393
|
}));
|
|
1394
1394
|
}
|
|
1395
1395
|
function collectOutputLayoutAdjustmentSizes(entries) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { import_binding } from "../shared/parse-ast-index-B-UemHTj.mjs";
|
|
2
|
-
import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "../shared/src-
|
|
2
|
+
import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "../shared/src-CqGqHbOH.mjs";
|
|
3
3
|
import { pathToFileURL } from "node:url";
|
|
4
4
|
|
|
5
5
|
//#region src/plugin/parallel-plugin.ts
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../shared/parse-ast-index-B-UemHTj.mjs";
|
|
2
|
-
import { VERSION, build, defineConfig, rolldown, watch } from "../shared/src-
|
|
2
|
+
import { VERSION, build, defineConfig, rolldown, watch } from "../shared/src-CqGqHbOH.mjs";
|
|
3
3
|
|
|
4
4
|
export { VERSION, build, defineConfig, rolldown, watch };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { import_binding } from "../shared/parse-ast-index-B-UemHTj.mjs";
|
|
2
|
-
import { PluginContextData, bindingifyPlugin } from "../shared/src-
|
|
2
|
+
import { PluginContextData, bindingifyPlugin } from "../shared/src-CqGqHbOH.mjs";
|
|
3
3
|
import { parentPort, workerData } from "node:worker_threads";
|
|
4
4
|
|
|
5
5
|
//#region src/parallel-plugin-worker.ts
|
|
@@ -2853,7 +2853,7 @@ const watch = (input) => {
|
|
|
2853
2853
|
|
|
2854
2854
|
//#endregion
|
|
2855
2855
|
//#region package.json
|
|
2856
|
-
var version = "1.0.0-beta.7-commit.
|
|
2856
|
+
var version = "1.0.0-beta.7-commit.d97c9cc";
|
|
2857
2857
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
2858
2858
|
|
|
2859
2859
|
//#endregion
|
|
@@ -2851,7 +2851,7 @@ const watch = (input) => {
|
|
|
2851
2851
|
|
|
2852
2852
|
//#endregion
|
|
2853
2853
|
//#region package.json
|
|
2854
|
-
var version = "1.0.0-beta.7-commit.
|
|
2854
|
+
var version = "1.0.0-beta.7-commit.d97c9cc";
|
|
2855
2855
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
2856
2856
|
|
|
2857
2857
|
//#endregion
|
|
@@ -12,28 +12,29 @@ export type ModuleTypeFilter = ModuleType[] | FormalModuleTypeFilter;
|
|
|
12
12
|
export interface HookFilter {
|
|
13
13
|
/**
|
|
14
14
|
* This filter is used to do a pre-test to determine whether the hook should be called.
|
|
15
|
+
*
|
|
15
16
|
* @example
|
|
16
|
-
*
|
|
17
|
+
* Include all `id`s that contain `node_modules` in the path.
|
|
17
18
|
* ```js
|
|
18
19
|
* { id: 'node_modules' }
|
|
19
20
|
* ```
|
|
20
21
|
* @example
|
|
21
|
-
*
|
|
22
|
+
* Include all `id`s that contain `node_modules` or `src` in the path.
|
|
22
23
|
* ```js
|
|
23
24
|
* { id: ['node_modules', 'src'] }
|
|
24
25
|
* ```
|
|
25
26
|
* @example
|
|
26
|
-
*
|
|
27
|
+
* Include all `id`s that start with `http`
|
|
27
28
|
* ```js
|
|
28
29
|
* { id: /^http/ }
|
|
29
30
|
* ```
|
|
30
31
|
* @example
|
|
31
|
-
*
|
|
32
|
+
* Exclude all `id`s that contain `node_modules` in the path.
|
|
32
33
|
* ```js
|
|
33
34
|
* { id: { exclude: 'node_modules' } }
|
|
34
35
|
* ```
|
|
35
36
|
* @example
|
|
36
|
-
*
|
|
37
|
+
* Formal pattern to define includes and excludes.
|
|
37
38
|
* ```
|
|
38
39
|
* { id : {
|
|
39
40
|
* include: ["foo", /bar/],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown",
|
|
3
|
-
"version": "1.0.0-beta.7-commit.
|
|
3
|
+
"version": "1.0.0-beta.7-commit.d97c9cc",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"homepage": "https://rolldown.rs/",
|
|
6
6
|
"repository": {
|
|
@@ -123,21 +123,21 @@
|
|
|
123
123
|
"unbuild": "^3.0.0",
|
|
124
124
|
"why-is-node-running": "^3.0.0",
|
|
125
125
|
"@rolldown/testing": "0.0.1",
|
|
126
|
-
"rolldown": "1.0.0-beta.7-commit.
|
|
126
|
+
"rolldown": "1.0.0-beta.7-commit.d97c9cc"
|
|
127
127
|
},
|
|
128
128
|
"optionalDependencies": {
|
|
129
|
-
"@rolldown/binding-darwin-
|
|
130
|
-
"@rolldown/binding-
|
|
131
|
-
"@rolldown/binding-
|
|
132
|
-
"@rolldown/binding-
|
|
133
|
-
"@rolldown/binding-linux-
|
|
134
|
-
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.7-commit.
|
|
135
|
-
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.7-commit.
|
|
136
|
-
"@rolldown/binding-
|
|
137
|
-
"@rolldown/binding-
|
|
138
|
-
"@rolldown/binding-win32-
|
|
139
|
-
"@rolldown/binding-win32-
|
|
140
|
-
"@rolldown/binding-win32-
|
|
129
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.7-commit.d97c9cc",
|
|
130
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.7-commit.d97c9cc",
|
|
131
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.7-commit.d97c9cc",
|
|
132
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-beta.7-commit.d97c9cc",
|
|
133
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.7-commit.d97c9cc",
|
|
134
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.7-commit.d97c9cc",
|
|
135
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.7-commit.d97c9cc",
|
|
136
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.7-commit.d97c9cc",
|
|
137
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.7-commit.d97c9cc",
|
|
138
|
+
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.7-commit.d97c9cc",
|
|
139
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.7-commit.d97c9cc",
|
|
140
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.7-commit.d97c9cc"
|
|
141
141
|
},
|
|
142
142
|
"scripts": {
|
|
143
143
|
"# Scrips for binding #": "_",
|