Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @snowpack/plugin-parcel with all npm packages installed. Try it out:

var pluginParcel = require("@snowpack/plugin-parcel")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@snowpack/plugin-parcel v2.0.2

@snowpack/plugin-parcel

NOTE: This plugin only works on Snowpack v2.6 or earlier. For bundling with the latest version of Snowpack, we recommend @snowpack/plugin-webpack for a smaller build.

Use Parcel to bundle your application for production. Uses Parcel v1.

npm install --save-dev @snowpack/plugin-parcel
// snowpack.config.json
{
  "plugins": ["@snowpack/plugin-parcel"]
}

⚠️ NOTE: Parcel v1.x does not support Snowpack's usage of import.meta. This means that @snowpack/plugin-parcel won't work for Snowpack applications that make use of HMR (import.meta.hot) or custom environment variables (import.meta.env). If you need to use either, check out @snowpack/plugin-webpack instead.

Default Build Script

{
  "scripts": {"bundle:*": "@snowpack/plugin-parcel"}
}

Plugin Options

None

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free