perf(ui-loading-screens): buildless (#216)
This commit is contained in:
@@ -19,12 +19,7 @@
|
||||
"./components": "./src/components/index.ts",
|
||||
"./*": "./*"
|
||||
},
|
||||
"main": "./dist/index.mjs",
|
||||
"module": "./dist/index.mjs",
|
||||
"scripts": {
|
||||
"dev": "pnpm run build",
|
||||
"stub": "pnpm run build",
|
||||
"build": "tsdown",
|
||||
"play:dev": "vite",
|
||||
"play:build": "vite build",
|
||||
"play:preview": "vite preview",
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
import { env } from 'node:process'
|
||||
|
||||
import { defineConfig } from 'tsdown'
|
||||
import Raw from 'unplugin-raw/rolldown'
|
||||
import Vue from 'unplugin-vue/rolldown'
|
||||
|
||||
export default defineConfig({
|
||||
entry: {
|
||||
index: './src/index.ts',
|
||||
components: './src/components/index.ts',
|
||||
},
|
||||
loader: {
|
||||
'.png': 'asset',
|
||||
'.rev': 'dataurl',
|
||||
'.riv': 'dataurl',
|
||||
},
|
||||
define: {
|
||||
'import.meta.DEV': JSON.stringify(!!env.DEV),
|
||||
},
|
||||
exports: {
|
||||
devExports: true,
|
||||
all: true,
|
||||
},
|
||||
fixedExtension: true,
|
||||
plugins: [
|
||||
Vue(),
|
||||
Raw({
|
||||
transform: {
|
||||
options: { minifyWhitespace: true },
|
||||
},
|
||||
}),
|
||||
],
|
||||
})
|
||||
Reference in New Issue
Block a user