Skip to content

可以在webpack中使用么? #41

Description

@wweggplant

使用webpack开发,工具提示找不到Regular实例
主要代码如下:

import App from "./App";
import router  from "./router";
import restate   from "regular-state";

new App({
    data: {username: "leeluolee"}
}).$inject('#app');
restate()
    .state(router.routes) //完成路由节点注册
    .start({ html5: true ,view: document.getElementById('app')}); // 启动路由
```

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions