Skip to content

Commit

Permalink
rollup-polyfills
Browse files Browse the repository at this point in the history
  • Loading branch information
rlajous committed Nov 6, 2023
1 parent 557080e commit ece7a32
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions rollup.base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { nodeResolve } from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import json from '@rollup/plugin-json';
import path from 'path';
import nodePolyfills from 'rollup-plugin-node-polyfills';

const pkg = require(path.resolve(process.cwd(), 'package.json'));

Expand All @@ -21,7 +22,6 @@ const configs = [
plugins: [
nodeResolve({
browser: true,
preferBuiltins: false,
}),
typescript({
tsconfig: `./tsconfig.json`,
Expand All @@ -47,12 +47,13 @@ const configs = [
},
],
plugins: [
nodeResolve({
preferBuiltins: true,
}),
typescript({
tsconfig: `./tsconfig.json`,
}),
nodeResolve({
preferBuiltins: false,
}),
nodePolyfills(),
commonjs(),
json(),
],
Expand Down

0 comments on commit ece7a32

Please sign in to comment.