Skip to content
This repository was archived by the owner on Aug 15, 2018. It is now read-only.

spm3的spm test后报ReferenceError: Can't find variable: webpackJsonp错误 #1394

@shaozilee

Description

@shaozilee

在项目的package.json配置build.vendor=[](不配置不会有问题),执行单元测试spm test后,
报ReferenceError: Can't find variable: webpackJsonp错误
测试环境:spm3.6.11

查看在生成的_site/tests/runner.html页面,没有引用到_site/dist/vendor.bundle.js这个公共依赖模块js

不知道可否在spm3的package.json文件配置vendor的值后,在单元测试生成测试模板的时候自动引入这些公共依赖js

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions