Skip to content

Instantly share code, notes, and snippets.

@tomtheisen
Created February 15, 2019 18:43
Show Gist options
  • Save tomtheisen/2434c92d896c93edf13aa0519ce31d30 to your computer and use it in GitHub Desktop.
Save tomtheisen/2434c92d896c93edf13aa0519ce31d30 to your computer and use it in GitHub Desktop.
ts-loader bigint literal repro
let a = 3n;
{
"devDependencies": {
"ts-loader": "^5.3.3",
"typescript": "^3.3.3",
"webpack": "^4.29.4",
"webpack-cli": "^3.2.3"
}
}
{
"compilerOptions": {
"target": "esnext",
"lib": ["esnext"],
}
}
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