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

@format replaces IIFE blocks with content hash #633

Open
farism opened this issue Sep 3, 2023 · 0 comments
Open

@format replaces IIFE blocks with content hash #633

farism opened this issue Sep 3, 2023 · 0 comments
Labels
bug Something isn't working language Language feature

Comments

@farism
Copy link
Contributor

farism commented Sep 3, 2023

component Main {
  fun render : Html {
    let {result, code} =
      @format {
        let iifetest =
          () {
            `
            (() => {
              // ...
            })()
            `
          }

        ""
      }

    <pre>
      <{ code }>
    </pre>
  }
}

will result in

let iifetest =
  () {
    `6e915ffb5b7723d0ddb6fed455221832`
  }

""
@Sija Sija added bug Something isn't working language Language feature labels Sep 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working language Language feature
Development

No branches or pull requests

2 participants