ASM Async Loader
A loader for webpack that lets you import asm scripts in async mode to let the browser do async compilation.
Install
npm install --save-dev npm-async-loader
Usage
Use the loader either via your webpack config, CLI or inline.
Via webpack config (recommended)
webpack.config.js
moduleexports = module: rules: test: /\.js$/ use: 'asm-async-loader'
In your application
; promise ;
Inline
In your application
; promise ;