Skip to content

wasm-tool/kotlin-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@wasm-tool/kotlin-loader

Webpack loader for Kotlin

Installation

yarn add --dev @wasm-tool/kotlin-loader

Kotlin-native

We expect kotlin-native to be in your $PATH. To install check here

Usage

Add the loader and plugin in your webpack.config.js here:

module.exports = {
  // ...

  module: {
    rules: [
      {
        test: /Main.kt$/,
        loader: "@wasm-tool/kotlin-loader"
      }
    ]
  }, 
 // ...

  plugins: [
    new HtmlWebpackPlugin({
      template: 'index.html'
    }),
  ]
  // ...

};

Add this script to the index.html template

    <script wasm="program.wasm" src="program.wasm.js"></script>

About

Webpack loader for Kotlin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published