Skip to content

Commit d090290

Browse files
committed
build: Add bili as library bundler
1 parent 2ab874f commit d090290

File tree

4 files changed

+1277
-186
lines changed

4 files changed

+1277
-186
lines changed

babel.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
presets: [
33
[
4-
'@vue/cli-plugin-babel/preset',
4+
'@babel/preset-env',
55
{
66
useBuiltIns: false,
77
},

bili.config.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
export default {
2+
banner: true,
3+
env: 'production',
4+
input: 'src/index.ts',
5+
plugins: {
6+
vue: true,
7+
},
8+
output: {
9+
format: ['cjs', 'esm', 'umd', 'iife'],
10+
moduleName: 'tetikus',
11+
},
12+
};

0 commit comments

Comments
 (0)