From ece7a324f1cdc6c973777606487747d98791d9de Mon Sep 17 00:00:00 2001 From: rlajous Date: Mon, 6 Nov 2023 16:21:16 +0100 Subject: [PATCH] rollup-polyfills --- rollup.base.config.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/rollup.base.config.js b/rollup.base.config.js index 11638ec2..a6cf3b09 100644 --- a/rollup.base.config.js +++ b/rollup.base.config.js @@ -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')); @@ -21,7 +22,6 @@ const configs = [ plugins: [ nodeResolve({ browser: true, - preferBuiltins: false, }), typescript({ tsconfig: `./tsconfig.json`, @@ -47,12 +47,13 @@ const configs = [ }, ], plugins: [ + nodeResolve({ + preferBuiltins: true, + }), typescript({ tsconfig: `./tsconfig.json`, }), - nodeResolve({ - preferBuiltins: false, - }), + nodePolyfills(), commonjs(), json(), ],