Skip to content

Commit

Permalink
fix(rollup): set correct output options
Browse files Browse the repository at this point in the history
  • Loading branch information
Pooya Parsa committed Dec 29, 2018
1 parent de28c26 commit fc1ab1e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,14 @@ export default function rollupConfig({
pkg = readJSONSync(path.resolve(rootDir, 'package.json'))
}

const name = path.basename(pkg.name.replace('-edge', ''))

return defaultsDeep({}, options, {
input: path.resolve(rootDir, input),
output: {
file: `${pkg.name.replace('-edge', '')}.js`,
dir: path.resolve(rootDir, 'dist'),
entryFileNames: `${name}.js`,
chunkFileNames: `${name}-[name].js`,
format: 'cjs',
preferConst: true
},
Expand Down

0 comments on commit fc1ab1e

Please sign in to comment.