Created
February 15, 2019 18:43
-
-
Save tomtheisen/2434c92d896c93edf13aa0519ce31d30 to your computer and use it in GitHub Desktop.
ts-loader bigint literal repro
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let a = 3n; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"devDependencies": { | |
"ts-loader": "^5.3.3", | |
"typescript": "^3.3.3", | |
"webpack": "^4.29.4", | |
"webpack-cli": "^3.2.3" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"compilerOptions": { | |
"target": "esnext", | |
"lib": ["esnext"], | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
mode: "development", | |
devtool: "inline-source-map", | |
entry: "./app.ts", | |
output: { | |
filename: "bundle.js" | |
}, | |
resolve: { | |
// Add `.ts` and `.tsx` as a resolvable extension. | |
extensions: [".ts", ".tsx", ".js"] | |
}, | |
module: { | |
rules: [ | |
// all files with a `.ts` or `.tsx` extension will be handled by `ts-loader` | |
{ test: /\.tsx?$/, loader: "ts-loader" } | |
] | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment