Browse Source

fix

master
peter 5 years ago
parent
commit
5f0dbca47f
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      src/webpack.js

+ 3
- 3
src/webpack.js View File

5
   target: "web",
5
   target: "web",
6
   entry: path.resolve(__dirname, 'Frontend.ts'),
6
   entry: path.resolve(__dirname, 'Frontend.ts'),
7
   output: {
7
   output: {
8
-      path: path.resolve(__dirname, '..', 'js', 'rpclibrary.browser.js'),
9
-      filename: "Frontend.js",
10
-      libraryTarget: 'commonjs',
8
+    path: path.resolve(__dirname, '..', 'js', 'browser'),
9
+    filename: "rpclibrary.browser.js",
10
+    libraryTarget: 'window'
11
   },
11
   },
12
   resolve: {
12
   resolve: {
13
     extensions: [".ts", ".tsx", ".js"]
13
     extensions: [".ts", ".tsx", ".js"]

Loading…
Cancel
Save