mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
* use export default instead of named exports I'm a little sad about this change, but it turns out that the order is not guaranteed for named exports in ESM. It was the correct order in our tests because of babel, but not in native ESM. * update imports
11 lines
315 B
JavaScript
11 lines
315 B
JavaScript
import corePlugins from '../src/corePlugins'
|
|
import fs from 'fs'
|
|
import path from 'path'
|
|
|
|
let corePluginList = Object.keys(corePlugins).filter((plugin) => !plugin.includes('Variants'))
|
|
|
|
fs.writeFileSync(
|
|
path.join(process.cwd(), 'src', 'corePluginList.js'),
|
|
`export default ${JSON.stringify(corePluginList)}`
|
|
)
|