Skip to content

Commit

Permalink
Merge pull request #330 from simonseyock/browser-build-es5
Browse files Browse the repository at this point in the history
make browser build es5 compatible
  • Loading branch information
KaiVolland committed Jun 11, 2021
2 parents d4069c1 + 04c4021 commit dccf644
Show file tree
Hide file tree
Showing 3 changed files with 28,964 additions and 11,752 deletions.
13 changes: 5 additions & 8 deletions browser-build.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = {
"./src/OlStyleParser.ts"
],
mode: 'production',
target: 'es5',
output: {
filename: "olStyleParser.js",
path: __dirname + "/browser",
Expand All @@ -22,15 +23,11 @@ module.exports = {
},
module: {
rules: [
// All files with a '.ts'
{
test: /\.ts$/,
include: __dirname + '/src',
use: [
{
loader: require.resolve('ts-loader'),
},
],
test: /\.(ts|js)$/,
use: {
loader: 'babel-loader'
},
}
]
}
Expand Down
Loading

0 comments on commit dccf644

Please sign in to comment.