Browse Source

fixed libraryTarget

Skylsmoi 7 years ago
parent
commit
15dacc6960
2 changed files with 2 additions and 2 deletions
  1. 0 1
      dist/tracimLib.js
  2. 2 1
      webpack.config.js

+ 0 - 1
dist/tracimLib.js View File

@@ -1 +0,0 @@
1
-var tracimLib=function(e){function r(t){if(n[t])return n[t].exports;var o=n[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var n={};return r.m=e,r.c=n,r.d=function(e,n,t){r.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:t})},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,"a",n),n},r.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},r.p="",r(r.s=0)}([function(e,r,n){"use strict";function t(){console.log("bonjour ?!")}Object.defineProperty(r,"__esModule",{value:!0}),r.bonjour=t}]);

+ 2 - 1
webpack.config.js View File

@@ -9,7 +9,8 @@ module.exports = {
9 9
     filename: 'tracim_lib.js',
10 10
     pathinfo: !isProduction,
11 11
     library: 'tracim_lib',
12
-    libraryTarget: 'var'
12
+    libraryTarget: 'umd',
13
+    umdNamedDefined: true
13 14
   },
14 15
   devServer: {
15 16
     contentBase: path.join(__dirname, 'dist/'),