How to use the parcel.Asset function in parcel

To help you get started, we’ve selected a few parcel examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DeMoorJasper / parcel-plugin-svelte / packages / parcel-plugin-svelte / lib / utils.js View on Github external
function getAssetClass() {
  try {
    return require('parcel').Asset;
  } catch (e) {
    return require('parcel-bundler').Asset;
  }
}

parcel

Blazing fast, zero configuration web application bundler

MIT
Latest version published 8 months ago

Package Health Score

87 / 100
Full package analysis