📦 Parcel v1.5.0 released: Source Maps, WebAssembly, Rust, and more! 🚀

  • 🗺 JavaScript Source Map support — this was a huge ask from the community, and we have it now. A ton of work went into making sure this is blazing fast, just like the rest of Parcel so you can have good debugging and good build performance together. 🚀
  • ⚙️ WebAssembly support — an emerging technology, this will become more important in the future and enable a diversity of languages on the web and native-level performance. Parcel makes it super easy to get started — we handle many of the details for you with zero configuration!
  • 🦀 Rust → WebAssembly support — continuing on the above, the first language to support compiling to WebAssembly out of the box is Rust! Now you can import a .rs file just like you can .js!
  • 💸 Config files invalidate cache — files like .babelrc are now added as dependencies of your source files. When you change your configuration, everything automatically rebuilds as needed!
  • 🌎 .env file support — now you can specify environment variables needed to build your application in a .env file, or even a deployment environment specific file like .env.production.
  • 🚀 Even faster for smaller projects — Parcel’s multicore approach was fast for large projects, but caused a bottleneck for smaller projects. Now Parcel warms up workers in the background so smaller projects build faster too!
  • 👌 Many bugfixes and improvements!

Source Maps

WebAssembly

// synchronous import
import {add} from './add.wasm';
console.log(add(2, 3));
// asynchronous import
const {add} = await import('./add.wasm');
console.log(add(2, 3));

Rust Support

// synchronous import
import {add} from './add.rs';
console.log(add(2, 3));
// asynchronous import
const {add} = await import('./add.rs');
console.log(add(2, 3));
#[no_mangle]
pub fn add(a: i32, b: i32) -> i32 {
return a + b
}

Try it out!

--

--

--

Full stack JavaScripter. Blogger at @badass_js. Audio hacker @audiocogs. Engineer @storify & @livefyre.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Creating a football pool as an excuse to learn Node JS

My First Thoughts on React-Native

5 Tips to Solve Common Pitfalls With React Native

Gatsby + Apollo + GraphCool + Netlify: The Web’s Promised Land

Personal WhatsApp Automation

Smart ways to write JSX in your React app

A Type-Driven Approach To React and Redux Using TypeScript

What Is The Short-Circuit Operator in JavaScript? (&&, Logical AND)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
devongovett

devongovett

Full stack JavaScripter. Blogger at @badass_js. Audio hacker @audiocogs. Engineer @storify & @livefyre.

More from Medium

Deno nuggets: Default cache path on Mac, Linux, and Windows

Writing better Elm code with simple List transformations

Introducing Obsidian 5.0, built for Deno

⚙️ Hello WASM on Firebase