Socket
Socket
Sign inDemoInstall

webpack-simple

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-simple - npm Package Compare versions

Comparing version 1.6.1 to 1.7.0

CHANGELOG.md

18

index.js

@@ -52,7 +52,9 @@ const defaultJSExclude = [/\.json$/, /node_modules/];

// const makeTS = () => ({
// test: /\.tsx?$/,
// exclude: [/node_modules/],
// use: [{ loader: 'ts-loader' }],
// });
const defaultTSExclude = [/node_modules/];
const defaultTSUse = [{ loader: 'ts-loader' }];
const makeTS = ({ exclude = defaultTSExclude, use = defaultTSUse } = {}) => ({
test: /\.tsx?$/,
exclude,
use,
});

@@ -125,2 +127,3 @@ const defaultCSSLoaderOptions = { modules: true };

js,
ts,
css,

@@ -164,2 +167,6 @@ node,

if (ts) {
customRules = [...rules, ts === true ? makeTS() : ts];
}
return {

@@ -178,2 +185,3 @@ ...options,

makeJS,
makeTS,
makeCSS,

@@ -180,0 +188,0 @@ defaultWebpackRules,

{
"name": "webpack-simple",
"version": "1.6.1",
"version": "1.7.0",
"description": "Webpack Config - Simple defaults, extendable options",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc