-
Notifications
You must be signed in to change notification settings - Fork 248
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
issue/3017 Added config.json:build.strictMode #3018
Conversation
this will also need to be added to the schema for config.json I think? and also suggest adding it to the 'OOTB' course's config.json I'm thinking that for FW courses strict mode should be on by default but maybe off by default for AAT ones? purely on the basis that an AAT instance is more likely to have a large collection of 3rd party plugins and it's unreasonable to require an another to amend this setting on every single course they have in the AAT just because one or two of the plugins are missing variable declarations |
Yup, sounds like a plan. Need to make sure it fixes the issue before I do that stuff. |
@oliverfoster it's certainly fixing the problem of using a 'rollup' build of the FW with spoor v3.3.2 - not seeing any errors now if I set |
There isn't any |
@moloko it might just be easier to turn off the strict mode universally until some later breaking-change date? |
sure, or just default it to off unless enabled via the setting in config.json - I think most people developing plugins do so in the FW first so that would give them the opportunity to get their code working to the |
could we change the name of the setting in config.json to |
So strict mode is off by default (AAT), enabled with |
@davetaz :
|
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.
👀
fixes #3017
Added
config.json:build.strictMode
to turn on strict mode directives in javascript output