Skip to content

Commit

Permalink
restored cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
LiveDuo committed Dec 16, 2023
1 parent ecebe41 commit f00f3b3
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions lib/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,16 @@ const nodeConfig = {
const vanillaConfig = {
...browserConfig,
input: 'client/vanilla/index.tsx',
output: [{ file: 'build/browser/index.js' }],
output: [{ file: 'build/browser/index.js', format: 'cjs' }],
}
const craftConfig = {
...browserConfig,
input: 'client/craft/index.tsx',
output: [{ dir: 'build/browser/craft', format: 'cjs' }],
}
const grapesConfig = {
...browserConfig,
input: 'client/grapes/index.ts',
output: [{ dir: 'build/browser/grapes', format: 'cjs' }],
}
const craftConfig = { ...browserConfig, input: 'client/craft/index.tsx', output: [{ dir: 'build/browser/craft' }] }
const grapesConfig = { ...browserConfig, input: 'client/grapes/index.ts', output: [{ dir: 'build/browser/grapes' }] }
export default [vanillaConfig, craftConfig, grapesConfig, nodeConfig]

0 comments on commit f00f3b3

Please sign in to comment.