Skip to content

Commit

Permalink
chore(pluginutils): Don't bundle micromatch (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
NotWoods committed Feb 28, 2020
1 parent b662126 commit 5ccd8af
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 75 deletions.
8 changes: 4 additions & 4 deletions packages/pluginutils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,17 @@
"rollup": "^1.20.0"
},
"dependencies": {
"estree-walker": "^1.0.1"
"estree-walker": "^1.0.1",
"micromatch": "^4.0.2"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^11.0.2",
"@rollup/plugin-node-resolve": "^7.1.1",
"@rollup/plugin-typescript": "^3.0.0",
"@types/estree": "0.0.39",
"@types/jest": "^24.9.0",
"@types/micromatch": "^3.1.1",
"@types/node": "^12.12.25",
"micromatch": "^4.0.2",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"typescript": "^3.7.5"
},
"ava": {
Expand Down
9 changes: 5 additions & 4 deletions packages/pluginutils/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import commonjs from '@rollup/plugin-commonjs';
import resolve from '@rollup/plugin-node-resolve';
import typescript from '@rollup/plugin-typescript';
import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';

import pkg from './package.json';

Expand All @@ -11,11 +11,12 @@ export default {
commonjs({ include: '../../node_modules/.pnpm/registry.npmjs.org/**' }),
typescript({ include: '**/*.{ts,js}' })
],
external: ['estree-walker', 'path', 'util'],
external: Object.keys(pkg.dependencies).concat('path', 'util'),
output: [
{
format: 'cjs',
file: pkg.main
file: pkg.main,
exports: 'named'
},
{
format: 'es',
Expand Down

0 comments on commit 5ccd8af

Please sign in to comment.