-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
section chunking by removing from main bundle #359
base: master
Are you sure you want to change the base?
Conversation
src/lib/Theme.ts
Outdated
|
||
// Define the regular expression for disallowed patterns | ||
const disallowedPatterns = /[\.,_]|sections|section|\d/; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add validations for special characters as well
src/lib/Theme.ts
Outdated
|
||
let fileNames = fs | ||
.readdirSync(`${process.cwd()}/theme/sections`) | ||
.filter((o) => o !== 'index.js' && o !== 'sectionsSettings.json'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be required now sectionsSettings
@@ -1148,8 +1159,8 @@ export default class Theme { | |||
typeof options['ssr'] === 'boolean' | |||
? options['ssr'] | |||
: options['ssr'] == 'true' | |||
? true | |||
: false; | |||
? true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nested ternary operator not required?
@@ -1198,13 +1209,20 @@ export default class Theme { | |||
typeof options['hmr'] === 'boolean' | |||
? options['hmr'] | |||
: options['hmr'] == 'true' | |||
? true | |||
: false; | |||
? true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nested ternary operator is not requred
No description provided.