pull/5806/head
Mert Sincan 2024-05-23 23:11:48 +01:00
parent 1d3096d74e
commit ac95478fa6
1 changed files with 5 additions and 7 deletions

View File

@ -34,6 +34,10 @@ const BABEL_PLUGIN_OPTIONS = {
babelrc: false babelrc: false
}; };
const ALIAS_PLUGIN_OPTIONS = {
entries: ALIAS_ENTRIES
};
const POSTCSS_PLUGIN_OPTIONS = { const POSTCSS_PLUGIN_OPTIONS = {
sourceMap: false sourceMap: false
}; };
@ -105,13 +109,7 @@ const ENTRY = {
ENTRY.entries.push({ ENTRY.entries.push({
onwarn: ENTRY.onwarn, onwarn: ENTRY.onwarn,
input, input,
plugins: [ plugins: [alias(ALIAS_PLUGIN_OPTIONS), ...PLUGINS, minify && terser(TERSER_PLUGIN_OPTIONS)],
alias({
entries: ALIAS_ENTRIES
}),
...PLUGINS,
minify && terser(TERSER_PLUGIN_OPTIONS)
],
external: GLOBAL_EXTERNALS, external: GLOBAL_EXTERNALS,
inlineDynamicImports: true, inlineDynamicImports: true,
output: [ output: [