Refactor #5774
parent
1d3096d74e
commit
ac95478fa6
|
@ -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: [
|
||||||
|
|
Loading…
Reference in New Issue