We cannot test if unplugin-typegpu works correctly when used in babel.config.js.
The reason is that we locally export only .ts file.
Expected:
module.exports = (api) => {
api.cache(true);
return {
presets: ['next/babel'],
plugins: ['unplugin-typegpu/babel'], // cannot parse .ts file
};
};
Current:
module.exports = (api) => {
api.cache(true);
return {
presets: ['next/babel'],
plugins: ['./node_modules/unplugin-typegpu/dist/babel.js'],
};
};
We cannot test if
unplugin-typegpuworks correctly when used inbabel.config.js.The reason is that we locally export only .ts file.
Expected:
Current: