From bdc1de21ed3e04252a8c7de8f497ef9ec743879b Mon Sep 17 00:00:00 2001 From: Anton Malofeev Date: Wed, 3 Mar 2021 01:59:48 +0300 Subject: [PATCH] build v0.8.4 feat: # as root path alias --- example/src/main.ts | 4 ++-- package.json | 2 +- tsconfig.json | 2 +- vite.config.ts | 10 +++++----- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/example/src/main.ts b/example/src/main.ts index 2268676..c1d1884 100644 --- a/example/src/main.ts +++ b/example/src/main.ts @@ -1,9 +1,9 @@ +import { HeroesModel } from '#/models/HeroesModel' +import { ScaffoldApp } from '#/pages/ScaffoldApp' import { createApp } from 'vue' import vueGridLayout from 'vue-grid-layout' import { MultiProvider, Navigation, NavigationController } from '../../lib' import '../../lib/index.scss' -import { HeroesModel } from './models/HeroesModel' -import { ScaffoldApp } from './pages/ScaffoldApp' const app = MultiProvider.build({ models: [NavigationController, HeroesModel], diff --git a/package.json b/package.json index 38eeafe..2d3b53f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@xsoulspace/vuefer", "description": "vuefer just a way to write Vue3 styled like Flutter with Tailwind CSS", - "version": "0.8.3", + "version": "0.8.4", "private": false, "author": { "name": "Anton Malofeev", diff --git a/tsconfig.json b/tsconfig.json index 96db260..e43f04c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -20,7 +20,7 @@ "noUnusedParameters": true, "experimentalDecorators": true, "paths": { - "@/*": ["example/src/*"] + "#*": ["example/src/*"] }, "outDir": "dist", "typeRoots": ["./lib"], diff --git a/vite.config.ts b/vite.config.ts index 9009bce..f14bd70 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -24,7 +24,7 @@ import { defineConfig } from 'vite' export default defineConfig({ resolve: { alias: { - '@/': path.join(__dirname, 'example/'), + '#': path.resolve(__dirname, 'example/src'), }, }, root: './example', @@ -45,15 +45,15 @@ export default defineConfig({ rollupOptions: { // make sure to externalize deps that shouldn't be bundled // into your library - // external: ['vue'], + external: ['vue'], plugins: [], output: { dir: './dist', // // Provide global variables to use in the UMD build // // for externalized deps - // globals: { - // vue: 'Vue', - // }, + globals: { + vue: 'Vue', + }, }, }, },