feat: setup raw-loader for shaders
This commit is contained in:
@@ -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;
|
||||
|
||||
Generated
+889
File diff suppressed because it is too large
Load Diff
@@ -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"
|
||||
}
|
||||
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
declare module '*.vert' {
|
||||
const content: string;
|
||||
export default content;
|
||||
}
|
||||
|
||||
declare module '*.frag' {
|
||||
const content: string;
|
||||
export default content;
|
||||
}
|
||||
@@ -23,6 +23,7 @@
|
||||
}
|
||||
},
|
||||
"include": [
|
||||
"shaders.d.ts",
|
||||
"next-env.d.ts",
|
||||
"**/*.ts",
|
||||
"**/*.tsx",
|
||||
|
||||
Reference in New Issue
Block a user