{ "baseUrl": "./src" }
We should not create folder name like webpack
in src/webpack
;
- while we use
import { moduleX } from webpack
; it will resolvemoduleX
fromsrc/webpack
instead import fromnode_modules
- while use
vitest
it may broken cause of wrongwebpack
imported. - change
src/webpack
tosrc/create-webpack
is ok.
-
import { webpack } from 'webpack'
should be change toimport webpack from 'webpack'
-
import { merge } from 'lodash'
should be change toimport _ from 'lodash'