Commit Graph

2592 Commits

Author SHA1 Message Date
Haoqun Jiang 0aa8a55189 feat!: always inject safari-nomodule-fix as an external script; drop --no-unsafe-inline flag (#6422) 2021-04-16 19:23:21 +08:00
Haoqun Jiang 791fa288ad chore: should output meaningful error message for missing vue-jest dep
follow up of #6418
2021-04-16 17:16:07 +08:00
Haoqun Jiang aad72cfa78 feat: only needs one bundle if all targets support es module (#6419) 2021-04-16 16:36:51 +08:00
Haoqun Jiang 3b851a8dfe chore: add notes about upcoming Babel 8 esmodules change [skip ci] 2021-04-15 15:40:39 +08:00
Haoqun Jiang f782fa3966 test: use explicit targets in babel tests
Fixes the issue caused by https://github.com/babel/babel/pull/12989
2021-04-15 15:40:39 +08:00
Maksim Nedoshev 2f5ced38f0 fix: show fallback message for typescript jest preset if ts-jest is not installed (#6418)
Co-authored-by: Haoqun Jiang <haoqunjiang@gmail.com>

closes #6383
2021-04-15 15:13:19 +08:00
Haoqun Jiang 8a3dfa4bca fixup! fix: disable realContentHash optimization in app target 2021-04-14 23:52:01 +08:00
Haoqun Jiang 448ab961b4 fix: disable realContentHash optimization in app target
It's messing with the html-webpack-plugin, telling it the wrong hash of
the legacy bundle, therefore making the modern mode fallback unusable.

(TODO: add a test later)
2021-04-14 23:41:19 +08:00
Haoqun Jiang cd78376675 feat!: turn on modern mode by default, and provide a --no-module option (#6416) 2021-04-14 14:57:28 +08:00
Haoqun Jiang dd217b2309 feat: support vue.config.mjs (#6405) 2021-04-13 19:26:36 +08:00
IU 0dc604cc43 feat(cli-service): provide jsconfig.json in no-ts template (#6285) 2021-04-09 23:02:22 +08:00
Haoqun Jiang ae967f7698 chore: de-prioritize "Mocha + Chai" option as it requires webpack 4 for now (#6401) 2021-04-08 14:57:03 +08:00
Binwei Fang 8654e8218d fix(cli-service): respect the existing 'devtool' (#6402)
Respect the existing 'devtool' when running dev server

Fixes #6398
2021-04-07 17:58:19 +08:00
Binwei Fang 7838c0de31 fix(mocha): workaround the SVGElement issue in Vue (#6400)
related to https://github.com/vuejs/vue-next/pull/2929
2021-04-06 14:43:23 +08:00
叡山电车 de175d4f8e feat(cli-service): add inline loader support for html-webpack-plugin (#5997)
Close #2697
2021-04-05 21:37:51 +08:00
Haoqun Jiang 89af6c50c2 v5.0.0-alpha.8 2021-03-24 20:51:52 +08:00
Haoqun Jiang a5f822c5c8 chore: pre release sync 2021-03-24 20:51:30 +08:00
Haoqun Jiang fa46ed47b6 fix: check hoisted postcss version (#6372)
Also reverts #6358
2021-03-24 20:28:19 +08:00
Haoqun Jiang d64e7d3158 feat: when transpileDependencies is set to true, transpile all dependencies in node_modules (#6354) 2021-03-24 14:04:43 +08:00
Haoqun Jiang 54d5f78c34 feat: a defineConfig API from @vue/cli-service for better typing support in vue.config.js (#6355) 2021-03-24 13:56:32 +08:00
Haoqun Jiang 27b4263ed2 fix: work around npm6/postcss8 hoisting issue (#6358)
Closes #6342
2021-03-24 13:55:34 +08:00
Yazhe Wang 20355435e7 fix(build): demo-lib.html Vue 3 compatibility (#6366) 2021-03-22 16:07:18 +08:00
zoomdong 212d721f90 test: remove redundant await (#6362) 2021-03-19 11:35:26 +08:00
Haoqun Jiang 803ab8e8ea chore: cli-service is referenced in setupDevProject, so let's add it to devDependencies 2021-03-18 18:05:52 +08:00
Haoqun Jiang df62363e36 chore!: bump copy-webpack-plugin to v8 (#6348) 2021-03-16 15:19:07 +08:00
Haoqun Jiang 45eb46205f refactor!: move vue-jest and ts-jest to peer dependencies (#6347)
vue-jest now requires several different peer deps for vue 2 and vue 3;
ts-jest now requires typescript as peer dep, which should be optional
for unit-jest plugin users because they might choose not to use
typescript.

Both are causing annoying peer dep warnings.

So it only makes sense to move them to the project level, to keep things
clean.
2021-03-16 15:18:31 +08:00
Péter Gaál e960ae5caf fix: Do not display an error message on empty public folder (#6333)
copy-webpack-plugin will generate an error on missing file(s). 

For SPA, error occurs If 'public' folder only contains index.html or 'public' folder is empty.
2021-03-15 11:53:29 +08:00
Haoqun Jiang 985f2ff8d1 chore: remove preload plugin from deps for now
We are not going to add it back anytime soon. So removing it help
reduces the bundle size.

Though webpack 5 and html-webpack-plugin 5 support was added to
the plugin, there are still tests to be done for compatibility with
the new default configurations.
For example, we need to see how the new `defer` option affects the
result.
2021-03-12 14:54:24 +08:00
Haoqun Jiang 06eefe41ab chore: dependency maintenance 2021-03-12 14:52:10 +08:00
Haoqun Jiang e591bfa5eb v5.0.0-alpha.7 2021-03-11 16:27:23 +08:00
Haoqun Jiang 78245024e6 chore: pre release sync 2021-03-11 16:27:04 +08:00
Haoqun Jiang 83de3d8121 fix: use cssnano v5.0.0-rc.1, work around a npm 6 hoisting bug (#6343)
Fixes #6342
2021-03-11 15:40:29 +08:00
Haoqun Jiang 40e3de2c7c v5.0.0-alpha.6 2021-03-10 20:47:12 +08:00
Haoqun Jiang 6c383528a7 chore: pre release sync 2021-03-10 20:46:27 +08:00
Haoqun Jiang 59b6eb93d7 chore!: update vue-jest to v4.x (#6335) 2021-03-10 20:26:40 +08:00
Haoqun Jiang 7fa6837288 fix: some small refinements in the ui codebase (#6315) 2021-03-10 16:18:51 +08:00
Haoqun Jiang 7c580b8f0b fix: fix build --dest option (#6314)
Closes #6312
2021-03-10 13:28:33 +08:00
Haoqun Jiang f4fb99de97 feat!: upgrade to css-loader 5; remove css.requireModuleExtension & css.modules options (#6332) 2021-03-10 00:05:02 +08:00
Tony Trinh 5e50ecff9f chore: remove the word "Preview" from vue 3 preset (#6310)
related to #6300
2021-02-24 13:52:48 +08:00
Haoqun Jiang 6f88bd5ff4 v5.0.0-alpha.5 2021-02-23 16:44:23 +08:00
Haoqun Jiang fdf86b5935 chore: pre release sync 2021-02-23 16:42:01 +08:00
Haoqun Jiang a92bc30852 fix(webdriverio): add expect-webdriverio to tsconfig (#6309) 2021-02-23 16:15:55 +08:00
Haoqun Jiang 8670997258 chore: bump js-yaml version 2021-02-23 15:58:10 +08:00
Haoqun Jiang df00b3e0bc feat(GeneratorAPI): forceOverwrite option for extendPackage (#6307) 2021-02-23 14:44:22 +08:00
Haoqun Jiang 9e5b194abf chore: bump sass-loader versions in template 2021-02-22 16:28:12 +08:00
Haoqun Jiang 1a5100b5a0 test: remove e2e test for dart sass
It doesn't add much value and interferes webpack 4 tests
2021-02-22 16:27:20 +08:00
Haoqun Jiang e8e4bd7a6e chore: bump some devDependencies versions 2021-02-22 15:01:08 +08:00
Haoqun Jiang 6dd15344d4 chore!: update default postcss-loader
fixup f9169d865b
2021-02-22 15:01:08 +08:00
xiek bb9c0011bd bugfix: string padding length is error (#6254)
Co-authored-by: 谢恺 <kaixie@caih.com>
2021-02-22 14:47:21 +08:00
Superman a27e33bef8 fix: dependent package nickname (#6304) 2021-02-22 14:29:46 +08:00