* 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
10 lines
315 B
JavaScript
10 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)}`
|
|
)
|