Skip to content

Commit

Permalink
fix(bundle): add auro-alaska.js to the bundler #105
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-capsule42 authored and blackfalcon committed Feb 21, 2024
1 parent 0b02364 commit 53e4ef0
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { nodeResolve } from '@rollup/plugin-node-resolve';
import serve from 'rollup-plugin-serve';

const production = !process.env.ROLLUP_WATCH,
const production = !process.env.ROLLUP_WATCH;

modernConfig = {
const modernConfig = {
input: {
['auro-icon__bundled']: './index.js',
},
Expand All @@ -21,4 +21,22 @@ const production = !process.env.ROLLUP_WATCH,
]
};

export default [modernConfig];
const alaskaConfig = {
input: {
['auro-alaska__bundled']: './src/auro-alaska.js',
},
output: {
format: 'esm',
dir: 'dist/'
},
plugins: [
nodeResolve(),
!production &&
serve({
open: true,
openPage: '/docs/'
})
]
};

export default [modernConfig, alaskaConfig];

0 comments on commit 53e4ef0

Please sign in to comment.