Refactor exports in index.js for better structure
This commit is contained in:
11
index.js
11
index.js
@@ -1,8 +1,3 @@
|
|||||||
// This is the main entry point of the package
|
export * from './sigpro.js';
|
||||||
// Directly exports your plugin from sigpro.js
|
import * as sigpro from './sigpro.js';
|
||||||
|
export default sigpro;
|
||||||
// If your sigpro.js already exports the plugin as default, you can do:
|
|
||||||
export { default } from './sigpro.js';
|
|
||||||
|
|
||||||
// Or if you prefer CommonJS:
|
|
||||||
// module.exports = require('./sigpro.js');
|
|
||||||
|
|||||||
Reference in New Issue
Block a user