Skip to content

Add support for import()  #26231

Closed
Closed
@empz

Description

@empz

VSCode: 1.12.1

I'm using Webpack 2 import() to dynamically load a scss file like this:

import("./styles/main.scss");

VSCode throws the following error:

severity: 'Error'
message: 'Declaration or statement expected.'
at: '1,1'
source: 'js'

Is there any way to suppress this error?

Metadata

Metadata

Assignees

Labels

javascriptJavaScript support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions