Skip to content

Commit

Permalink
chore: with sourcemap
Browse files Browse the repository at this point in the history
  • Loading branch information
unional committed Jun 1, 2022
1 parent 51d5488 commit ee93606
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions webpack.config.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict';
const paramCase = require('param-case').paramCase
const pascalCase = require('pascal-case').pascalCase
const path = require('path');
Expand All @@ -25,23 +24,23 @@ module.exports = {
transpileOnly: true
}
},
// {
// loader: 'babel-loader',
// test: /\.js$/,
// options:
// {
// presets: [
// '@babel/preset-env',
// '@babel/preset-typescript'
// ],
// plugins: ['@babel/plugin-transform-modules-commonjs']
// }
// },
{
loader: 'babel-loader',
test: /\.js$/,
options:
{
presets: [
'@babel/preset-env',
'@babel/preset-typescript'
],
plugins: ['@babel/plugin-transform-modules-commonjs']
}
enforce: 'pre',
use: ['source-map-loader'],
},
// {
// test: /\.[jt]s$/,
// enforce: 'pre',
// use: ['source-map-loader'],
// },
]
},
optimization: {
Expand Down

0 comments on commit ee93606

Please sign in to comment.