Skip to content

Commit

Permalink
config(vite): add friendlyTypeImports plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
AlenVelocity committed Nov 14, 2021
1 parent 09ae987 commit 29910fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const path = require("path");
const { defineConfig } = require("vite");
import Banner from "vite-plugin-banner";
import pkg from "./package.json";

import friendlyTypeImports from 'rollup-plugin-friendly-type-imports';
module.exports = defineConfig({
build: {
lib: {
Expand All @@ -26,6 +26,6 @@ module.exports = defineConfig({
Banner(
`/**\n * @${pkg.name} v${pkg.version}\n * ${pkg.description}\n * \n * @license\n * Copyright (c) ${pkg.year} ${pkg.author}\n * SPDX-License-Idntifier: ${pkg.license} \n * ${pkg.homepage}\n */`
),
require('vite-plugin-ts').default(),
friendlyTypeImports()
],
});

0 comments on commit 29910fd

Please sign in to comment.