@rollup/wasm-node 4.10.0 → 4.12.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.
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.10.0
4
- Sat, 10 Feb 2024 05:58:12 GMT - commit 762420860765e8e46e24d48b38f5b98ca31735fa
3
+ Rollup.js v4.12.0
4
+ Fri, 16 Feb 2024 13:31:42 GMT - commit 0146b84be33a8416b4df4b9382549a7ca19dd64a
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -275,11 +275,12 @@ const URL_BUNDLE_CONFIG_AS_CJS = 'command-line-interface/#bundleconfigascjs';
275
275
  const URL_CONFIGURATION_FILES = 'command-line-interface/#configuration-files';
276
276
 
277
277
  function error(base) {
278
- if (!(base instanceof Error)) {
279
- base = Object.assign(new Error(base.message), base);
280
- Object.defineProperty(base, 'name', { value: 'RollupError', writable: true });
281
- }
282
- throw base;
278
+ throw base instanceof Error ? base : getRollupEror(base);
279
+ }
280
+ function getRollupEror(base) {
281
+ const errorInstance = Object.assign(new Error(base.message), base);
282
+ Object.defineProperty(errorInstance, 'name', { value: 'RollupError', writable: true });
283
+ return errorInstance;
283
284
  }
284
285
  function augmentCodeLocation(properties, pos, source, id) {
285
286
  if (typeof pos === 'object') {
@@ -302,7 +303,7 @@ function augmentCodeLocation(properties, pos, source, id) {
302
303
  }
303
304
  // Error codes should be sorted alphabetically while errors should be sorted by
304
305
  // error code below
305
- const ADDON_ERROR = 'ADDON_ERROR', ALREADY_CLOSED = 'ALREADY_CLOSED', AMBIGUOUS_EXTERNAL_NAMESPACES = 'AMBIGUOUS_EXTERNAL_NAMESPACES', ANONYMOUS_PLUGIN_CACHE = 'ANONYMOUS_PLUGIN_CACHE', ASSET_NOT_FINALISED = 'ASSET_NOT_FINALISED', ASSET_NOT_FOUND = 'ASSET_NOT_FOUND', ASSET_SOURCE_ALREADY_SET = 'ASSET_SOURCE_ALREADY_SET', ASSET_SOURCE_MISSING = 'ASSET_SOURCE_MISSING', BAD_LOADER = 'BAD_LOADER', CANNOT_CALL_NAMESPACE = 'CANNOT_CALL_NAMESPACE', CANNOT_EMIT_FROM_OPTIONS_HOOK = 'CANNOT_EMIT_FROM_OPTIONS_HOOK', CHUNK_NOT_GENERATED = 'CHUNK_NOT_GENERATED', CHUNK_INVALID = 'CHUNK_INVALID', CIRCULAR_DEPENDENCY = 'CIRCULAR_DEPENDENCY', CIRCULAR_REEXPORT = 'CIRCULAR_REEXPORT', CYCLIC_CROSS_CHUNK_REEXPORT = 'CYCLIC_CROSS_CHUNK_REEXPORT', DEPRECATED_FEATURE = 'DEPRECATED_FEATURE', DUPLICATE_ARGUMENT_NAME = 'DUPLICATE_ARGUMENT_NAME', DUPLICATE_EXPORT = 'DUPLICATE_EXPORT', DUPLICATE_IMPORT_OPTIONS = 'DUPLICATE_IMPORT_OPTIONS', DUPLICATE_PLUGIN_NAME = 'DUPLICATE_PLUGIN_NAME', EMPTY_BUNDLE = 'EMPTY_BUNDLE', EVAL = 'EVAL', EXTERNAL_MODULES_CANNOT_BE_INCLUDED_IN_MANUAL_CHUNKS = 'EXTERNAL_MODULES_CANNOT_BE_INCLUDED_IN_MANUAL_CHUNKS', EXTERNAL_MODULES_CANNOT_BE_TRANSFORMED_TO_MODULES = 'EXTERNAL_MODULES_CANNOT_BE_TRANSFORMED_TO_MODULES', EXTERNAL_SYNTHETIC_EXPORTS = 'EXTERNAL_SYNTHETIC_EXPORTS', FAIL_AFTER_WARNINGS = 'FAIL_AFTER_WARNINGS', FILE_NAME_CONFLICT = 'FILE_NAME_CONFLICT', FILE_NOT_FOUND = 'FILE_NOT_FOUND', FIRST_SIDE_EFFECT = 'FIRST_SIDE_EFFECT', ILLEGAL_IDENTIFIER_AS_NAME = 'ILLEGAL_IDENTIFIER_AS_NAME', ILLEGAL_REASSIGNMENT = 'ILLEGAL_REASSIGNMENT', INCONSISTENT_IMPORT_ATTRIBUTES = 'INCONSISTENT_IMPORT_ATTRIBUTES', INVALID_ANNOTATION = 'INVALID_ANNOTATION', INPUT_HOOK_IN_OUTPUT_PLUGIN = 'INPUT_HOOK_IN_OUTPUT_PLUGIN', INVALID_CHUNK = 'INVALID_CHUNK', INVALID_CONFIG_MODULE_FORMAT = 'INVALID_CONFIG_MODULE_FORMAT', INVALID_EXPORT_OPTION = 'INVALID_EXPORT_OPTION', INVALID_EXTERNAL_ID = 'INVALID_EXTERNAL_ID', INVALID_IMPORT_ATTRIBUTE = 'INVALID_IMPORT_ATTRIBUTE', INVALID_LOG_POSITION = 'INVALID_LOG_POSITION', INVALID_OPTION = 'INVALID_OPTION', INVALID_PLUGIN_HOOK = 'INVALID_PLUGIN_HOOK', INVALID_ROLLUP_PHASE = 'INVALID_ROLLUP_PHASE', INVALID_SETASSETSOURCE = 'INVALID_SETASSETSOURCE', INVALID_TLA_FORMAT = 'INVALID_TLA_FORMAT', MISSING_CONFIG = 'MISSING_CONFIG', MISSING_EXPORT = 'MISSING_EXPORT', MISSING_EXTERNAL_CONFIG = 'MISSING_EXTERNAL_CONFIG', MISSING_GLOBAL_NAME = 'MISSING_GLOBAL_NAME', MISSING_IMPLICIT_DEPENDANT = 'MISSING_IMPLICIT_DEPENDANT', MISSING_NAME_OPTION_FOR_IIFE_EXPORT = 'MISSING_NAME_OPTION_FOR_IIFE_EXPORT', MISSING_NODE_BUILTINS = 'MISSING_NODE_BUILTINS', MISSING_OPTION = 'MISSING_OPTION', MIXED_EXPORTS = 'MIXED_EXPORTS', MODULE_LEVEL_DIRECTIVE = 'MODULE_LEVEL_DIRECTIVE', NAMESPACE_CONFLICT = 'NAMESPACE_CONFLICT', NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE = 'NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE', ONLY_INLINE_SOURCEMAPS = 'ONLY_INLINE_SOURCEMAPS', OPTIMIZE_CHUNK_STATUS = 'OPTIMIZE_CHUNK_STATUS', PARSE_ERROR = 'PARSE_ERROR', PLUGIN_ERROR = 'PLUGIN_ERROR', REDECLARATION_ERROR = 'REDECLARATION_ERROR', SHIMMED_EXPORT = 'SHIMMED_EXPORT', SOURCEMAP_BROKEN = 'SOURCEMAP_BROKEN', SOURCEMAP_ERROR = 'SOURCEMAP_ERROR', SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT = 'SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT', THIS_IS_UNDEFINED = 'THIS_IS_UNDEFINED', UNEXPECTED_NAMED_IMPORT = 'UNEXPECTED_NAMED_IMPORT', UNKNOWN_OPTION = 'UNKNOWN_OPTION', UNRESOLVED_ENTRY = 'UNRESOLVED_ENTRY', UNRESOLVED_IMPORT = 'UNRESOLVED_IMPORT', UNUSED_EXTERNAL_IMPORT = 'UNUSED_EXTERNAL_IMPORT', VALIDATION_ERROR = 'VALIDATION_ERROR';
306
+ const ADDON_ERROR = 'ADDON_ERROR', ALREADY_CLOSED = 'ALREADY_CLOSED', AMBIGUOUS_EXTERNAL_NAMESPACES = 'AMBIGUOUS_EXTERNAL_NAMESPACES', ANONYMOUS_PLUGIN_CACHE = 'ANONYMOUS_PLUGIN_CACHE', ASSET_NOT_FINALISED = 'ASSET_NOT_FINALISED', ASSET_NOT_FOUND = 'ASSET_NOT_FOUND', ASSET_SOURCE_ALREADY_SET = 'ASSET_SOURCE_ALREADY_SET', ASSET_SOURCE_MISSING = 'ASSET_SOURCE_MISSING', BAD_LOADER = 'BAD_LOADER', CANNOT_CALL_NAMESPACE = 'CANNOT_CALL_NAMESPACE', CANNOT_EMIT_FROM_OPTIONS_HOOK = 'CANNOT_EMIT_FROM_OPTIONS_HOOK', CHUNK_NOT_GENERATED = 'CHUNK_NOT_GENERATED', CHUNK_INVALID = 'CHUNK_INVALID', CIRCULAR_DEPENDENCY = 'CIRCULAR_DEPENDENCY', CIRCULAR_REEXPORT = 'CIRCULAR_REEXPORT', CONST_REASSIGN = 'CONST_REASSIGN', CYCLIC_CROSS_CHUNK_REEXPORT = 'CYCLIC_CROSS_CHUNK_REEXPORT', DEPRECATED_FEATURE = 'DEPRECATED_FEATURE', DUPLICATE_ARGUMENT_NAME = 'DUPLICATE_ARGUMENT_NAME', DUPLICATE_EXPORT = 'DUPLICATE_EXPORT', DUPLICATE_IMPORT_OPTIONS = 'DUPLICATE_IMPORT_OPTIONS', DUPLICATE_PLUGIN_NAME = 'DUPLICATE_PLUGIN_NAME', EMPTY_BUNDLE = 'EMPTY_BUNDLE', EVAL = 'EVAL', EXTERNAL_MODULES_CANNOT_BE_INCLUDED_IN_MANUAL_CHUNKS = 'EXTERNAL_MODULES_CANNOT_BE_INCLUDED_IN_MANUAL_CHUNKS', EXTERNAL_MODULES_CANNOT_BE_TRANSFORMED_TO_MODULES = 'EXTERNAL_MODULES_CANNOT_BE_TRANSFORMED_TO_MODULES', EXTERNAL_SYNTHETIC_EXPORTS = 'EXTERNAL_SYNTHETIC_EXPORTS', FAIL_AFTER_WARNINGS = 'FAIL_AFTER_WARNINGS', FILE_NAME_CONFLICT = 'FILE_NAME_CONFLICT', FILE_NOT_FOUND = 'FILE_NOT_FOUND', FIRST_SIDE_EFFECT = 'FIRST_SIDE_EFFECT', ILLEGAL_IDENTIFIER_AS_NAME = 'ILLEGAL_IDENTIFIER_AS_NAME', ILLEGAL_REASSIGNMENT = 'ILLEGAL_REASSIGNMENT', INCONSISTENT_IMPORT_ATTRIBUTES = 'INCONSISTENT_IMPORT_ATTRIBUTES', INVALID_ANNOTATION = 'INVALID_ANNOTATION', INPUT_HOOK_IN_OUTPUT_PLUGIN = 'INPUT_HOOK_IN_OUTPUT_PLUGIN', INVALID_CHUNK = 'INVALID_CHUNK', INVALID_CONFIG_MODULE_FORMAT = 'INVALID_CONFIG_MODULE_FORMAT', INVALID_EXPORT_OPTION = 'INVALID_EXPORT_OPTION', INVALID_EXTERNAL_ID = 'INVALID_EXTERNAL_ID', INVALID_IMPORT_ATTRIBUTE = 'INVALID_IMPORT_ATTRIBUTE', INVALID_LOG_POSITION = 'INVALID_LOG_POSITION', INVALID_OPTION = 'INVALID_OPTION', INVALID_PLUGIN_HOOK = 'INVALID_PLUGIN_HOOK', INVALID_ROLLUP_PHASE = 'INVALID_ROLLUP_PHASE', INVALID_SETASSETSOURCE = 'INVALID_SETASSETSOURCE', INVALID_TLA_FORMAT = 'INVALID_TLA_FORMAT', MISSING_CONFIG = 'MISSING_CONFIG', MISSING_EXPORT = 'MISSING_EXPORT', MISSING_EXTERNAL_CONFIG = 'MISSING_EXTERNAL_CONFIG', MISSING_GLOBAL_NAME = 'MISSING_GLOBAL_NAME', MISSING_IMPLICIT_DEPENDANT = 'MISSING_IMPLICIT_DEPENDANT', MISSING_NAME_OPTION_FOR_IIFE_EXPORT = 'MISSING_NAME_OPTION_FOR_IIFE_EXPORT', MISSING_NODE_BUILTINS = 'MISSING_NODE_BUILTINS', MISSING_OPTION = 'MISSING_OPTION', MIXED_EXPORTS = 'MIXED_EXPORTS', MODULE_LEVEL_DIRECTIVE = 'MODULE_LEVEL_DIRECTIVE', NAMESPACE_CONFLICT = 'NAMESPACE_CONFLICT', NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE = 'NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE', ONLY_INLINE_SOURCEMAPS = 'ONLY_INLINE_SOURCEMAPS', OPTIMIZE_CHUNK_STATUS = 'OPTIMIZE_CHUNK_STATUS', PARSE_ERROR = 'PARSE_ERROR', PLUGIN_ERROR = 'PLUGIN_ERROR', REDECLARATION_ERROR = 'REDECLARATION_ERROR', SHIMMED_EXPORT = 'SHIMMED_EXPORT', SOURCEMAP_BROKEN = 'SOURCEMAP_BROKEN', SOURCEMAP_ERROR = 'SOURCEMAP_ERROR', SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT = 'SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT', THIS_IS_UNDEFINED = 'THIS_IS_UNDEFINED', UNEXPECTED_NAMED_IMPORT = 'UNEXPECTED_NAMED_IMPORT', UNKNOWN_OPTION = 'UNKNOWN_OPTION', UNRESOLVED_ENTRY = 'UNRESOLVED_ENTRY', UNRESOLVED_IMPORT = 'UNRESOLVED_IMPORT', UNUSED_EXTERNAL_IMPORT = 'UNUSED_EXTERNAL_IMPORT', VALIDATION_ERROR = 'VALIDATION_ERROR';
306
307
  function logAddonNotGenerated(message, hook, plugin) {
307
308
  return {
308
309
  code: ADDON_ERROR,
@@ -418,6 +419,12 @@ function logDeprecation(deprecation, urlSnippet, plugin) {
418
419
  ...(plugin ? { plugin } : {})
419
420
  };
420
421
  }
422
+ function logConstVariableReassignError() {
423
+ return {
424
+ code: CONST_REASSIGN,
425
+ message: 'Cannot reassign a variable declared with `const`'
426
+ };
427
+ }
421
428
  function logDuplicateArgumentNameError(name) {
422
429
  return { code: DUPLICATE_ARGUMENT_NAME, message: `Duplicate argument name "${name}"` };
423
430
  }
@@ -957,6 +964,20 @@ function warnDeprecationWithOptions(deprecation, urlSnippet, activeDeprecation,
957
964
  }
958
965
  }
959
966
 
967
+ const ArrowFunctionExpression = 'ArrowFunctionExpression';
968
+ const BlockStatement = 'BlockStatement';
969
+ const CallExpression = 'CallExpression';
970
+ const CatchClause = 'CatchClause';
971
+ const ExpressionStatement = 'ExpressionStatement';
972
+ const Identifier = 'Identifier';
973
+ const Literal = 'Literal';
974
+ const PanicError = 'PanicError';
975
+ const ParseError = 'ParseError';
976
+ const Program = 'Program';
977
+ const Property = 'Property';
978
+ const ReturnStatement = 'ReturnStatement';
979
+ const TemplateLiteral = 'TemplateLiteral';
980
+
960
981
  const FIXED_STRINGS = [
961
982
  'var',
962
983
  'let',
@@ -1020,23 +1041,67 @@ const FIXED_STRINGS = [
1020
1041
  'noSideEffects'
1021
1042
  ];
1022
1043
 
1023
- // This file is generated by scripts/generate-ast-converters.js.
1024
- // Do not edit this file directly.
1025
1044
  const ANNOTATION_KEY = '_rollupAnnotations';
1026
1045
  const INVALID_ANNOTATION_KEY = '_rollupRemoved';
1046
+ const convertAnnotations = (position, buffer) => {
1047
+ const length = buffer[position++];
1048
+ const list = [];
1049
+ for (let index = 0; index < length; index++) {
1050
+ list.push(convertAnnotation(buffer[position++], buffer));
1051
+ }
1052
+ return list;
1053
+ };
1054
+ const convertAnnotation = (position, buffer) => {
1055
+ const start = buffer[position++];
1056
+ const end = buffer[position++];
1057
+ const type = FIXED_STRINGS[buffer[position]];
1058
+ return { end, start, type };
1059
+ };
1060
+ const convertString = (position, buffer, readString) => {
1061
+ const length = buffer[position++];
1062
+ const bytePosition = position << 2;
1063
+ return readString(bytePosition, length);
1064
+ };
1065
+
1066
+ // This file is generated by scripts/generate-ast-converters.js.
1067
+ // Do not edit this file directly.
1027
1068
  function convertProgram(buffer, readString) {
1028
- return convertNode(0, new Uint32Array(buffer), readString);
1069
+ const node = convertNode(0, new Uint32Array(buffer), readString);
1070
+ switch (node.type) {
1071
+ case PanicError: {
1072
+ return error(getRollupEror(logParseError(node.message)));
1073
+ }
1074
+ case ParseError: {
1075
+ return error(getRollupEror(logParseError(node.message, node.start)));
1076
+ }
1077
+ default: {
1078
+ return node;
1079
+ }
1080
+ }
1029
1081
  }
1030
1082
  /* eslint-disable sort-keys */
1031
1083
  const nodeConverters = [
1032
- function parseError(position, buffer, readString) {
1033
- const pos = buffer[position++];
1084
+ function panicError(position, buffer, readString) {
1085
+ const start = buffer[position++];
1086
+ const end = buffer[position++];
1034
1087
  const message = convertString(position, buffer, readString);
1035
- error(logParseError(message, pos));
1088
+ return {
1089
+ type: 'PanicError',
1090
+ start,
1091
+ end,
1092
+ message
1093
+ };
1036
1094
  },
1037
- function panicError(position, buffer, readString) {
1095
+ function parseError(position, buffer, readString) {
1096
+ const start = buffer[position++];
1097
+ const end = buffer[position++];
1038
1098
  const message = convertString(position, buffer, readString);
1039
- error(logParseError(message));
1099
+ return {
1100
+ type: 'ParseError',
1101
+ start,
1102
+ end,
1103
+ message
1104
+ };
1040
1105
  },
1041
1106
  function arrayExpression(position, buffer, readString) {
1042
1107
  const start = buffer[position++];
@@ -1737,8 +1802,8 @@ const nodeConverters = [
1737
1802
  const start = buffer[position++];
1738
1803
  const end = buffer[position++];
1739
1804
  const flags = buffer[position++];
1740
- const computed = (flags & 1) === 1;
1741
- const isStatic = (flags & 2) === 2;
1805
+ const isStatic = (flags & 1) === 1;
1806
+ const computed = (flags & 2) === 2;
1742
1807
  const value = convertNode(buffer[position++], buffer, readString);
1743
1808
  const kind = FIXED_STRINGS[buffer[position++]];
1744
1809
  const key = convertNode(position, buffer, readString);
@@ -1746,8 +1811,8 @@ const nodeConverters = [
1746
1811
  type: 'MethodDefinition',
1747
1812
  start,
1748
1813
  end,
1749
- computed,
1750
1814
  static: isStatic,
1815
+ computed,
1751
1816
  key,
1752
1817
  value,
1753
1818
  kind
@@ -1804,14 +1869,14 @@ const nodeConverters = [
1804
1869
  function program(position, buffer, readString) {
1805
1870
  const start = buffer[position++];
1806
1871
  const end = buffer[position++];
1807
- const annotations = convertAnnotations(buffer[position++], buffer);
1872
+ const invalidAnnotations = convertAnnotations(buffer[position++], buffer);
1808
1873
  const body = convertNodeList(position, buffer, readString);
1809
1874
  return {
1810
1875
  type: 'Program',
1811
1876
  start,
1812
1877
  end,
1813
1878
  body,
1814
- ...(annotations.length > 0 ? { [INVALID_ANNOTATION_KEY]: annotations } : {}),
1879
+ ...(invalidAnnotations.length > 0 ? { [INVALID_ANNOTATION_KEY]: invalidAnnotations } : {}),
1815
1880
  sourceType: 'module'
1816
1881
  };
1817
1882
  },
@@ -1841,8 +1906,8 @@ const nodeConverters = [
1841
1906
  const start = buffer[position++];
1842
1907
  const end = buffer[position++];
1843
1908
  const flags = buffer[position++];
1844
- const computed = (flags & 1) === 1;
1845
- const isStatic = (flags & 2) === 2;
1909
+ const isStatic = (flags & 1) === 1;
1910
+ const computed = (flags & 2) === 2;
1846
1911
  const valuePosition = buffer[position++];
1847
1912
  const value = valuePosition === 0 ? null : convertNode(valuePosition, buffer, readString);
1848
1913
  const key = convertNode(position, buffer, readString);
@@ -1850,8 +1915,8 @@ const nodeConverters = [
1850
1915
  type: 'PropertyDefinition',
1851
1916
  start,
1852
1917
  end,
1853
- computed,
1854
1918
  static: isStatic,
1919
+ computed,
1855
1920
  key,
1856
1921
  value
1857
1922
  };
@@ -2132,25 +2197,6 @@ function convertNodeList(position, buffer, readString) {
2132
2197
  }
2133
2198
  return list;
2134
2199
  }
2135
- const convertAnnotations = (position, buffer) => {
2136
- const length = buffer[position++];
2137
- const list = [];
2138
- for (let index = 0; index < length; index++) {
2139
- list.push(convertAnnotation(buffer[position++], buffer));
2140
- }
2141
- return list;
2142
- };
2143
- const convertAnnotation = (position, buffer) => {
2144
- const start = buffer[position++];
2145
- const end = buffer[position++];
2146
- const type = FIXED_STRINGS[buffer[position]];
2147
- return { end, start, type };
2148
- };
2149
- const convertString = (position, buffer, readString) => {
2150
- const length = buffer[position++];
2151
- const bytePosition = position << 2;
2152
- return readString(bytePosition, length);
2153
- };
2154
2200
 
2155
2201
  function getReadStringFunction(astBuffer) {
2156
2202
  if (typeof Buffer !== 'undefined' && astBuffer instanceof Buffer) {
@@ -2176,11 +2222,23 @@ const parseAstAsync = async (input, { allowReturnOutsideFunction = false, signal
2176
2222
  };
2177
2223
 
2178
2224
  exports.ANNOTATION_KEY = ANNOTATION_KEY;
2225
+ exports.ArrowFunctionExpression = ArrowFunctionExpression;
2226
+ exports.BlockStatement = BlockStatement;
2227
+ exports.CallExpression = CallExpression;
2228
+ exports.CatchClause = CatchClause;
2229
+ exports.ExpressionStatement = ExpressionStatement;
2230
+ exports.FIXED_STRINGS = FIXED_STRINGS;
2179
2231
  exports.INVALID_ANNOTATION_KEY = INVALID_ANNOTATION_KEY;
2232
+ exports.Identifier = Identifier;
2180
2233
  exports.LOGLEVEL_DEBUG = LOGLEVEL_DEBUG;
2181
2234
  exports.LOGLEVEL_ERROR = LOGLEVEL_ERROR;
2182
2235
  exports.LOGLEVEL_INFO = LOGLEVEL_INFO;
2183
2236
  exports.LOGLEVEL_WARN = LOGLEVEL_WARN;
2237
+ exports.Literal = Literal;
2238
+ exports.Program = Program;
2239
+ exports.Property = Property;
2240
+ exports.ReturnStatement = ReturnStatement;
2241
+ exports.TemplateLiteral = TemplateLiteral;
2184
2242
  exports.URL_AVOIDING_EVAL = URL_AVOIDING_EVAL;
2185
2243
  exports.URL_NAME_IS_NOT_EXPORTED = URL_NAME_IS_NOT_EXPORTED;
2186
2244
  exports.URL_OUTPUT_AMD_BASEPATH = URL_OUTPUT_AMD_BASEPATH;
@@ -2205,9 +2263,14 @@ exports.URL_TREESHAKE_MODULESIDEEFFECTS = URL_TREESHAKE_MODULESIDEEFFECTS;
2205
2263
  exports.URL_WATCH = URL_WATCH;
2206
2264
  exports.addTrailingSlashIfMissed = addTrailingSlashIfMissed;
2207
2265
  exports.augmentCodeLocation = augmentCodeLocation;
2266
+ exports.convertAnnotations = convertAnnotations;
2267
+ exports.convertNode = convertNode;
2268
+ exports.convertString = convertString;
2208
2269
  exports.error = error;
2209
2270
  exports.getAliasName = getAliasName;
2210
2271
  exports.getImportPath = getImportPath;
2272
+ exports.getReadStringFunction = getReadStringFunction;
2273
+ exports.getRollupEror = getRollupEror;
2211
2274
  exports.getRollupUrl = getRollupUrl;
2212
2275
  exports.isAbsolute = isAbsolute;
2213
2276
  exports.isPathFragment = isPathFragment;
@@ -2233,6 +2296,7 @@ exports.logChunkNotGeneratedForFileName = logChunkNotGeneratedForFileName;
2233
2296
  exports.logCircularDependency = logCircularDependency;
2234
2297
  exports.logCircularReexport = logCircularReexport;
2235
2298
  exports.logConflictingSourcemapSources = logConflictingSourcemapSources;
2299
+ exports.logConstVariableReassignError = logConstVariableReassignError;
2236
2300
  exports.logCyclicCrossChunkReexport = logCyclicCrossChunkReexport;
2237
2301
  exports.logDuplicateArgumentNameError = logDuplicateArgumentNameError;
2238
2302
  exports.logDuplicateExportError = logDuplicateExportError;
@@ -2287,6 +2351,7 @@ exports.logNoAssetSourceSet = logNoAssetSourceSet;
2287
2351
  exports.logNoTransformMapOrAstWithoutCode = logNoTransformMapOrAstWithoutCode;
2288
2352
  exports.logOnlyInlineSourcemapsForStdout = logOnlyInlineSourcemapsForStdout;
2289
2353
  exports.logOptimizeChunkStatus = logOptimizeChunkStatus;
2354
+ exports.logParseError = logParseError;
2290
2355
  exports.logPluginError = logPluginError;
2291
2356
  exports.logRedeclarationError = logRedeclarationError;
2292
2357
  exports.logShimmedExport = logShimmedExport;