UNPKG

@18ys/god

Version:

prefer to a global Object that can set some data to it, because vue3 don't have the global Object Vue.

18 lines (16 loc) 376 B
import path from 'path' import commonjs from '@rollup/plugin-commonjs'; import tsplugin from 'rollup-plugin-typescript2'; const absoPath = filepath => path.resolve(__dirname, filepath); export default { input: absoPath('src/index.ts'), output: { file: absoPath('dist/god.js'), format: 'umd', name: 'god' }, plugins: [ commonjs(), tsplugin() ] }