Skip to content

Commit

Permalink
chore: extract core rollup plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
barmac committed Jan 23, 2024
1 parent edd338d commit ac3abe6
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ export default [
}
],
external: externalDependencies(),
plugins: pgl()
plugins: corePlugins()
}
];

function pgl(plugins = []) {
return [
return corePlugins([
...plugins,
alias({
entries: [
Expand All @@ -86,7 +86,13 @@ function pgl(plugins = []) {
'runtime': 'automatic'
} ]
]
}),
})
]);
}

function corePlugins(plugins = []) {
return [
...plugins,
json(),
resolve({
mainFields: [
Expand Down

0 comments on commit ac3abe6

Please sign in to comment.