> npm install --save-dev surplus-loader
// webpack.config.js ... module: { rules: [ // if just using javascript { test: /\.jsx$/, loader: 'surplus-loader' }, // if using with typescript { test: /\.tsx?$/, loader: 'surplus-loader!ts-loader' }, ] } ...
Here's an example of an entire webpack.config.js that uses typescript.
// webpack.config.js module.exports = { entry: './src/main.ts', output: { filename: './dist/main.js' }, resolve: { extensions: ['.ts', '.tsx', '.js'] }, module: { rules: [ { test: /\.tsx?$/, loader: 'surplus-loader!ts-loader' }, ] } };
Note:
"jsx": "preserve"
in your tsconfig.json.RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4