mirror of
https://github.com/penpot/penpot-plugins.git
synced 2025-01-22 22:58:43 -05:00
feat: unsafe consoleTaming in dev for react dev tools
This commit is contained in:
parent
146a7e1066
commit
cd6f1e9f02
2 changed files with 3 additions and 2 deletions
|
@ -9,6 +9,7 @@ console.log('Loading plugin system');
|
||||||
|
|
||||||
repairIntrinsics({
|
repairIntrinsics({
|
||||||
evalTaming: 'unsafeEval',
|
evalTaming: 'unsafeEval',
|
||||||
|
consoleTaming: import.meta.env.MODE === 'development' ? 'unsafe' : 'safe',
|
||||||
});
|
});
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
|
@ -29,4 +30,4 @@ globalThis.initPluginsRuntime = (context: PenpotContext) => {
|
||||||
|
|
||||||
/* eslint-enable */
|
/* eslint-enable */
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "npx nx run plugins-runtime:build --watch & npx nx run plugins-runtime:preview",
|
"start": "npx nx run plugins-runtime:build --watch --mode development & npx nx run plugins-runtime:preview",
|
||||||
"start:example": "npx nx run example-plugin:build --watch & npx nx run example-plugin:preview",
|
"start:example": "npx nx run example-plugin:build --watch & npx nx run example-plugin:preview",
|
||||||
"start:read-plugin": "npx nx run poc-state-read-plugin:build --watch & npx nx run poc-state-read-plugin:preview",
|
"start:read-plugin": "npx nx run poc-state-read-plugin:build --watch & npx nx run poc-state-read-plugin:preview",
|
||||||
"start:contrast-plugin": "npx nx run contrast-plugin:build --watch & npx nx run contrast-plugin:preview",
|
"start:contrast-plugin": "npx nx run contrast-plugin:build --watch & npx nx run contrast-plugin:preview",
|
||||||
|
|
Loading…
Add table
Reference in a new issue