mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
grafana/toolkit: support windows paths (#18306)
This commit is contained in:
parent
7891233812
commit
294eabda5b
@ -42,7 +42,7 @@ const getModuleFiles = () => {
|
||||
|
||||
const getManualChunk = (id: string) => {
|
||||
if (id.endsWith('module.ts') || id.endsWith('module.tsx')) {
|
||||
const idx = id.indexOf('/src/');
|
||||
const idx = id.indexOf(path.sep + 'src' + path.sep);
|
||||
if (idx > 0) {
|
||||
const name = id.substring(idx + 5, id.lastIndexOf('.'));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user