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

Error: Character is out of bounds #181

Open
winston0410 opened this issue Oct 4, 2020 · 0 comments
Open

Error: Character is out of bounds #181

winston0410 opened this issue Oct 4, 2020 · 0 comments

Comments

@winston0410
Copy link

Hi, I got this error and I have no idea how to solve it. Below is the code I want to handle with MagicString.remove.

const ES6CurriedFn = (param1) => (param2) => param1

// const ES6CurriedFn = (param1) => {
//   return param1
// }

function ES5CurriedFn (param1) {
  return function (param2) {
    return param1
  }
}

export {
  ES6CurriedFn,
  ES5CurriedFn
}

I guess there is no special character here at all, but it just doesn't work. How should I fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant