Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Remove leftover code
  • Loading branch information
philipp-spiess committed Oct 14, 2024
commit d07eb800f074974ee69bf0cfac43dd2dad5c092b
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,6 @@ test('extracts different kind of imports from an ESM file', () => {
plugin6: { module: './plugin3', export: null },
plugin7: { module: './plugin7', export: '*' },
plugin8: { module: './plugin7', export: null },

// plugin6: { module: 'plugin6', export: null },
// plugin7: { module: 'plugin7', export: 'plugin7' },
// plugin8: { module: 'plugin8', export: 'foo' },
// plugin9: { module: 'plugin9', export: null },
// plugin10: { module: 'plugin10', export: 'plugin10' },
// plugin11: { module: 'plugin11', export: 'foo' },
// plugin12: { module: 'plugin12', export: null },
// plugin13: { module: 'plugin13', export: 'plugin13' },
// plugin14: { module: 'plugin14', export: 'foo' },
})
})

Expand Down
11 changes: 0 additions & 11 deletions packages/@tailwindcss-upgrade/src/utils/extract-static-imports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,17 +132,6 @@ export function findSimplePlugins(source: string): string[] | null {
}
}
}

// console.log({ imported, from })

// console.log(match.captures.map((c) => ({ name: c.name, text: c.node.text })))
// console.log('+++++++++++++++++++++++++==')
// let name = match.captures.find((c) => c.name === 'imported-name')
// let from = match.captures.find((c) => c.name === 'imported-from')

// if (!name || !from) continue

// imports[name.node.text] = { module: from.node.text, export: null }
}
return plugins
} catch (error) {
Expand Down