Skip to content

Commit

Permalink
build: add umd bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Mar 1, 2024
1 parent b74b247 commit fc89f79
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions lightweight/index.umd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,17 @@ const builds = [
}),
commonjs()
]
}),
build({
compress: true,
input: 'src/lightweight.js',
output: { name: 'mql', file: 'lightweight/index.umd.js', format: 'umd' },
plugins: [
nodeResolve({
mainFields: ['browser', 'module', 'main']
}),
commonjs()
]
})
]

Expand Down

0 comments on commit fc89f79

Please sign in to comment.