Eugene Pankov 2 years ago
parent
commit
4935c1a985
1 changed files with 5 additions and 2 deletions
  1. 5 2
      tabby-web-demo/webpack.config.mjs

+ 5 - 2
tabby-web-demo/webpack.config.mjs

@@ -1,5 +1,8 @@
-const config = require('../webpack.plugin.config')
-module.exports = config({
+import * as path from 'path'
+const __dirname = path.dirname(new URL(import.meta.url).pathname)
+import config from '../webpack.plugin.config.mjs'
+
+export default () => config({
     name: 'web-demo',
     dirname: __dirname,
 })