Windows. ClojureScript fails to compile when node.js module is `require`d

Description

ClojureScript does not compile when node js modules is required.

Pre requisite

1 npm install react react-dom

Compiler options

1 2 3 4 5 {:source-map true :npm-deps {:react "16.2.0" :react-dom "16.2.0"} :install-deps true ; Note that target is not :nodejs :optimizations :none}

Example code

1 2 3 4 5 6 (ns my-app.core (:require ["react-dom/server" :as dom-server] [react :as react])) (println (dom-server/renderToString (react/createElement "div" nil "Hello, world!")))

Actual result

1 2 3 4 5 6 7 8 9 10 11 12 [eval]:85 !id.startsWith(goog:); ^^^^ SyntaxError: missing ) after argument list at createScript (vm.js:80:10) at Object.runInThisContext (vm.js:139:10) at Object.<anonymous> ([eval]-wrapper:6:22) at Module._compile (module.js:635:30) at evalScript (bootstrap_node.js:462:27) at startup (bootstrap_node.js:163:9) at bootstrap_node.js:608:3

Reproducible only on Windows and only for browser builds.

Environment

OS: windows 7
npm version: 5.5.1
node v8.9.3

Status

Assignee

Mike Fikes

Reporter

import

Labels

Approval

None

Patch

Code and Test

Priority

Major
Configure