@@ -1040,10 +1040,10 @@ export function resolveBuildOutputs(
1040
1040
}
1041
1041
1042
1042
const warningIgnoreList = [ `CIRCULAR_DEPENDENCY` , `THIS_IS_UNDEFINED` ]
1043
- const dynamicImportWarningIgnoreList = [
1044
- `Unsupported expression` ,
1045
- `statically analyzed` ,
1046
- ]
1043
+ // const dynamicImportWarningIgnoreList = [
1044
+ // `Unsupported expression`,
1045
+ // `statically analyzed`,
1046
+ // ]
1047
1047
1048
1048
function clearLine ( ) {
1049
1049
const tty = process . stdout . isTTY && ! process . env . CI
@@ -1068,41 +1068,41 @@ export function onRollupWarning(
1068
1068
}
1069
1069
1070
1070
if ( typeof warning === 'object' ) {
1071
- if ( warning . code === 'UNRESOLVED_IMPORT' ) {
1072
- const id = warning . id
1073
- const exporter = warning . exporter
1074
- // throw unless it's commonjs external...
1075
- if ( ! id || ! id . endsWith ( '?commonjs-external' ) ) {
1076
- throw new Error (
1077
- `[vite]: Rollup failed to resolve import "${ exporter } " from "${ id } ".\n` +
1078
- `This is most likely unintended because it can break your application at runtime.\n` +
1079
- `If you do want to externalize this module explicitly add it to\n` +
1080
- `\`build.rollupOptions.external\`` ,
1081
- )
1082
- }
1083
- }
1071
+ // if (warning.code === 'UNRESOLVED_IMPORT') {
1072
+ // const id = warning.id
1073
+ // const exporter = warning.exporter
1074
+ // // throw unless it's commonjs external...
1075
+ // if (!id || !id.endsWith('?commonjs-external')) {
1076
+ // throw new Error(
1077
+ // `[vite]: Rollup failed to resolve import "${exporter}" from "${id}".\n` +
1078
+ // `This is most likely unintended because it can break your application at runtime.\n` +
1079
+ // `If you do want to externalize this module explicitly add it to\n` +
1080
+ // `\`build.rollupOptions.external\``,
1081
+ // )
1082
+ // }
1083
+ // }
1084
1084
1085
- if (
1086
- warning . plugin === 'rollup-plugin-dynamic-import-variables' &&
1087
- dynamicImportWarningIgnoreList . some ( ( msg ) =>
1088
- warning . message . includes ( msg ) ,
1089
- )
1090
- ) {
1091
- return
1092
- }
1085
+ // if (
1086
+ // warning.plugin === 'rollup-plugin-dynamic-import-variables' &&
1087
+ // dynamicImportWarningIgnoreList.some((msg) =>
1088
+ // warning.message.includes(msg),
1089
+ // )
1090
+ // ) {
1091
+ // return
1092
+ // }
1093
1093
1094
1094
if ( warningIgnoreList . includes ( warning . code ! ) ) {
1095
1095
return
1096
1096
}
1097
1097
1098
- if ( warning . code === 'PLUGIN_WARNING' ) {
1099
- environment . logger . warn (
1100
- `${ colors . bold (
1101
- colors . yellow ( `[plugin:${ warning . plugin } ]` ) ,
1102
- ) } ${ colors . yellow ( warning . message ) } `,
1103
- )
1104
- return
1105
- }
1098
+ // if (warning.code === 'PLUGIN_WARNING') {
1099
+ // environment.logger.warn(
1100
+ // `${colors.bold(
1101
+ // colors.yellow(`[plugin:${warning.plugin}]`),
1102
+ // )} ${colors.yellow(warning.message)}`,
1103
+ // )
1104
+ // return
1105
+ // }
1106
1106
}
1107
1107
1108
1108
warn ( warnLog )
0 commit comments