rollup 5.0.0-0 → 5.0.0-2
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.md +0 -17
- package/dist/bin/rollup +119 -108
- package/dist/es/getLogFilter.js +2 -2
- package/dist/es/parseAst.js +2 -2
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/node-entry.js +1637 -1092
- package/dist/es/shared/parseAst.js +123 -31
- package/dist/es/shared/watch.js +3204 -1008
- package/dist/getLogFilter.js +2 -2
- package/dist/loadConfigFile.js +2 -2
- package/dist/native.js +6 -1
- package/dist/parseAst.js +2 -2
- package/dist/rollup.android-arm-eabi.node +0 -0
- package/dist/rollup.android-arm64.node +0 -0
- package/dist/rollup.android-x64.node +0 -0
- package/dist/rollup.d.ts +23 -9
- package/dist/rollup.darwin-arm64.node +0 -0
- package/dist/rollup.darwin-x64.node +0 -0
- package/dist/rollup.freebsd-arm64.node +0 -0
- package/dist/rollup.freebsd-x64.node +0 -0
- package/dist/rollup.js +2 -2
- package/dist/rollup.linux-arm-gnueabihf.node +0 -0
- package/dist/rollup.linux-arm-musleabihf.node +0 -0
- package/dist/rollup.linux-arm64-gnu.node +0 -0
- package/dist/rollup.linux-arm64-musl.node +0 -0
- package/dist/rollup.linux-loong64-gnu.node +0 -0
- package/dist/rollup.linux-loong64-musl.node +0 -0
- package/dist/rollup.linux-ppc64-gnu.node +0 -0
- package/dist/rollup.linux-ppc64-musl.node +0 -0
- package/dist/rollup.linux-riscv64-gnu.node +0 -0
- package/dist/rollup.linux-riscv64-musl.node +0 -0
- package/dist/rollup.linux-s390x-gnu.node +0 -0
- package/dist/rollup.linux-x64-gnu.node +0 -0
- package/dist/rollup.linux-x64-musl.node +0 -0
- package/dist/rollup.openbsd-x64.node +0 -0
- package/dist/rollup.openharmony-arm64.node +0 -0
- package/dist/rollup.win32-arm64-msvc.node +0 -0
- package/dist/rollup.win32-ia32-msvc.node +0 -0
- package/dist/rollup.win32-x64-gnu.node +0 -0
- package/dist/rollup.win32-x64-msvc.node +0 -0
- package/dist/shared/index.js +3198 -1002
- package/dist/shared/loadConfigFile.js +2 -2
- package/dist/shared/node-entry.js +2 -2
- package/dist/shared/parseAst.js +129 -37
- package/dist/shared/rollup.js +1594 -1049
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +54 -51
package/dist/getLogFilter.js
CHANGED
package/dist/loadConfigFile.js
CHANGED
package/dist/native.js
CHANGED
|
@@ -56,7 +56,8 @@ const isMusl = () => {
|
|
|
56
56
|
const bindingsByPlatformAndArch = {
|
|
57
57
|
android: {
|
|
58
58
|
arm: { base: 'android-arm-eabi' },
|
|
59
|
-
arm64: { base: 'android-arm64' }
|
|
59
|
+
arm64: { base: 'android-arm64' },
|
|
60
|
+
x64: { base: 'android-x64' }
|
|
60
61
|
},
|
|
61
62
|
darwin: {
|
|
62
63
|
arm64: { base: 'darwin-arm64' },
|
|
@@ -118,6 +119,10 @@ const requireWithFriendlyError = id => {
|
|
|
118
119
|
);
|
|
119
120
|
}
|
|
120
121
|
|
|
122
|
+
if (error instanceof Error && error.code === 'ERR_DLOPEN_FAILED') {
|
|
123
|
+
throw error;
|
|
124
|
+
}
|
|
125
|
+
|
|
121
126
|
throw new Error(
|
|
122
127
|
`Cannot find module ${id}. ` +
|
|
123
128
|
`npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). ` +
|
package/dist/parseAst.js
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/rollup.d.ts
CHANGED
|
@@ -54,8 +54,8 @@ export interface ExistingDecodedSourceMap {
|
|
|
54
54
|
readonly mappings: SourceMapSegment[][];
|
|
55
55
|
names: string[];
|
|
56
56
|
sourceRoot?: string | undefined;
|
|
57
|
-
sources: string[];
|
|
58
|
-
sourcesContent?: string[] | undefined;
|
|
57
|
+
sources: (string | null)[];
|
|
58
|
+
sourcesContent?: (string | null)[] | undefined;
|
|
59
59
|
version: number;
|
|
60
60
|
x_google_ignoreList?: number[] | undefined;
|
|
61
61
|
}
|
|
@@ -65,8 +65,8 @@ export interface ExistingRawSourceMap {
|
|
|
65
65
|
mappings: string;
|
|
66
66
|
names: string[];
|
|
67
67
|
sourceRoot?: string | undefined;
|
|
68
|
-
sources: string[];
|
|
69
|
-
sourcesContent?: string[] | undefined;
|
|
68
|
+
sources: (string | null)[];
|
|
69
|
+
sourcesContent?: (string | null)[] | undefined;
|
|
70
70
|
version: number;
|
|
71
71
|
x_google_ignoreList?: number[] | undefined;
|
|
72
72
|
}
|
|
@@ -90,7 +90,17 @@ export interface SourceMap {
|
|
|
90
90
|
toUrl(): string;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
export type SourceMapInput =
|
|
93
|
+
export type SourceMapInput =
|
|
94
|
+
ExistingRawSourceMap | IndexSourceMap | string | null | { mappings: '' };
|
|
95
|
+
|
|
96
|
+
export interface IndexSourceMap {
|
|
97
|
+
file?: string | undefined;
|
|
98
|
+
sections: {
|
|
99
|
+
map: ExistingRawSourceMap | IndexSourceMap;
|
|
100
|
+
offset: { column: number; line: number };
|
|
101
|
+
}[];
|
|
102
|
+
version: number;
|
|
103
|
+
}
|
|
94
104
|
|
|
95
105
|
export type UniqueModuleId = string | { rawId: string; attributes?: Record<string, string> };
|
|
96
106
|
|
|
@@ -886,8 +896,6 @@ export interface OutputOptions {
|
|
|
886
896
|
experimentalMinChunkSize?: number | undefined;
|
|
887
897
|
exports?: 'default' | 'named' | 'none' | 'auto' | undefined;
|
|
888
898
|
extend?: boolean | undefined;
|
|
889
|
-
/** @deprecated Use "externalImportAttributes" instead. */
|
|
890
|
-
externalImportAssertions?: boolean | undefined;
|
|
891
899
|
externalImportAttributes?: boolean | undefined;
|
|
892
900
|
externalLiveBindings?: boolean | undefined;
|
|
893
901
|
// only required for bundle.write
|
|
@@ -899,6 +907,7 @@ export interface OutputOptions {
|
|
|
899
907
|
globals?: GlobalsOption | undefined;
|
|
900
908
|
hashCharacters?: HashCharacters | undefined;
|
|
901
909
|
hoistTransitiveImports?: boolean | undefined;
|
|
910
|
+
/** @deprecated Only needed for environments that do not support the "with" keyword. */
|
|
902
911
|
importAttributesKey?: ImportAttributesKey | undefined;
|
|
903
912
|
indent?: string | boolean | undefined;
|
|
904
913
|
inlineDynamicImports?: boolean | undefined;
|
|
@@ -943,8 +952,6 @@ export interface NormalizedOutputOptions {
|
|
|
943
952
|
experimentalMinChunkSize: number;
|
|
944
953
|
exports: 'default' | 'named' | 'none' | 'auto';
|
|
945
954
|
extend: boolean;
|
|
946
|
-
/** @deprecated Use "externalImportAttributes" instead. */
|
|
947
|
-
externalImportAssertions: boolean;
|
|
948
955
|
externalImportAttributes: boolean;
|
|
949
956
|
externalLiveBindings: boolean;
|
|
950
957
|
file: string | undefined;
|
|
@@ -955,6 +962,7 @@ export interface NormalizedOutputOptions {
|
|
|
955
962
|
globals: GlobalsOption;
|
|
956
963
|
hashCharacters: HashCharacters;
|
|
957
964
|
hoistTransitiveImports: boolean;
|
|
965
|
+
/** @deprecated Only needed for environments that do not support the "with" keyword. */
|
|
958
966
|
importAttributesKey: ImportAttributesKey;
|
|
959
967
|
indent: true | string;
|
|
960
968
|
inlineDynamicImports: boolean;
|
|
@@ -1103,6 +1111,8 @@ export interface ChokidarOptions {
|
|
|
1103
1111
|
stabilityThreshold?: number | undefined;
|
|
1104
1112
|
}
|
|
1105
1113
|
| undefined;
|
|
1114
|
+
backend?: 'auto' | 'native' | 'native-recursive' | 'polling' | undefined;
|
|
1115
|
+
/** @deprecated Use "pollingBinaryInterval" instead. */
|
|
1106
1116
|
binaryInterval?: number | undefined;
|
|
1107
1117
|
cwd?: string | undefined;
|
|
1108
1118
|
depth?: number | undefined;
|
|
@@ -1110,8 +1120,12 @@ export interface ChokidarOptions {
|
|
|
1110
1120
|
ignoreInitial?: boolean | undefined;
|
|
1111
1121
|
ignorePermissionErrors?: boolean | undefined;
|
|
1112
1122
|
ignored?: Matcher | Matcher[] | undefined;
|
|
1123
|
+
/** @deprecated Use "pollingInterval" instead. */
|
|
1113
1124
|
interval?: number | undefined;
|
|
1114
1125
|
persistent?: boolean | undefined;
|
|
1126
|
+
pollingBinaryInterval?: number | undefined;
|
|
1127
|
+
pollingInterval?: number | undefined;
|
|
1128
|
+
/** @deprecated Use `backend: "polling"` instead. */
|
|
1115
1129
|
usePolling?: boolean | undefined;
|
|
1116
1130
|
}
|
|
1117
1131
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/rollup.js
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|