minify: Don't use path.replaceWith() with a source string, use path.replaceWithSourceString()

ERROR in unknown: Don’t use path.replaceWith() with a source string, use path.replaceWithSourceString()

Seems to be the result of this change : https://github.com/babel/babili/pull/543/files

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 5
  • Comments: 31 (8 by maintainers)

Commits related to this issue

Most upvoted comments

Is this on npm yet? Asking because i still get this error message.

@michaeltrim Can you try replacing node_modules/babel-plugin-minify-constant-folding/lib/index.js with this patched version to see if that fixes it?

@j-f1 That has fixed the error when running yarn run build-main, thank you.

yarn run package still doesn’t complete but this may be unrelated just doing some investigation and will let you know.

Awesome, fingers crossed the fix version won’t be long On Tue, 20 Jun 2017 at 08:56 damiano.barbati notifications@github.com wrote:

@ahumphreys87 https://github.com/ahumphreys87 yep, using that for now thanks!

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/babel/babili/issues/576#issuecomment-309674539, or mute the thread https://github.com/notifications/unsubscribe-auth/ACZOuHzVhlXtNe8VBbMX3-0JgZNhO0xiks5sF3sXgaJpZM4N43b0 .