Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "name": "RPCS",
- "version": "1.0.0",
- "description": "",
- "main": "index.js",
- "watch": {
- "build": "Scripts/es6/*.js"
- },
- "scripts": {
- "watch": "npm-watch",
- "build": "babel Scripts/es6/ --out-file Scripts/build/bundle.js"
- },
- "keywords": [],
- "author": "",
- "license": "ISC",
- "devDependencies": {
- "@babel/cli": "^7.4.4",
- "@babel/core": "^7.4.5",
- "@babel/plugin-proposal-class-properties": "^7.4.4",
- "@babel/preset-env": "^7.4.5",
- "babel-loader": "^8.0.6",
- "babel-polyfill": "^6.26.0",
- "npm-watch": "^0.6.0",
- "webpack": "^4.35.0",
- "webpack-cli": "^3.3.5"
- }
- }
- import Person from './person';
- var person = new Person("David", 30);
- person.speak();
- import Person from './person';
- var person = new Person("David", 30);
- person.speak();
- console.log("Test");
- {
- "presets": ["@babel/preset-env"],
- "plugins": ["@babel/plugin-proposal-class-properties"]
- }
- const path = require('path');
- module.exports = {
- entry: ['./Scripts/es6/main.js'],
- output: {
- path: path.resolve(__dirname, './Scripts/build'),
- filename: 'bundle.js'
- },
- module: {
- rules: [{
- test: /.js$/,
- exclude: /node_modules/,
- use: {
- loader: "babel-loader"
- }
- }]
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement