js: Let ESBuild handle all imports from node_modules
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 13 Nov 2020 07:54:29 +0000 (08:54 +0100)
committerGitHub <noreply@github.com>
Fri, 13 Nov 2020 07:54:29 +0000 (08:54 +0100)
commit78f227b664d86c30fbb25f7a953b7ef8f2dacf13
tree20c298b724513402830072a4d6768e6642851689
parent5e03f644a4507f51bdbcdb42b65ce4e99095374f
js: Let ESBuild handle all imports from node_modules

This commit fixes some issues where modules in /assets share the same name as in node_modules.

This was not intended, and with this commit the node_modules-components should be isolated. If you want to redefine something inside node_modules, use the `defines` option.

Fixes #7948
commands/static_syncer.go
hugolib/filesystems/basefs.go
hugolib/filesystems/basefs_test.go
hugolib/site.go
resources/resource_transformers/js/options.go
resources/resource_transformers/tocss/scss/tocss.go