Skip to content

Commit

Permalink
changed weboack cinfig
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalkSimplify committed Oct 3, 2023
1 parent 4f225d2 commit 6404931
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .config/webpack/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const config = async (env): Promise<Configuration> => {
loader: 'swc-loader',
options: {
jsc: {
baseUrl: '/src',
baseUrl: './src',
target: 'es2015',
loose: false,
parser: {
Expand Down
32 changes: 32 additions & 0 deletions webpack.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// webpack.config.ts
import type { Configuration } from 'webpack';
import { merge } from 'webpack-merge';
import grafanaConfig from './.config/webpack/webpack.config';

const config = async (env): Promise<Configuration> => {
const baseConfig = await grafanaConfig(env);

return merge(baseConfig, {
// Add custom config here...
output: {
asyncChunks: true,
},
module: {
rules: [
{
use: {
options: {
jsc: {
baseUrl: '/src',

}
}

},
},
],
},
});
};

export default config;

0 comments on commit 6404931

Please sign in to comment.