✨(react) add tokens.ts files handling
These files will be used to define the custom design tokens per components. They are automatically aggregated by the packages/react/cunningham.ts file, this is why handling typescript config file was important.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
const viteTsconfig = require('vite-tsconfig-paths');
|
||||
const tsconfigPaths = viteTsconfig.default;
|
||||
|
||||
const { mergeConfig } = require('vite');
|
||||
|
||||
module.exports = {
|
||||
"stories": [
|
||||
"../src/**/*.stories.mdx",
|
||||
@@ -18,5 +23,10 @@ module.exports = {
|
||||
],
|
||||
"features": {
|
||||
"storyStoreV7": true
|
||||
}
|
||||
},
|
||||
async viteFinal(config) {
|
||||
return mergeConfig(config, {
|
||||
plugins: [tsconfigPaths()],
|
||||
});
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user