Skip to content

Commit

Permalink
feat: add commonjs() as rollup plugin in config
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayakkulkarni committed Jan 29, 2021
1 parent ab11d61 commit ac0fdca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/rollup.conf.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import vue from 'rollup-plugin-vue';
import alias from '@rollup/plugin-alias';
import babel from '@rollup/plugin-babel';
Expand All @@ -8,6 +9,7 @@ const extensions = ['.js', '.ts', '.vue'];

const plugins = [
resolve({ extensions, browser: true }),
commonjs({ extensions, exclude: 'src/**' }),
vue(),
alias({
entries: {
Expand Down
2 changes: 2 additions & 0 deletions build/rollup.min.conf.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import alias from '@rollup/plugin-alias';
import babel from '@rollup/plugin-babel';
import commonjs from '@rollup/plugin-commonjs';
import resolve from '@rollup/plugin-node-resolve';
import { terser } from 'rollup-plugin-terser';
import typescript from 'rollup-plugin-typescript2';
Expand All @@ -16,6 +17,7 @@ export default {
},
plugins: [
resolve({ extensions, browser: true }),
commonjs({ extensions, exclude: 'src/**' }),
alias({
entries: {
vue: 'vue/dist/vue.runtime.esm-browser.prod.js',
Expand Down

0 comments on commit ac0fdca

Please sign in to comment.