mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2024-11-10 09:39:14 +08:00
chore: remove webpack-dev-server
This commit is contained in:
parent
94b4f3aa80
commit
4398191f95
@ -2,7 +2,6 @@
|
||||
module.exports = {
|
||||
presets: [
|
||||
'@babel/preset-env',
|
||||
'@babel/preset-typescript',
|
||||
],
|
||||
plugins: [
|
||||
/* eslint-disable-next-line global-require */
|
||||
|
@ -1,30 +0,0 @@
|
||||
import { createApp, defineComponent } from 'vue';
|
||||
|
||||
const Child = defineComponent({
|
||||
props: ['foo'],
|
||||
setup(props) {
|
||||
return () => <div>{props.foo}</div>;
|
||||
},
|
||||
});
|
||||
|
||||
Child.inheritAttrs = false;
|
||||
|
||||
const App = defineComponent({
|
||||
data: () => ({
|
||||
test: '1',
|
||||
}),
|
||||
render() {
|
||||
return (
|
||||
<>
|
||||
<input type="radio" value="1" v-model={this.test} name="test" />
|
||||
<input type="radio" value="2" v-model={this.test} name="test" />
|
||||
</>
|
||||
);
|
||||
},
|
||||
});
|
||||
|
||||
const app = createApp(App);
|
||||
|
||||
app.mount('#app');
|
||||
|
||||
console.log(app);
|
@ -14,7 +14,8 @@
|
||||
"dev": "npm run build && webpack-dev-server",
|
||||
"build": "tsc",
|
||||
"lint": "eslint 'src/*.ts'",
|
||||
"test": "npm run build && jest --coverage"
|
||||
"test": "npm run build && jest --coverage",
|
||||
"prepublish": "npm run build"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/vuejs/jsx-next/issues"
|
||||
@ -35,24 +36,16 @@
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.0.0",
|
||||
"@babel/preset-env": "^7.0.0",
|
||||
"@babel/preset-typescript": "^7.10.4",
|
||||
"@rollup/plugin-babel": "^5.0.3",
|
||||
"@types/jest": "^26.0.7",
|
||||
"@types/svg-tags": "^1.0.0",
|
||||
"@typescript-eslint/eslint-plugin": "^4.0.1",
|
||||
"@typescript-eslint/parser": "^4.0.1",
|
||||
"@vue/compiler-dom": "3.0.0-rc.10",
|
||||
"@vue/test-utils": "2.0.0-beta.2",
|
||||
"babel-jest": "^26.0.1",
|
||||
"babel-loader": "^8.1.0",
|
||||
"jest": "^26.0.1",
|
||||
"regenerator-runtime": "^0.13.5",
|
||||
"rollup": "^2.13.1",
|
||||
"ts-jest": "^26.1.3",
|
||||
"typescript": "^4.0.2",
|
||||
"vue": "3.0.0-rc.10",
|
||||
"webpack": "^4.43.0",
|
||||
"webpack-cli": "^3.3.11",
|
||||
"webpack-dev-server": "^3.10.3"
|
||||
"vue": "3.0.0-rc.10"
|
||||
}
|
||||
}
|
||||
|
@ -1,17 +0,0 @@
|
||||
// import babel from '@rollup/plugin-babel';
|
||||
import commonjs from '@rollup/plugin-commonjs';
|
||||
import typescript from '@rollup/plugin-typescript';
|
||||
|
||||
export default {
|
||||
input: 'src/index.ts',
|
||||
plugins: [
|
||||
commonjs(),
|
||||
typescript(),
|
||||
],
|
||||
output: [
|
||||
{
|
||||
file: 'dist/index.js',
|
||||
format: 'cjs',
|
||||
},
|
||||
],
|
||||
};
|
@ -1,26 +0,0 @@
|
||||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
mode: 'development',
|
||||
devtool: 'cheap-module-eval-source-map',
|
||||
entry: './example/index.js',
|
||||
output: {
|
||||
path: path.resolve(__dirname, './dist'),
|
||||
publicPath: '/dist/',
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.jsx?$/,
|
||||
loader: 'babel-loader',
|
||||
exclude: /node_modules/,
|
||||
},
|
||||
],
|
||||
},
|
||||
devServer: {
|
||||
inline: true,
|
||||
open: true,
|
||||
hot: true,
|
||||
overlay: true,
|
||||
},
|
||||
};
|
Loading…
Reference in New Issue
Block a user