mirror of
https://github.com/bpmn-io/bpmn-js.git
synced 2025-08-26 04:32:44 +08:00
chore(project): es6ify source code
* use ES6 import / export * UTILS: export individual utilities * TESTS: localize TestHelper includes BREAKING CHANGE: * all utilities export independent functions * library sources got ported to ES6. You must now use a ES module bundler such as Browserify + babelify or Webpack to consume this library (or parts of it).
This commit is contained in:
@ -1,7 +1,11 @@
|
||||
module.exports = {
|
||||
import RulesModule from 'diagram-js/lib/features/rules';
|
||||
|
||||
import BpmnRules from './BpmnRules';
|
||||
|
||||
export default {
|
||||
__depends__: [
|
||||
require('diagram-js/lib/features/rules')
|
||||
RulesModule
|
||||
],
|
||||
__init__: [ 'bpmnRules' ],
|
||||
bpmnRules: [ 'type', require('./BpmnRules') ]
|
||||
bpmnRules: [ 'type', BpmnRules ]
|
||||
};
|
||||
|
Reference in New Issue
Block a user