packages/cli: make plugin:serve point to src of deps

This commit is contained in:
Patrik Oldsberg
2020-05-16 12:33:14 +02:00
parent fb78fb2da4
commit a6376ee7f5
2 changed files with 1 additions and 4 deletions
@@ -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
+1 -1
View File
@@ -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: {