Releases: egoist/poi
v9.5.0
New features:
We now have a new default babel preset: babel-preset-poi to replace babel-preset-vue-app:
jsx
option, it's set tovue
by default but you can switch to React JSX byjsx: 'react'
, or any JSX pragma like:jsx: 'h'
in Poi config file, CLI flag like:poi --jsx react
works too- babel-macros by @kentcdodds
v9.4.1
v9.2.0
v9.1.4
v9.1.0
Breaking changes
This should be published as [email protected], sorry for that.
- Upgrade to vue-loader 13.0.0 (Only affect vue users)
- Upgrade to postcss-loader 2
Basically you need to:
# this is not required in vue 2.4 + vue-router 2.7
- const Foo = () => import('./Foo.vue')
+ const Foo = () => import('./Foo.vue').then(m => m.default)
# this change is always required
- const Foo = require('./Foo.vue')
+ const Foo = require('./Foo.vue').default
This is due to .vue
file now exports ES modules
instead of CommonJS
modules.
And update your postcss plugins.
New features
- The
devServer
option now fully supports all options inwebpack-dev-server
: https://poi.js.org/#/home?id=dev-server
v9.0.0
Migrate from v8 to v9
Upgrade poi
and the presets you are using to latest version.
Breaking changes
- Preset API, checkout the new preset API at https://poi.js.org/#/presets?id=create-a-preset
- Node.js API, checkout the programmatic usage of Poi at https://poi.js.org/#/api
Minor changes
- Resolve
.jsx
extension by default.
v8.0.4
New features:
- Files ending with
.module.css
have CSS modules enabled by default. (Same for.module.sass
.module.styl
etc.) - You can use
:hot:
or[hot]
(deprecated) keyword to insert HMR entry for hot reloading, eg:
// poi.config.js
module.exports = {
entry: {
app: [':hot:', './app.js']
}
}
v8.0.0-rc.7
New features:
- Use
[hot]
keyword to insert dev client for hot reloading
Example:
// poi.config.js
module.exports = {
entry: {
app: ['[hot]', './my-app.js']
}
}
by default we only add dev client to the default entry client
, so app
does not have hot reloading support unless you add a [hot]
keyword.
v8.0.0-rc.2
Renamed from vbuild to Poi, R.I.P. my good old friend.
There're also a couple small changes: https://gist.github.com/egoist/f9690d43395748b34435672265dc89fd
Version 7.0.0
Hooray, check out the migration guide: https://gist.github.com/egoist/e3caa03010e16be194c56af7c468edf5