Skip to content

Commit

Permalink
chore: update build
Browse files Browse the repository at this point in the history
only output a UMD until someone asks for other formats

BREAKING CHANGE: updates the build type
  • Loading branch information
kevinchappell committed Oct 20, 2024
1 parent 77db340 commit d4d6b1d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: 'npm'
node-version: 23
- name: Install dependencies
env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: 'npm'
node-version: 23
- name: Install dependencies
env:
Expand Down
5 changes: 3 additions & 2 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ const libConfig = {
lib: {
entry: 'src/lib/js/index.js',
name: 'Formeo',
fileName: format => `formeo.${format}.min.js`,
formats: ['es', 'cjs', 'umd', 'iife'],
fileName: () => 'formeo.min.js',
formats: ['umd'],
outDir: resolve(__dirname, 'dist'),
},
minify: 'terser',
Expand All @@ -70,6 +70,7 @@ const libConfig = {
const demoConfig = {
...sharedConfig,
root: 'src/demo',
base: '',
resolve: {
alias: {
'formeo': resolve(__dirname, 'src/lib/js/index.js'),
Expand Down

0 comments on commit d4d6b1d

Please sign in to comment.