Skip to content

Commit

Permalink
feat: expose config resolving as CLI instance (#2066)
Browse files Browse the repository at this point in the history
* feat: expose config resolving as CLI instance

* fix: tests

* fix: tests
  • Loading branch information
anshumanv authored Nov 10, 2020
1 parent c3271e2 commit 363f120
Show file tree
Hide file tree
Showing 3 changed files with 241 additions and 256 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
const resolveConfig = require('../../lib/groups/resolveConfig.js');
const { resolve } = require('path');
const WebpackCLI = require('../../lib/webpack-cli');
const config1 = require('./webpack.config1.cjs');
const config2 = require('./webpack.config2.cjs');
const arrayConfig = require('./webpack.config.cjs');
const promiseConfig = require('./webpack.promise.config.cjs');

const resolveConfig = new WebpackCLI().resolveConfig;

describe('resolveConfig', function () {
it('should handle merge properly', async () => {
const result = await resolveConfig({
Expand Down
251 changes: 0 additions & 251 deletions packages/webpack-cli/lib/groups/resolveConfig.js

This file was deleted.

Loading

0 comments on commit 363f120

Please sign in to comment.