Skip to content

Instantly share code, notes, and snippets.

@moonglum
Created May 18, 2020 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moonglum/f1f353ec1fdf5787cc12043be0931c51 to your computer and use it in GitHub Desktop.
Save moonglum/f1f353ec1fdf5787cc12043be0931c51 to your computer and use it in GitHub Desktop.
Example for a faucet configuration that works with faucet-pipeline-js 2.1.2, but doesn't with 2.1.3
"use strict";
module.exports = {
js: [{
source: "./index.js",
target: "./dist/bundle.js"
}]
};
import "chart.js";
{
"scripts": {
"start": "faucet"
},
"dependencies": {
"chart.js": "^2.9.3"
},
"devDependencies": {
"faucet-pipeline-js": "2.1.3"
}
}
@moonglum
Copy link
Author

This can be fixed by replacing:

import "chart.js";

with:

import "chart.js/dist/Chart.bundle";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment