mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-05-17 07:49:39 +03:00
improve build
This commit is contained in:
@@ -139,7 +139,7 @@ const createConfig = (userOptions = {}) => {
|
||||
const types = extractTypes && pipelineTypes(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)];
|
||||
|
||||
@@ -14,6 +14,11 @@ module.exports = (resolve, options) => {
|
||||
return [
|
||||
{
|
||||
input,
|
||||
onwarn: (warning, warn) => {
|
||||
if (warning.code !== 'EMPTY_BUNDLE') {
|
||||
warn(warning);
|
||||
}
|
||||
},
|
||||
output: {
|
||||
file: path.resolve(typesPath, `${file}`),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user