Closed melloware closed 4 years ago
Timeline is failing with Content Security Policy enabled for 2 reasons.
You are using "use strict" mode in your dist.
See this comment in Regenerator dependency:
https://github.com/facebook/regenerator/blob/master/packages/regenerator-runtime/runtime.js#L716-L728
Need to remove use strict from Babel: https://stackoverflow.com/questions/33821312/how-to-remove-global-use-strict-added-by-babel
use strict
Looks like it needs to fixed in vis-dev-utils: https://github.com/visjs/vis-dev-utils/blob/master/babel-preset/index.js
I think this is fixed now with this PR: https://github.com/visjs/vis-timeline/pull/483
Indeed.
Timeline is failing with Content Security Policy enabled for 2 reasons.
You are using "use strict" mode in your dist.
See this comment in Regenerator dependency:
https://github.com/facebook/regenerator/blob/master/packages/regenerator-runtime/runtime.js#L716-L728
Need to remove
use strict
from Babel: https://stackoverflow.com/questions/33821312/how-to-remove-global-use-strict-added-by-babelLooks like it needs to fixed in vis-dev-utils: https://github.com/visjs/vis-dev-utils/blob/master/babel-preset/index.js