improve build

This commit is contained in:
Rene Haas
2022-08-01 17:20:51 +02:00
parent 30a9123cd2
commit ed4897e687
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -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)];
+5
View File
@@ -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}`),
},