mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
Fixed #5898 - Themes are installed by the wrong package
This commit is contained in:
parent
03c536bd6c
commit
2fdfe2f13e
47 changed files with 57 additions and 993 deletions
|
@ -51,6 +51,7 @@
|
|||
"dev": "nuxi dev playground",
|
||||
"dev:build": "nuxi build playground",
|
||||
"dev:prepare": "nuxt-module-build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
||||
"dev:link": "pnpm link --global && npm link",
|
||||
"test": "vitest run",
|
||||
"test:watch": "vitest watch"
|
||||
},
|
||||
|
@ -75,4 +76,4 @@
|
|||
"engines": {
|
||||
"node": ">=12.11.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -53,15 +53,12 @@ export default defineNuxtModule<ModuleOptions>({
|
|||
|
||||
//nuxt.options.build.transpile.push('nuxt');
|
||||
nuxt.options.build.transpile.push('primevue');
|
||||
/*nuxt.options.build.transpile.push('@primevue/core');
|
||||
nuxt.options.build.transpile.push('@primevue/icons');
|
||||
nuxt.options.build.transpile.push('@primevue/themes');*/
|
||||
|
||||
const styleContent = () => `
|
||||
${registered.styles.map((style: any) => `import ${style.as} from '${style.from}';`).join('\n')}
|
||||
${
|
||||
hasTheme
|
||||
? `import { Theme } from '@primevue/themes';
|
||||
? `import { Theme } from '@primeuix/styled';
|
||||
import ${importTheme.as} from '${normalize(importTheme.from)}';\n`
|
||||
: ''
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue