We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b17acb2 commit c3fa547Copy full SHA for c3fa547
rollup/plugins/npmPlugins.js
@@ -42,3 +42,22 @@ export function makeConstToVarPlugin() {
42
},
43
});
44
}
45
+
46
+/**
47
+ * Create a plugin which can be used to pause the build process at the given hook.
48
+ *
49
+ * Hooks can be found here: https://rollupjs.org/guide/en/#build-hooks
50
51
+ * @param hookName The name of the hook at which to pause.
52
+ * @returns A plugin which inserts a debugger statement in the phase represented by the given hook
53
+ */
54
+export function makeDebuggerPlugin(hookName) {
55
+ return {
56
+ name: 'debugger-plugin',
57
+ [hookName]: () => {
58
+ // eslint-disable-next-line no-debugger
59
+ debugger;
60
+ return null;
61
+ },
62
+ };
63
+}
0 commit comments