Errors:
(!) Circular dependencies
node_modules/highlight.js/lib/languages/1c.js.js -> node_modules/highlight.js/lib/languages/1c.js.js
...
The rollup.config.js
maybe like:
export default {
plugins: [
nodeResolve(),
ts(),
],
}
It seeems that when you import hljs from 'hightlight.js'
, the node-resolve plugin will add .js
extension to importer, extractly is in highlight.js/lib/index.js
. And the library is very strange that you can see a *.js
file and *.js.js
file,,???
The solution is put '@rollup/plugin-typescript' before the node-resolve plugin.
export default {
plugins: [
+ ts(), // <== here
+ nodeResolve(),
],
}