mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
fix: deterministic proto loading
This commit is contained in:
1 parent
cbb5392525
commit
169f757fb2
11 files changed
+53
-34
No files matched your search
+10
-4
@@ -7,10 +7,16 @@ const withVanillaExtract = createVanillaExtractPlugin({ tests: /\.css$/ });
|
||||
const nextConfig = {
|
||||
...withVanillaExtract({
|
||||
webpack: (config, { isServer }) => {
|
||||
config.module.rules.push({
|
||||
test: /\.glsl$/,
|
||||
type: 'asset/source',
|
||||
});
|
||||
config.module.rules.push(
|
||||
{
|
||||
test: /\.glsl$/,
|
||||
type: 'asset/source',
|
||||
},
|
||||
{
|
||||
test: /\.proto$/,
|
||||
type: 'asset/source',
|
||||
},
|
||||
);
|
||||
|
||||
if (isServer) {
|
||||
writeFileSync(
|
||||
|
||||
Reference in new issue
Block a user