Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] exclamatory mark in chainWebpack #532

Closed
meteorlxy opened this issue May 31, 2018 · 0 comments
Closed

[Bug] exclamatory mark in chainWebpack #532

meteorlxy opened this issue May 31, 2018 · 0 comments
Labels
type: bug Something isn't working

Comments

@meteorlxy
Copy link
Member

Bug report

Version

0.10.0, 0.9.1, 0.9.0

(0.8.4 and before does not have this bug. So that could be something related to the introduction of cache-loader in 0.9.0)

Steps to reproduce

Reproduce repo https://github.com/meteorlxy/vuepress-bug-repro

In brief, add ANY exclamatory mark (!) in chainWebpack of config.js will cause an error.

E.g.

// .vuepress/config.js
module.exports = {
  chainWebpack: (config, isServer) => {
    // !exclamatory mark in comments or codes will both cause errors

    let test = true
    if (!test) {
      // ...
    }
  }
}

What is expected?

Works well

What is actually happening?

Error

Other relevant information

  • Your OS: Windows 10 / Ubuntu 18.04
  • Node.js version: 8.11.1
  • Browser version: .
  • Is this a global or local install? local
  • Which package manager did you use for the install? yarn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants