|
|
@@ -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,
|
|
|
})
|