vite-plugin-ng-comp-fn
v0.0.1-alpha.1
Published
Vite Plugin for Angular Function components
Downloads
5
Maintainers
Readme
vite-plugin-ng-comp-fn
A Vite plugin for building Angular components as functions.
Install
yarn add vite-plugin-ng-comp-fn
Setup
Add the plugin to the plugins
array in your Vite config
import { defineConfig } from 'vite';
import angularFn from 'vite-plugin-ng-comp-fn';
// https://vitejs.dev/config/
export default defineConfig({
resolve: {
mainFields: ['module'],
},
plugins: [
angularFn({
experimental: {
supportFunctionComponents: true,
},
}),
],
});