File tree Expand file tree Collapse file tree 2 files changed +44
-49
lines changed Expand file tree Collapse file tree 2 files changed +44
-49
lines changed Original file line number Diff line number Diff line change 1+ import { defineConfig } from '@hypernym/bundler'
2+ import { name , version } from './package.json'
3+ import { nuxtMetaTemplate , nuxtTypesTemplate } from './src/utils/templates.js'
4+
5+ export default defineConfig ( {
6+ entries : [
7+ {
8+ input : './src/module.ts' ,
9+ externals : [ / ^ @ n u x t / ] ,
10+ plugins : {
11+ replace : {
12+ preventAssignment : true ,
13+ __name__ : name ,
14+ __version__ : version ,
15+ } ,
16+ } ,
17+ } ,
18+ {
19+ types : './src/types/module.ts' ,
20+ output : './dist/module.d.ts' ,
21+ } ,
22+ {
23+ input : './src/runtime/composables/index.ts' ,
24+ output : './dist/runtime/composables/index.mjs' ,
25+ externals : [ '#imports' ] ,
26+ } ,
27+ {
28+ types : './src/types/runtime/composables/index.ts' ,
29+ output : './dist/runtime/composables/index.d.ts' ,
30+ } ,
31+ {
32+ template : true ,
33+ output : './dist/module.json' ,
34+ content : nuxtMetaTemplate ( ) ,
35+ format : 'json' ,
36+ } ,
37+ {
38+ template : true ,
39+ output : './dist/types.d.ts' ,
40+ content : nuxtTypesTemplate ( ) ,
41+ format : 'dts' ,
42+ } ,
43+ ] ,
44+ } )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments