webpack-simple
Advanced tools
Comparing version 1.6.1 to 1.7.0
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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9851
4
177