-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Old nodejs target used for rw scripts #3999
Labels
Comments
I was able to reproduce this on v0.42. But I think it's just a linting error. I tried the example on mdn in a script and it worked: // scripts/replace.ts
export default async () => {
const p = 'The quick brown fox jumps over the lazy dog. If the dog reacted, was it really lazy?'
console.log(p.replaceAll('dog', 'monkey'))
} You're probably right about it being a tsconfig setting. We use |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm on 0.39, so apologies if this is fixed in newer versions
I'd like to be able to use
replaceAll
and other modern JS features in my rw scripts.The screenshot above shows a rw script I'm editing.
Can/should we control this in tsconfig?
The text was updated successfully, but these errors were encountered: