packages/cli: make plugin:serve point to src of deps
This commit is contained in:
@@ -15,11 +15,8 @@
|
||||
*/
|
||||
|
||||
import { startDevServer } from '../../lib/bundle';
|
||||
import { watchDeps } from '../../lib/watchDeps';
|
||||
|
||||
export default async () => {
|
||||
await watchDeps({ build: true });
|
||||
|
||||
await startDevServer();
|
||||
|
||||
// Wait for interrupt signal
|
||||
|
||||
@@ -45,6 +45,7 @@ export function createConfig(options: BundlingOptions): webpack.Configuration {
|
||||
],
|
||||
resolve: {
|
||||
extensions: ['.ts', '.tsx', '.mjs', '.js', '.jsx'],
|
||||
mainFields: ['main:src', 'browser', 'module', 'main'],
|
||||
plugins: [
|
||||
new ModuleScopePlugin(
|
||||
[paths.targetSrc, paths.targetDev],
|
||||
@@ -67,7 +68,6 @@ export function createConfig(options: BundlingOptions): webpack.Configuration {
|
||||
},
|
||||
{
|
||||
test: /\.(tsx?|jsx?|mjs)$/,
|
||||
include: [paths.targetSrc, paths.targetDev],
|
||||
exclude: /node_modules/,
|
||||
loader: 'ts-loader',
|
||||
options: {
|
||||
|
||||
Reference in New Issue
Block a user