Skip to content

Commit 35f1584

Browse files
fix unified bundle
1 parent a17dd98 commit 35f1584

3 files changed

Lines changed: 93 additions & 59 deletions

File tree

apps/demos/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
"@rollup/plugin-babel": "6.0.4",
9898
"@rollup/plugin-node-resolve": "15.2.3",
9999
"@rollup/plugin-replace": "5.0.5",
100+
"rollup-plugin-node-polyfills": "0.2.1",
100101
"@testcafe-community/axe": "3.5.0",
101102
"@types/eslint": "8.56.2",
102103
"@types/fs-extra": "11.0.2",

apps/demos/rollup.external.bundles.config.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import resolve from '@rollup/plugin-node-resolve';
22
import commonjs from '@rollup/plugin-commonjs';
33
import babel from '@rollup/plugin-babel';
4+
import { nodeResolve } from '@rollup/plugin-node-resolve';
45

56
const NG_BASE_DIR = './node_modules/';
67
const OUTPUT_DIR = './bundles/externals/';
@@ -40,7 +41,10 @@ export default [
4041
globals: { },
4142
},
4243
external: [],
43-
plugins,
44+
plugins : [nodeResolve({
45+
preferBuiltins: false,
46+
browser: true,
47+
})].concat(plugins),
4448
},
4549
{
4650
input: NG_BASE_DIR + `remark-parse/index.js`,

0 commit comments

Comments
 (0)