feat: setup raw-loader for shaders

This commit is contained in:
2025-12-28 18:38:49 -03:00
parent 4ea26cb60c
commit 4b8af0955a
5 changed files with 908 additions and 0 deletions
+8
View File
@@ -4,6 +4,14 @@ const nextConfig: NextConfig = {
output: 'export',
/* config options here */
reactCompiler: true,
turbopack: {
rules: {
'*.{vert,frag}': {
loaders: ['raw-loader'],
as: '*.js'
}
}
}
};
export default nextConfig;
+889
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -27,6 +27,7 @@
"babel-plugin-react-compiler": "1.0.0",
"eslint": "^9",
"eslint-config-next": "16.1.1",
"raw-loader": "^4.0.2",
"tailwindcss": "^4",
"typescript": "^5"
}
+9
View File
@@ -0,0 +1,9 @@
declare module '*.vert' {
const content: string;
export default content;
}
declare module '*.frag' {
const content: string;
export default content;
}
+1
View File
@@ -23,6 +23,7 @@
}
},
"include": [
"shaders.d.ts",
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",