chore: proper dev webpack config

This commit is contained in:
James
2023-10-05 14:17:57 -04:00
parent 91b0a691ed
commit ac8bcfac23
5 changed files with 4 additions and 5 deletions

View File

@@ -1 +0,0 @@
export default 'file-stub'

View File

@@ -1 +0,0 @@
export const promisify = () => {}

View File

@@ -12,17 +12,17 @@ export default buildConfig({
// for development of this plugin.
// No need to use these aliases within your own projects.
webpack: config => {
const newConfig = {
return {
...config,
resolve: {
...(config.resolve || {}),
alias: {
...(config.resolve.alias || {}),
[path.resolve(__dirname, '../../src')]: path.resolve(__dirname, '../../src/admin.js'),
react: path.resolve(__dirname, '../node_modules/react'),
},
},
}
return newConfig
},
},
typescript: {