Skip to content

Commit

Permalink
Don't use restructuring in uncompiled code #434
Browse files Browse the repository at this point in the history
  • Loading branch information
ovidiuch committed Sep 8, 2017
1 parent 9ef3dfe commit 5e497c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
9 changes: 3 additions & 6 deletions packages/react-cosmos-webpack/bin/cosmos-export.js
@@ -1,11 +1,8 @@
#!/usr/bin/env node

const {
default: moduleExists
} = require('react-cosmos-utils/lib/module-exists');
const {
default: resolveUserPath
} = require('react-cosmos-utils/lib/resolve-user-path');
const moduleExists = require('react-cosmos-utils/lib/module-exists').default;
const resolveUserPath = require('react-cosmos-utils/lib/resolve-user-path')
.default;
const argv = require('yargs').argv;

// Babel is included by default, but --plain will run only on Node features
Expand Down
9 changes: 3 additions & 6 deletions packages/react-cosmos-webpack/bin/cosmos.js
@@ -1,11 +1,8 @@
#!/usr/bin/env node

const {
default: moduleExists
} = require('react-cosmos-utils/lib/module-exists');
const {
default: resolveUserPath
} = require('react-cosmos-utils/lib/resolve-user-path');
const moduleExists = require('react-cosmos-utils/lib/module-exists').default;
const resolveUserPath = require('react-cosmos-utils/lib/resolve-user-path')
.default;
const argv = require('yargs').argv;

// Babel is included by default, but --plain will run only on Node features
Expand Down

0 comments on commit 5e497c2

Please sign in to comment.