From c44fbe9f0a8dd672573ca4da6832ffdf82171675 Mon Sep 17 00:00:00 2001 From: Conduitry Date: Tue, 27 Dec 2016 20:41:21 -0500 Subject: [PATCH] properly escape sharedPath in generated import statement --- src/generators/dom/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generators/dom/index.js b/src/generators/dom/index.js index 4700e5618ace..88dcb91faa34 100644 --- a/src/generators/dom/index.js +++ b/src/generators/dom/index.js @@ -343,7 +343,7 @@ export default function dom ( parsed, source, options, names ) { const names = [ 'get', 'fire', 'observe', 'on', 'dispatchObservers' ].concat( Object.keys( generator.uses ) ); builders.main.addLineAtStart( - `import { ${names.join( ', ' )} } from '${sharedPath}'` + `import { ${names.join( ', ' )} } from ${JSON.stringify( sharedPath )}` ); } else { builders.main.addBlock( shared.dispatchObservers.toString() );