@henderea/static-site-builder 1.10.4 → 1.10.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -150,7 +150,7 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
|
|
|
150
150
|
// It is guaranteed to exist because we tweak it in `env.js`
|
|
151
151
|
process.env.NODE_PATH.split(path.delimiter).filter(Boolean)
|
|
152
152
|
),
|
|
153
|
-
extensions: ['.js', '.ts', '.json'],
|
|
153
|
+
extensions: ['.js', '.ts', '.json', '.jsx', '.tsx'],
|
|
154
154
|
plugins: resolvePlugins,
|
|
155
155
|
roots: [paths.appPath, paths.publicDir],
|
|
156
156
|
},
|
|
@@ -245,7 +245,7 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
|
|
|
245
245
|
// its runtime that would otherwise processed through "file" loader.
|
|
246
246
|
// Also exclude `html` and `json` extensions so they get processed
|
|
247
247
|
// by webpack's internal loaders.
|
|
248
|
-
exclude: [/\.
|
|
248
|
+
exclude: [/\.jsx?$/, /\.tsx?$/, /\.svg$/, /\.html$/, /\.ejs$/, /\.hbs$/, /\.json$/],
|
|
249
249
|
options: {
|
|
250
250
|
name: '[name].[ext]'
|
|
251
251
|
}
|
|
@@ -258,7 +258,7 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
|
|
|
258
258
|
// It is guaranteed to exist because we tweak it in `env.js`
|
|
259
259
|
process.env.NODE_PATH.split(path.delimiter).filter(Boolean)
|
|
260
260
|
),
|
|
261
|
-
extensions: ['.js', '.ts', '.json'],
|
|
261
|
+
extensions: ['.js', '.ts', '.json', '.jsx', '.tsx'],
|
|
262
262
|
plugins: resolvePlugins,
|
|
263
263
|
roots: [paths.appPath, paths.publicDir],
|
|
264
264
|
},
|
|
@@ -371,7 +371,7 @@ export default _.defaultsDeep({}, ssbConfig.webpack || {}, {
|
|
|
371
371
|
// its runtime that would otherwise processed through "file" loader.
|
|
372
372
|
// Also exclude `html` and `json` extensions so they get processed
|
|
373
373
|
// by webpack's internal loaders.
|
|
374
|
-
exclude: [/\.
|
|
374
|
+
exclude: [/\.jsx?$/, /\.tsx?$/, /\.svg$/, /\.html$/, /\.ejs$/, /\.hbs$/, /\.json$/],
|
|
375
375
|
options: {
|
|
376
376
|
name: '[name].[ext]'
|
|
377
377
|
}
|