mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-30 12:52:43 +08:00
chore
This commit is contained in:
parent
6be5bf0938
commit
672eee1be8
@ -1,28 +0,0 @@
|
||||
// index.js
|
||||
import { createApp } from 'vue'
|
||||
import {
|
||||
create,
|
||||
enUS,
|
||||
Button,
|
||||
Input,
|
||||
buttonLight,
|
||||
inputLight
|
||||
} from '../../es'
|
||||
|
||||
const app = createApp()
|
||||
const naive = create({
|
||||
// install components globally or import it in other component are both ok
|
||||
components: [
|
||||
Button,
|
||||
Input
|
||||
],
|
||||
styles: [
|
||||
buttonLight,
|
||||
inputLight
|
||||
],
|
||||
locales: [
|
||||
enUS
|
||||
]
|
||||
})
|
||||
|
||||
app.use(naive)
|
@ -1,32 +0,0 @@
|
||||
const { nodeResolve } = require('@rollup/plugin-node-resolve')
|
||||
|
||||
function externalValidator (patterns) {
|
||||
return id => patterns.some(pattern => id.startsWith(pattern))
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
input: 'playground/tree-shaking-test/index.js',
|
||||
output: [
|
||||
{
|
||||
format: 'esm',
|
||||
dir: 'dist'
|
||||
}
|
||||
],
|
||||
plugins: [
|
||||
nodeResolve({
|
||||
extensions: ['.js']
|
||||
})
|
||||
],
|
||||
external: externalValidator([
|
||||
'async-validator',
|
||||
'date-fns',
|
||||
'lodash-es',
|
||||
'vue',
|
||||
'treemate',
|
||||
'css-render',
|
||||
'@css-render/plugin-bem',
|
||||
'vueuc',
|
||||
'vooks',
|
||||
'evtd'
|
||||
])
|
||||
}
|
Loading…
Reference in New Issue
Block a user