Skip to content
This repository has been archived by the owner on Dec 6, 2021. It is now read-only.

Commit

Permalink
use poi-webpack-node-externals to replace webpack-node-externals
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Nov 15, 2017
1 parent 73628b8 commit 7c8cab2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/poi/lib/webpack-utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const nodeExternals = require('webpack-node-externals')
const nodeExternals = require('poi-webpack-node-externals')
const { createSet } = require('./utils')

const _ = module.exports = {}
Expand Down
2 changes: 1 addition & 1 deletion packages/poi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"parse-json-config": "^0.2.0",
"poi-dev-utils": "^1.0.1",
"poi-load-config": "^1.1.2",
"poi-webpack-node-externals": "^2.0.0",
"post-compile-webpack-plugin": "^0.1.1",
"postcss-loader": "^2.0.6",
"rimraf": "^2.6.1",
Expand All @@ -82,7 +83,6 @@
"webpack-dev-server": "^2.9.2",
"webpack-handle-css-loader": "^2.0.1",
"webpack-merge": "^4.1.0",
"webpack-node-externals": "^1.6.0",
"yargs": "^9.0.1",
"yarn-global": "^1.1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/poi/test/config.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import path from 'path'
import poi from '../lib'

jest.mock('webpack-node-externals', () => jest.fn().mockReturnValue(['externals']))
jest.mock('poi-webpack-node-externals', () => jest.fn().mockReturnValue(['externals']))

const oldCwd = process.cwd()

Expand Down

0 comments on commit 7c8cab2

Please sign in to comment.