Skip to content

Commit

Permalink
Remove optional glob dependency
Browse files Browse the repository at this point in the history
Alias depd to latest version (no eval use)
  • Loading branch information
inukshuk committed Sep 9, 2020
1 parent 6f8d136 commit ec8e89f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -54,6 +54,7 @@
"@babel/plugin-transform-modules-commonjs": "^7.10.4",
"@babel/preset-react": "^7.10.4",
"@babel/register": "^7.10.5",
"@rollup/plugin-alias": "^3.1.1",
"@rollup/plugin-babel": "^5.1.0",
"@rollup/plugin-commonjs": "^14.0.0",
"@rollup/plugin-json": "^4.1.0",
Expand Down
18 changes: 18 additions & 0 deletions rollup.config.js
@@ -1,3 +1,5 @@
import { join } from 'path'
import alias from '@rollup/plugin-alias'
import babel from '@rollup/plugin-babel'
import builtins from 'builtin-modules'
import commonjs from '@rollup/plugin-commonjs'
Expand All @@ -21,11 +23,19 @@ export default [
},
preserveEntrySignatures: 'strict',
plugins: [
alias({
entries: {
depd: join(
__dirname, 'node_modules/cookies/node_modules/depd/index.js'
)
}
}),
resolve(),
babel({ babelHelpers: 'bundled' }),
json(),
commonjs({
ignore: [
'glob',
'pino-pretty'
]
})
Expand Down Expand Up @@ -58,6 +68,13 @@ export default [
copyTo: 'lib/node/lib',
destDir: './node/lib'
}),
alias({
entries: {
'node-pre-gyp': join(
__dirname, 'node_modules/node-pre-gyp/lib/pre-binding'
)
}
}),
resolve(),
replace({
'process.env.NODE_ENV': JSON.stringify(NODE_ENV),
Expand All @@ -67,6 +84,7 @@ export default [
babel({ babelHelpers: 'bundled' }),
commonjs({
ignore: [
'glob',
'pino-pretty',
'request',
'rdf-canonize-native'
Expand Down

0 comments on commit ec8e89f

Please sign in to comment.