Skip to content

Commit 6ca82e3

Browse files
authored
Merge pull request #128 from ZorrillosDev/v0.3.0
V0.3.0
2 parents cc0897d + cffd3c3 commit 6ca82e3

File tree

152 files changed

+12034
-17981
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

152 files changed

+12034
-17981
lines changed

.github/workflows/publish-web.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches:
66
- 'master'
7-
- 'v0.*.0'
7+
- 'v0.3.0'
88

99
jobs:
1010
release:

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches:
66
- 'master'
7-
- 'v0.*.0'
7+
- 'v0.3.0'
88

99
jobs:
1010
release:

config/jest/babelTransform.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ module.exports = babelJest.createTransformer({
2121
require.resolve('babel-preset-react-app'),
2222
{
2323
runtime: hasJsxRuntime ? 'automatic' : 'classic',
24+
absoluteRuntime: false
2425
},
2526
],
2627
],

config/webpack.base.js

Lines changed: 3 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,6 @@ const useTypeScript = fs.existsSync(paths.appTsConfig);
5555
// Get the path to the uncompiled service worker (if it exists).
5656
const swSrc = paths.swSrc;
5757

58-
// style files regexes
59-
const cssRegex = /\.css$/;
60-
const cssModuleRegex = /\.module\.css$/;
61-
const sassRegex = /\.(scss|sass)$/;
62-
const sassModuleRegex = /\.module\.(scss|sass)$/;
6358

6459
const hasJsxRuntime = (() => {
6560
if (process.env.DISABLE_NEW_JSX_TRANSFORM === 'true') {
@@ -456,80 +451,11 @@ module.exports = function (webpackEnv) {
456451
inputSourceMap: shouldUseSourceMap,
457452
},
458453
},
459-
// "postcss" loader applies autoprefixer to our CSS.
460-
// "css" loader resolves paths in CSS and adds assets as dependencies.
461-
// "style" loader turns CSS into JS modules that inject <style> tags.
462-
// In production, we use MiniCSSExtractPlugin to extract that CSS
463-
// to a file, but in development "style" loader enables hot editing
464-
// of CSS.
465-
// By default we support CSS Modules with the extension .module.css
466454
{
467-
test: cssRegex,
468-
exclude: cssModuleRegex,
469-
use: getStyleLoaders({
470-
importLoaders: 1,
471-
sourceMap: isEnvProduction
472-
? shouldUseSourceMap
473-
: isEnvDevelopment,
474-
}),
475-
// Don't consider CSS imports dead code even if the
476-
// containing package claims to have no side effects.
477-
// Remove this when webpack adds a warning or an error for this.
478-
// See https://github.com/webpack/webpack/issues/6571
479-
sideEffects: true,
480-
},
481-
// Adds support for CSS Modules (https://github.com/css-modules/css-modules)
482-
// using the extension .module.css
483-
{
484-
test: cssModuleRegex,
485-
use: getStyleLoaders({
486-
importLoaders: 1,
487-
sourceMap: isEnvProduction
488-
? shouldUseSourceMap
489-
: isEnvDevelopment,
490-
modules: {
491-
getLocalIdent: getCSSModuleLocalIdent,
492-
},
493-
}),
494-
},
495-
// Opt-in support for SASS (using .scss or .sass extensions).
496-
// By default we support SASS Modules with the
497-
// extensions .module.scss or .module.sass
498-
{
499-
test: sassRegex,
500-
exclude: sassModuleRegex,
501-
use: getStyleLoaders(
502-
{
503-
importLoaders: 3,
504-
sourceMap: isEnvProduction
505-
? shouldUseSourceMap
506-
: isEnvDevelopment,
507-
},
508-
'sass-loader'
509-
),
510-
// Don't consider CSS imports dead code even if the
511-
// containing package claims to have no side effects.
512-
// Remove this when webpack adds a warning or an error for this.
513-
// See https://github.com/webpack/webpack/issues/6571
514-
sideEffects: true,
515-
},
516-
// Adds support for CSS Modules, but using SASS
517-
// using the extension .module.scss or .module.sass
518-
{
519-
test: sassModuleRegex,
520-
use: getStyleLoaders(
521-
{
522-
importLoaders: 3,
523-
sourceMap: isEnvProduction
524-
? shouldUseSourceMap
525-
: isEnvDevelopment,
526-
modules: {
527-
getLocalIdent: getCSSModuleLocalIdent,
528-
},
529-
},
530-
'sass-loader'
531-
),
455+
test: /\.s(a|c)ss$/,
456+
use: ['style-loader', 'css-loader', 'sass-loader' ]
532457
},
458+
533459
// "file" loader makes sure those assets get served by WebpackDevServer.
534460
// When you `import` an asset, you get its (virtual) filename.
535461
// In production, they would get copied to the `build` folder.

0 commit comments

Comments
 (0)