File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { BetterMap , createGenerator , UserConfigDefaults } from '@unocss/core'
22import { loadConfig } from '@unocss/config'
33import { createUnplugin , UnpluginOptions , ResolvedUnpluginOptions } from 'unplugin'
4- import { RawSource } from 'webpack-sources'
54import { createFilter } from '@rollup/pluginutils'
5+ import * as WebpackSources from 'webpack-sources'
66import { getPath } from '../../vite/src/utils'
77import { defaultInclude , defaultExclude } from '../../plugins-common/defaults'
88import { resolveId , ALL_LAYERS , PLACEHOLDER_RE } from '../../plugins-common/layers'
@@ -85,7 +85,7 @@ export default function WebpackPlugin(
8585 : result . getLayer ( layer ) || ''
8686 } )
8787 if ( replaced )
88- compilation . assets [ file ] = new RawSource ( code ) as any
88+ compilation . assets [ file ] = new WebpackSources . RawSource ( code ) as any
8989 }
9090 } )
9191 } )
You can’t perform that action at this time.
0 commit comments