Setup webpack and babel for webOS 1.2
This commit is contained in:
parent
c640e17ea8
commit
932d0e2af3
4 changed files with 21 additions and 5 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue