Setup webpack and babel for webOS 1.2

This commit is contained in:
Dmitry Lyzo 2020-11-27 19:17:04 +03:00
parent c640e17ea8
commit 932d0e2af3
4 changed files with 21 additions and 5 deletions

View file

@ -24,7 +24,7 @@ const LibarchiveWasm = [
module.exports = {
context: path.resolve(__dirname, 'src'),
target: 'web',
target: 'browserslist',
resolve: {
modules: [
path.resolve(__dirname, 'node_modules')
@ -91,7 +91,7 @@ module.exports = {
},
{
test: /\.js$/,
exclude: /node_modules[\\/](?!date-fns|epubjs)/,
exclude: /node_modules[\\/](?!@uupaa[\\/]dynamic-import-polyfill|date-fns|epubjs|pdfjs-dist)/,
use: [{
loader: 'babel-loader',
options: {