You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thus if you have modern js in your project, it won't build.
To Reproduce
For example add a big int literal in the code jbrowse-plugin-template: -0x8000_0000_0000_0000n.
And try to build the plugin.
Expected behavior
To build successfully.
Screenshots
[!] (plugin at position 6) SyntaxError: Identifier directly after number (1335:18) in /data/abcdw/work/abcdw/jbrowse-plugin-hoot-gwa/src/js-runtime/reflect.js
src/js-runtime/reflect.js (1335:18)
i'm not sure if that approach would be ideal for your approach
we can try to also see if we can make a minimal and modern rollup setup
on a technical level, the only really custom things we do in jbrowse plugins is
a) make a single file bundle (generally umd)
b) resolve a bunch of externals (we get the list of re-exports from the @jbrowse/core/ReExport/list) which prevents e.g. the plugin from loading a different version of react and other stuff. this is not strictly required, you can also manually use "jbrequire" to get those externals but the remapping of externals allows you to use plain import statements
Describe the bug
jbrowse depends on
rollup-plugin-node-globals
and it have hardcoded ecmascript version:https://github.com/calvinmetcalf/rollup-plugin-node-globals/blob/edbbbbd7c485452a0168b27caa5ad49e58cf3cfe/src/inject/index.js#L59
Thus if you have modern js in your project, it won't build.
To Reproduce
For example add a big int literal in the code jbrowse-plugin-template:
-0x8000_0000_0000_0000n
.And try to build the plugin.
Expected behavior
To build successfully.
Screenshots
Version:
0249180
The text was updated successfully, but these errors were encountered: