Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Remove extraneous env check
Browse files Browse the repository at this point in the history
  • Loading branch information
eliperelman committed Mar 17, 2019
1 parent faaa112 commit 4ce9d5a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
6 changes: 0 additions & 6 deletions packages/neutrino/Neutrino.js
Expand Up @@ -38,12 +38,6 @@ module.exports = class Neutrino {
);
}

if ('env' in options) {
throw new ConfigurationError(
'options.env has been removed. Apply middleware conditionally instead.'
);
}

if (!options.mains) {
Object.assign(options, {
mains: {
Expand Down
12 changes: 0 additions & 12 deletions packages/neutrino/test/api_test.js
Expand Up @@ -69,18 +69,6 @@ test('throws when legacy options.node_modules is set', t => {
t.throws(() => new Neutrino({ node_modules: 'abc' }), /options\.node_modules has been removed/);
});

test('throws when legacy options.env is set', t => {
t.throws(() => new Neutrino({
env: {
NODE_ENV: {
production: neutrino => {
neutrino.config.devtool('alpha');
}
}
}
}), /options\.env has been removed/);
});

test('options.mains', t => {
const api = new Neutrino();

Expand Down

0 comments on commit 4ce9d5a

Please sign in to comment.