Skip to content

Commit 3a5fac3

Browse files
committed
build(query-parser): add external dependencies COMPASS-10271
1 parent c36847a commit 3a5fac3

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

packages/query-parser/rollup.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
const typescript = require('@rollup/plugin-typescript');
2+
const pkg = require('./package.json');
3+
4+
const external = [
5+
...Object.keys(pkg.dependencies),
6+
...Object.keys(pkg.peerDependencies),
7+
];
28

39
module.exports = [
410
{
511
input: 'src/index.ts',
12+
external,
613
output: [
714
{
815
dir: 'dist',
@@ -16,6 +23,7 @@ module.exports = [
1623
},
1724
{
1825
input: 'src/index.ts',
26+
external,
1927
output: [
2028
{
2129
dir: 'dist',

0 commit comments

Comments
 (0)