Skip to content

Commit

Permalink
Bump rollup from 2.79.1 to 3.1.0 (u-wave#226)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Renée Kooi <[email protected]>
  • Loading branch information
dependabot[bot] and goto-bus-stop authored Oct 17, 2022
1 parent 2b643b2 commit e5d3e37
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
node-version: [14.x, 16.x, 17.x]
react-version: [17.x, 18.x]
include:
- node-version: 12.x
- node-version: 14.x
react-version: 16.0.0
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"proxyquire": "^2.1.3",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"rollup": "^2.35.0",
"rollup": "^3.1.0",
"tsd": "^0.24.1"
},
"sideEffects": false
Expand Down
21 changes: 0 additions & 21 deletions rollup.config.js

This file was deleted.

22 changes: 22 additions & 0 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import fs from 'fs';
import babel from '@rollup/plugin-babel';

const pkg = JSON.parse(fs.readFileSync('./package.json', 'utf8'));

process.env.BABEL_ENV = 'rollup';

export default {
input: './src/index.js',
output: [
{ format: 'cjs', file: pkg.main, exports: 'named' },
{ format: 'es', file: pkg.module },
],

external: Object.keys(pkg.dependencies)
.concat(Object.keys(pkg.peerDependencies)),
plugins: [
babel({
babelHelpers: 'bundled',
}),
],
};

0 comments on commit e5d3e37

Please sign in to comment.