Skip to content

Commit

Permalink
update config
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Dec 28, 2023
1 parent 6d7b49c commit b14ff69
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions rollup.config.js → rollup.config.mjs
@@ -1,8 +1,7 @@
import * as fs from 'node:fs';
import babel from '@rollup/plugin-babel';

const meta = require('./package.json');

process.env.BABEL_ENV = 'rollup';
const meta = JSON.parse(fs.readFileSync(new URL('./package.json', import.meta.url), 'utf8'));

export default {
input: './src/index.jsx',
Expand All @@ -11,7 +10,7 @@ export default {
format: 'cjs',
file: meta.main,
exports: 'named',
interop: false,
interop: 'esModule',
},
{ format: 'es', file: meta.module },
],
Expand Down

0 comments on commit b14ff69

Please sign in to comment.