Skip to content

Commit de4e38d

Browse files
committed
chore: rollup config
1 parent 126d5dd commit de4e38d

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

rollup.config.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@ function createEntry(options) {
2020

2121
const config = {
2222
input,
23-
external: ['vue', 'lodash/mergeWith'],
23+
external: [
24+
'vue',
25+
'lodash/mergeWith',
26+
'lodash/camelCase',
27+
'lodash/upperFirst',
28+
'lodash/kebabCase',
29+
'lodash/flow'
30+
],
2431
plugins: [resolve()],
2532
output: {
2633
banner,

src/stubs.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { transformVNodeArgs, h } from 'vue'
2-
import kebabCase from 'lodash/kebabCase'
32

4-
import { pascalCase } from './utils'
3+
import { pascalCase, kebabCase } from './utils'
54

65
interface IStubOptions {
76
name?: string

src/utils.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import camelCase from 'lodash/camelCase'
22
import upperFirst from 'lodash/upperFirst'
3+
import kebabCase from 'lodash/kebabCase'
34
import flow from 'lodash/flow'
45

5-
export const pascalCase = flow(camelCase, upperFirst)
6+
const pascalCase = flow(camelCase, upperFirst)
7+
8+
export { kebabCase, pascalCase }

0 commit comments

Comments
 (0)