Skip to content

Commit

Permalink
Build
Browse files Browse the repository at this point in the history
  • Loading branch information
dipaksarkar committed Apr 23, 2024
1 parent 9884db2 commit e893560
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "grapesjs-pages",
"version": "1.0.15",
"version": "1.0.19",
"description": "Grapesjs Pages",
"main": "dist/index.js",
"repository": {
Expand All @@ -18,6 +18,8 @@
"plugin"
],
"devDependencies": {
"@babel/plugin-transform-regenerator": "^7.24.1",
"@babel/plugin-transform-runtime": "^7.24.3",
"css-loader": "^7.1.1",
"grapesjs-cli": "^4.1.3",
"node-sass": "^9.0.0",
Expand Down
16 changes: 15 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
// webpack.config.js
const path = require('path')

module.exports = function ({ config }) {
return {
...config,
module: {
rules: [
...config.module.rules,
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env'],
plugins: [
'@babel/plugin-transform-runtime', // Plugin for async/await
'@babel/plugin-transform-regenerator' // Plugin for async/await
]
}
}
},
{
test: /\.scss$/,
use: ['style-loader', 'css-loader', 'sass-loader']
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@
dependencies:
"@babel/helper-plugin-utils" "^7.24.0"

"@babel/plugin-transform-runtime@^7.19.6":
"@babel/plugin-transform-runtime@^7.19.6", "@babel/plugin-transform-runtime@^7.24.3":
version "7.24.3"
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.24.3.tgz#dc58ad4a31810a890550365cc922e1ff5acb5d7f"
integrity sha512-J0BuRPNlNqlMTRJ72eVptpt9VcInbxO6iP3jaxr+1NPhC0UkKL+6oeX6VXMEYdADnuqmMmsBspt4d5w8Y/TCbQ==
Expand Down

0 comments on commit e893560

Please sign in to comment.