Skip to content

Commit

Permalink
chore(examples/js-chart-and-grid-messagerouter): Change bundler to we…
Browse files Browse the repository at this point in the history
…bpack
  • Loading branch information
kruplm committed Oct 15, 2024
1 parent b432404 commit d76d181
Show file tree
Hide file tree
Showing 4 changed files with 4,765 additions and 391 deletions.
11 changes: 6 additions & 5 deletions examples/js-chart-and-grid-messagerouter/js-chart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
"type": "module",
"scripts": {
"clean": "rimraf dist",
"bundle": "rollup -c",
"build": "npm run clean && npm run bundle",
"build": "npm run build:prod",
"build:dev": "npm run clean && webpack --mode=development",
"build:prod": "npm run clean && webpack --mode=production --node-env=production",
"start": "http-server"
},
"dependencies": {
Expand All @@ -19,10 +20,10 @@
"tslib": "2.7.0"
},
"devDependencies": {
"@webpack-cli/generators": "^3.0.7",
"http-server": "14.1.1",
"rimraf": "^6.0.1",
"rollup": "^4.24.0",
"@rollup/plugin-commonjs": "28.0.0",
"@rollup/plugin-node-resolve": "15.3.0"
"webpack": "^5.95.0",
"webpack-cli": "^5.1.4"
}
}
17 changes: 0 additions & 17 deletions examples/js-chart-and-grid-messagerouter/js-chart/rollup.config.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// Generated using webpack-cli https://github.com/webpack/webpack-cli

const path = require('path');

const isProduction = process.env.NODE_ENV == 'production';


const config = {
entry: './chart.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'bundle.js',
libraryTarget: 'commonjs',
module: false,
iife: true

},
plugins: [
// Add your plugins here
// Learn more about plugins from https://webpack.js.org/configuration/plugins/
],
module: {
rules: [
// Add your rules for custom modules here
// Learn more about loaders from https://webpack.js.org/loaders/
],
},
optimization: {
minimize: false,
},
};

module.exports = () => {
if (isProduction) {
config.mode = 'production';
} else {
config.mode = 'development';
}
return config;
};
Loading

0 comments on commit d76d181

Please sign in to comment.