Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/spotty-pets-sell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@devup-ui/next-plugin": patch
---

Add gitIgnore in turbopack
1 change: 1 addition & 0 deletions packages/next-plugin/src/__tests__/plugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ describe('plugin', () => {
resolve('df', 'devup-ui.css'),
'/* devup-ui */',
)
expect(writeFileSync).toHaveBeenCalledWith(join('df', '.gitignore'), '*')
})
})
})
2 changes: 2 additions & 0 deletions packages/next-plugin/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ export function DevupUI(

const sheetFile = join(interfacePath, 'sheet.json')
const classMapFile = join(interfacePath, 'classMap.json')
const gitignoreFile = join(interfacePath, '.gitignore')
if (!existsSync(interfacePath)) mkdirSync(interfacePath)
if (!existsSync(cssFile)) writeFileSync(cssFile, '/* devup-ui */')
if (!existsSync(gitignoreFile)) writeFileSync(gitignoreFile, '*')
const rules: NonNullable<typeof config.turbopack.rules> = {
[basename(cssFile)]: [
{
Expand Down