mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-14 20:02:28 +03:00
improve build
This commit is contained in:
@@ -139,7 +139,7 @@ const createConfig = (userOptions = {}) => {
|
|||||||
const types = extractTypes && pipelineTypes(resolve, options);
|
const types = extractTypes && pipelineTypes(resolve, options);
|
||||||
const styles = extractStyles && pipelineStyles(resolve, options);
|
const styles = extractStyles && pipelineStyles(resolve, options);
|
||||||
|
|
||||||
return [umd, esm, types, styles].flat().filter((build) => !!build);
|
return [styles, types, umd, esm].flat().filter((build) => !!build);
|
||||||
}
|
}
|
||||||
|
|
||||||
return [pipelineDev(resolve, options)];
|
return [pipelineDev(resolve, options)];
|
||||||
|
|||||||
@@ -14,6 +14,11 @@ module.exports = (resolve, options) => {
|
|||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
input,
|
input,
|
||||||
|
onwarn: (warning, warn) => {
|
||||||
|
if (warning.code !== 'EMPTY_BUNDLE') {
|
||||||
|
warn(warning);
|
||||||
|
}
|
||||||
|
},
|
||||||
output: {
|
output: {
|
||||||
file: path.resolve(typesPath, `${file}`),
|
file: path.resolve(typesPath, `${file}`),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user