Skip to content

Commit

Permalink
build: Add bili as library bundler
Browse files Browse the repository at this point in the history
  • Loading branch information
Namchee committed Sep 7, 2020
1 parent 2ab874f commit d090290
Show file tree
Hide file tree
Showing 4 changed files with 1,277 additions and 186 deletions.
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
presets: [
[
'@vue/cli-plugin-babel/preset',
'@babel/preset-env',
{
useBuiltIns: false,
},
Expand Down
12 changes: 12 additions & 0 deletions bili.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
export default {
banner: true,
env: 'production',
input: 'src/index.ts',
plugins: {
vue: true,
},
output: {
format: ['cjs', 'esm', 'umd', 'iife'],
moduleName: 'tetikus',
},
};
Loading

0 comments on commit d090290

Please sign in to comment.