Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
42afdf7
refactor(core): use tsdown instead of vite lib mode
alvarosabu Oct 10, 2025
b80130b
chore(deps): add tsdown dependency and update package configurations
alvarosabu Oct 10, 2025
c61219f
chore(tsdown): update tsdown configuration and package.json references
alvarosabu Oct 10, 2025
b951925
chore(tsdown): add tsdown configuration file and update build scripts…
alvarosabu Oct 10, 2025
1fe5196
chore(package): remove unused core entry and update main field in pac…
alvarosabu Oct 10, 2025
f7ed059
chore(deps): update @vitejs/plugin-vue version and add new dependenci…
alvarosabu Oct 10, 2025
f4524a8
chore(pnpm): remove tsdown dependency from pnpm-lock.yaml
alvarosabu Oct 10, 2025
1b138e1
Merge branch 'main' into chore/tsdown-build
alvarosabu Oct 30, 2025
4218b7b
chore: add missing newlines at the end of several configuration files…
alvarosabu Oct 30, 2025
a6ef595
chore: simplify package exports in package.json files and enable auto…
alvarosabu Oct 31, 2025
e265af0
chore: update package.json files to include main entry points and pac…
alvarosabu Oct 31, 2025
2f9c55c
fix(core): enhance runtime mode resolution for both browser and Node …
alvarosabu Oct 31, 2025
2c531f0
chore: update package.json files to define main entry points for vari…
alvarosabu Oct 31, 2025
5b06cc1
fix(logger): remove unnecessary eslint directive for explicit any in …
alvarosabu Oct 31, 2025
3185a25
Merge branch 'main' into chore/tsdown-build
alvarosabu Nov 8, 2025
c1c37fe
Merge branch 'main' into chore/tsdown-build
alvarosabu Nov 8, 2025
9dd59fc
chore(postprocessing): remove unused build configuration and rollup o…
alvarosabu Nov 9, 2025
e275dca
chore: reorganize package dependencies into categorized catalogs in p…
alvarosabu Nov 9, 2025
74a91e9
chore: update tsdown version to 0.16.1 across configurations and pnpm…
alvarosabu Nov 10, 2025
f047df8
chore: fix apps/lab running dev and build commands
userquin Nov 12, 2025
bfbf5b4
chore: update tsconfig.json for nuxt apps
userquin Nov 12, 2025
5c77640
chore(core): remove exports from tsdown and include node subpackage e…
userquin Nov 12, 2025
e2a3675
chore(core): remove exports from tsdown
userquin Nov 12, 2025
eb264c8
chore(core): cleanup wrong imports
userquin Nov 12, 2025
0947816
chore: update @tresjs/core peer dependency to allow versions >=5.0.0 …
alvarosabu Nov 16, 2025
c6365b6
chore: add missing newline at end of package.json files in cientos an…
alvarosabu Nov 16, 2025
1b08da8
chore: remove exports configuration from tsdown in cientos and postpr…
alvarosabu Nov 16, 2025
7b06293
chore(nuxt): add imports configuration to exclude specific package fi…
alvarosabu Nov 16, 2025
dffb107
chore: add shell-emulator configuration to .npmrc for windows
alvarosabu Nov 18, 2025
775df27
chore: update three-custom-shader-material version and configuration …
alvarosabu Nov 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
shamefully-hoist=true
shamefully-hoist=true
shell-emulator=true
18 changes: 9 additions & 9 deletions apps/docs-boilerplate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,26 @@
"@iconify-json/lucide": "^1.2.68",
"@iconify-json/simple-icons": "^1.2.53",
"@iconify-json/vscode-icons": "^1.2.30",
"@nuxt/content": "catalog:",
"@nuxt/image": "catalog:",
"@nuxt/content": "catalog:nuxt",
"@nuxt/image": "catalog:nuxt",
"@nuxt/scripts": "0.12.1",
"@nuxt/ui": "catalog:",
"@nuxt/ui": "catalog:nuxt",
"@tresjs/cientos": "workspace:^",
"@tresjs/core": "workspace:^",
"@tresjs/leches": "workspace:^",
"@unhead/vue": "^2.0.17",
"better-sqlite3": "^12.4.1",
"nuxt": "catalog:",
"nuxt": "catalog:nuxt",
"nuxt-llms": "0.1.3",
"tweakpane": "^4.0.5",
"vue": "catalog:",
"vue-router": "catalog:"
"vue": "catalog:vue",
"vue-router": "catalog:vue"
},
"devDependencies": {
"@tresjs/eslint-config": "workspace:*",
"@tweakpane/core": "^2.0.5",
"eslint": "catalog:",
"typescript": "catalog:",
"vue-tsc": "catalog:"
"eslint": "catalog:eslint",
"typescript": "catalog:typescript",
"vue-tsc": "catalog:typescript"
}
}
20 changes: 10 additions & 10 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,28 @@
"@iconify-json/lucide": "^1.2.68",
"@iconify-json/simple-icons": "^1.2.53",
"@iconify-json/vscode-icons": "^1.2.30",
"@nuxt/content": "catalog:",
"@nuxt/content": "catalog:nuxt",
"@nuxt/icon": "^2.0.0",
"@nuxt/image": "catalog:",
"@nuxt/image": "catalog:nuxt",
"@nuxt/scripts": "0.12.1",
"@nuxt/ui": "catalog:",
"@nuxt/ui": "catalog:nuxt",
"@tresjs/cientos": "workspace:^",
"@tresjs/core": "workspace:^",
"@tresjs/leches": "workspace:^",
"@unhead/vue": "^2.0.17",
"better-sqlite3": "^12.4.1",
"nuxt": "catalog:",
"nuxt": "catalog:nuxt",
"nuxt-llms": "0.1.3",
"tailwindcss": "^4.1.14",
"tweakpane": "^4.0.5",
"vue": "catalog:",
"vue-router": "catalog:"
"vue": "catalog:vue",
"vue-router": "catalog:vue"
},
"devDependencies": {
"@tresjs/eslint-config": "workspace:*",
"@tweakpane/core": "^2.0.5",
"eslint": "catalog:",
"typescript": "catalog:",
"vue-tsc": "catalog:"
"eslint": "catalog:eslint",
"typescript": "catalog:typescript",
"vue-tsc": "catalog:typescript"
}
}
}
17 changes: 15 additions & 2 deletions apps/docs/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
{
// https://nuxt.com/docs/guide/concepts/typescript
"extends": "./.nuxt/tsconfig.json"
"references": [
{
"path": "./.nuxt/tsconfig.app.json"
},
{
"path": "./.nuxt/tsconfig.server.json"
},
{
"path": "./.nuxt/tsconfig.shared.json"
},
{
"path": "./.nuxt/tsconfig.node.json"
}
],
"files": []
}
36 changes: 33 additions & 3 deletions apps/lab/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,22 @@ export default defineNuxtConfig({

css: ['~/assets/styles/main.css'],
declare: ['*.glsl'],
uiPro: {
license: process.env.NUXT_UI_PRO_LICENSE
},
tres: {
devtools: true,
glsl: true,
},

imports: {
transform: {
exclude: [
/[\/]packages[\\/]cientos[\\/]dist[\\/]trescientos\.js$/,
/[\/]packages[\\/]core[\\/]dist[\\/]tres\.js$/,
/[\/]packages[\\/]leches[\\/]dist[\\/]tresleches\.js$/,
/[\/]packages[\\/]postprocessing[\\/]dist[\\/]tres-post-processing\.js$/,
],
}
},

Comment on lines +25 to +35
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this be necessary for anyone using the Nuxt module or just in the monorepo?
@userquin

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just here, nuxt auto import plugin transforming these modules, resolving those files from the dist folder => on a real app those modules from nodes_modules and wont be transformed by nuxt.

Working at main branch since vite using aliases but auto import also transforming them.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can inspect tresleches.js at main using devtools or tres.js in this pr (just compare vite build and tsdown/rolldown build respectively).

This is the nuxt vite plugin causing the build error at apps/lab (I just exclude our dist folders to be transformed):
https://github.com/nuxt/nuxt/blob/07eccf3cb8ab7885a03e2197fd449acff4910bf0/packages/nuxt/src/imports/transform.ts#L23

fonts: {
families: [
{ name: 'Manrope', provider: 'google' },
Expand Down Expand Up @@ -52,8 +60,30 @@ export default defineNuxtConfig({
},
},

icon: {
serverBundle: {
collections: ['lucide', 'carbon', 'game-icons', 'ic', 'logos', 'ph'],
externalizeIconsJson: true,
}
},

vite: {
plugins: [svgLoader()],
optimizeDeps: {
include: [
'@vue/devtools-core',
'@vue/devtools-kit',
'@vueuse/core',
'three-stdlib',
'camera-controls',
'three-custom-shader-material/vanilla',
'three/webgpu',
'stats.js',
'stats-gl',
'radashi',
'@pmndrs/pointer-events',
],
}
},

compatibilityDate: '2024-08-29',
Expand Down
18 changes: 9 additions & 9 deletions apps/lab/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,36 +11,36 @@
},
"dependencies": {
"@nuxt/eslint": "^1.9.0",
"@nuxt/ui": "catalog:",
"@nuxt/ui": "catalog:nuxt",
"@tresjs/post-processing": "workspace:*",
"@tresjs/nuxt": "workspace:*",
"@vueuse/nuxt": "^13.9.0",
"better-sqlite3": "^12.2.0",
"mdast-util-to-string": "^4.0.0",
"three": "catalog:",
"three-custom-shader-material": "^6.3.7",
"vue": "catalog:"
"three": "catalog:three",
"three-custom-shader-material": "catalog:three",
"vue": "catalog:vue"
},
"devDependencies": {
"@iconify-json/carbon": "^1.2.13",
"@iconify-json/game-icons": "^1.2.3",
"@iconify-json/ic": "^1.2.4",
"@iconify-json/logos": "^1.2.9",
"@iconify-json/lucide": "^1.2.68",
"@nuxt/content": "catalog:",
"@nuxt/content": "catalog:nuxt",
"@nuxt/fonts": "0.11.4",
"@nuxt/icon": "2.0.0",
"@nuxt/image": "catalog:",
"@nuxt/image": "catalog:nuxt",
"@nuxt/scripts": "0.11.13",
"@nuxtjs/color-mode": "^3.5.2",
"@tresjs/cientos": "workspace:*",
"@tresjs/eslint-config": "workspace:*",
"@tresjs/leches": "workspace:*",
"@tweakpane/plugin-essentials": "^0.2.1",
"@types/three": "catalog:",
"@types/three": "catalog:three",
"@unhead/vue": "^2.0.3",
"gsap": "catalog:",
"nuxt": "catalog:",
"gsap": "catalog:utils",
"nuxt": "catalog:nuxt",
"nuxt-svgo": "^4.2.6",
"postprocessing": "6.37.8",
"vite-svg-loader": "^5.1.0"
Expand Down
19 changes: 16 additions & 3 deletions apps/lab/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
{
// https://nuxt.com/docs/guide/concepts/typescript
"extends": "./.nuxt/tsconfig.json"
}
"references": [
{
"path": "./.nuxt/tsconfig.app.json"
},
{
"path": "./.nuxt/tsconfig.server.json"
},
{
"path": "./.nuxt/tsconfig.shared.json"
},
{
"path": "./.nuxt/tsconfig.node.json"
}
],
"files": []
}
12 changes: 12 additions & 0 deletions apps/playground-nuxt/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ export default defineNuxtConfig({
},
},

imports: {
transform: {
exclude: [
/[\/]packages[\\/]cientos[\\/]dist[\\/]trescientos\.js$/,
/[\/]packages[\\/]core[\\/]dist[\\/]tres\.js$/,
/[\/]packages[\\/]leches[\\/]dist[\\/]tresleches\.js$/,
/[\/]packages[\\/]postprocessing[\\/]dist[\\/]tres-post-processing\.js$/,
],
}
},


// for testing purposes
// imports: {
// autoImport: false,
Expand Down
4 changes: 2 additions & 2 deletions apps/playground-nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
},
"dependencies": {
"@tresjs/nuxt": "workspace:*",
"@nuxt/ui": "catalog:",
"@nuxt/ui": "catalog:nuxt",
"@tresjs/cientos": "workspace:^",
"@tresjs/leches": "workspace:^"
},
"devDependencies": {
"@tresjs/eslint-config": "workspace:*",
"nuxt": "catalog:"
"nuxt": "catalog:nuxt"
}
}
1 change: 1 addition & 0 deletions apps/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"devDependencies": {
"@tresjs/eslint-config": "workspace:^",
"@tweakpane/plugin-essentials": "^0.2.1",
"@vitejs/plugin-vue": "catalog:vite",
"unplugin-auto-import": "^20.2.0",
"vite-plugin-glsl": "^1.5.1",
"vite-plugin-qrcode": "^0.3.0",
Expand Down
6 changes: 3 additions & 3 deletions apps/postprocessing-docs-vitepress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"@tresjs/core": "workspace:*",
"@tresjs/post-processing": "workspace:*",
"@tresjs/leches": "1.0.0-next.0",
"gsap": "catalog:"
"gsap": "catalog:utils"
},
"devDependencies": {
"unocss": "catalog:",
"unocss": "catalog:utils",
"unplugin-vue-components": "^28.0.0",
"vite-svg-loader": "^5.1.0",
"vitepress": "catalog:"
"vitepress": "catalog:docs"
}
}
56 changes: 25 additions & 31 deletions packages/cientos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,12 @@
],
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/trescientos.js"
},
"./core": {
"types": "./dist/core/index.d.ts"
},
"./*": "./*"
".": "./dist/trescientos.js",
"./package.json": "./package.json"
},
"main": "./dist/trescientos.js",
"module": "./dist/trescientos.js",
"types": "./dist/index.d.ts",
"types": "./dist/trescientos.d.ts",
"files": [
"*.d.ts",
"dist"
Expand All @@ -46,48 +40,48 @@
},
"scripts": {
"dev": "cd playground/vue && pnpm dev",
"dev:nuxt": "cd playground/nuxt && pnpm dev",
"build": "vite build",
"build": "tsdown",
"lint": "eslint .",
"typecheck": "vue-tsc --noEmit",
"lint:fix": "eslint . --fix"
},
"peerDependencies": {
"@tresjs/core": "5.1.0",
"@tresjs/core": ">=5.0.0",
"three": ">=0.133",
"vue": ">=3.5.17"
},
"dependencies": {
"@vueuse/core": "catalog:",
"@vueuse/core": "catalog:utils",
"camera-controls": "^2.9.0",
"stats-gl": "^2.0.1",
"stats.js": "^0.17.0",
"three-custom-shader-material": "catalog:",
"three-stdlib": "catalog:"
"three-custom-shader-material": "catalog:three",
"three-stdlib": "catalog:three"
},
"devDependencies": {
"@tresjs/core": "workspace:*",
"@tresjs/eslint-config": "workspace:*",
"@types/node": "^24.3.0",
"@types/three": "catalog:",
"@typescript-eslint/eslint-plugin": "catalog:",
"@typescript-eslint/parser": "catalog:",
"@vitejs/plugin-vue": "catalog:",
"eslint": "catalog:",
"eslint-plugin-vue": "catalog:",
"kolorist": "catalog:",
"pathe": "catalog:",
"rollup-plugin-analyzer": "catalog:",
"rollup-plugin-visualizer": "catalog:",
"three": "catalog:",
"typescript": "catalog:",
"@types/three": "catalog:three",
"@typescript-eslint/eslint-plugin": "catalog:eslint",
"@typescript-eslint/parser": "catalog:eslint",
"@vitejs/plugin-vue": "catalog:vite",
"eslint": "catalog:eslint",
"eslint-plugin-vue": "catalog:eslint",
"kolorist": "catalog:utils",
"pathe": "catalog:utils",
"rollup-plugin-analyzer": "catalog:build",
"rollup-plugin-visualizer": "catalog:build",
"three": "catalog:three",
"tsdown": "catalog:build",
"typescript": "catalog:typescript",
"unocss": "^66.1.2",
"vite": "catalog:",
"vite-plugin-banner": "catalog:",
"vite-plugin-dts": "catalog:",
"vite": "catalog:vite",
"vite-plugin-banner": "catalog:vite",
"vite-plugin-dts": "catalog:vite",
"vite-plugin-glsl": "^1.5.1",
"vite-svg-loader": "^5.1.0",
"vue-tsc": "catalog:"
"vue-tsc": "catalog:typescript"
},
"nx": {
"implicitDependencies": [
Expand Down
2 changes: 1 addition & 1 deletion packages/cientos/playground/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"preview": "vite preview"
},
"dependencies": {
"@tresjs/core": "5.0.0",
"@tresjs/core": "workspace:*",
"vue-router": "^4.5.1"
},
"devDependencies": {
Expand Down
Loading
Loading