Open ctjlewis opened 3 years ago
This is great, thank you!
Apologies, but I've restructured the app a little and removed earlier datasets in favor of November data (should have merged this in first - my bad!). If you can update this to reflect that, we'll get this in 🚀
Currently:
Will throw:
Because the Node module resolution algorithm checks
perf-track/package.json
, sees that it is not marked with"type": "module"
, and treats it as CJS.This PR makes a quick change to explicitly declare the package as an ES module.
Footnotes
Also, import statements like
import { namedImport } from './my-relative-path/entry.js'
require file extensions if the file has a file extension (entry
will not resolve toentry.js
). Simply adding the necessary.js
extensions allows JS clients to execute the source as-is, without precompiling with Rollup.