Skip to content

Use with webpack broken in 0.7.6 #667

@dperetti

Description

@dperetti

Node version (or tell us if you're using electron or some other framework):

Electron

ShellJS version (the most recent version/Github branch you see the bug on):

0.7.6

Operating system:

OSX

Description of the bug:

TypeError: __webpack_require__(...).forEach is not a function
    at eval (webpack:///./~/shelljs/shell.js?:26:25)

Example ShellJS command to reproduce the error:

import { shell } from 'shelljs'

Webpack is simply confused by this commands.json trick introduced in #616.

Works in 0.7.5 before the trick.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions