Skip to content

Commit

Permalink
Merge pull request #296 from KaiVolland/browser-build
Browse files Browse the repository at this point in the history
Updates ts-loader and fixes browserbuild
  • Loading branch information
KaiVolland committed Apr 1, 2021
2 parents e6dfaec + 20f79c7 commit 37fe4f1
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Expand Up @@ -6,4 +6,4 @@ dist
coverage

.eslintrc.js
jest.config.js
*.config.js
10 changes: 8 additions & 2 deletions browser-build.config.js
Expand Up @@ -23,11 +23,17 @@ module.exports = {
// All files with a '.ts'
{
test: /\.ts$/,
include: __dirname + '/src',
include: [
__dirname + '/src',
__dirname + '/node_modules/geostyler-style'
],
use: [
{
loader: require.resolve('ts-loader'),
},
options: {
allowTsInNodeModules: true
}
}
],
}
]
Expand Down
83 changes: 73 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -62,7 +62,7 @@
"eslint": "^7.6.0",
"jest": "^26.3.0",
"np": "^6.4.0",
"ts-loader": "^7.0.5",
"ts-loader": "^8.1.0",
"typescript": "^3.9.7",
"webpack": "^4.44.1",
"webpack-cli": "^3.3.12"
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Expand Up @@ -9,7 +9,7 @@
"lib": ["es6", "dom"],
"sourceMap": true,
"moduleResolution": "node",
"rootDir": "src",
"rootDir": ".",
"forceConsistentCasingInFileNames": true,
"noImplicitReturns": true,
"noImplicitThis": true,
Expand Down

0 comments on commit 37fe4f1

Please sign in to comment.