Commit cd2eecea authored by Daniele Berardo's avatar Daniele Berardo

Merge branch 'widget-sdk/allow-parsing-mjs' into 'development'

Allow parsing mjs

See merge request !36
parents cf45715a 0076c7b7
Pipeline #189621392 passed with stages
in 6 minutes and 6 seconds
{
"name": "@tecnojest/widget-base",
"version": "1.4.37",
"version": "1.4.38",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
......@@ -5984,7 +5984,6 @@
"resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz",
"integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==",
"dev": true,
"optional": true,
"requires": {
"arr-union": "^3.1.0",
"define-property": "^0.2.5",
......@@ -5997,10 +5996,15 @@
"resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz",
"integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=",
"dev": true,
"optional": true,
"requires": {
"is-descriptor": "^0.1.0"
}
},
"isobject": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz",
"integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=",
"dev": true
}
}
},
......
{
"name": "@tecnojest/widget-base",
"author": "Tecnojest srl https://www.invidea.it",
"version": "1.4.37",
"version": "1.4.38",
"publishConfig": {
"registry": "https://npm.invidea.it"
},
......
......@@ -179,6 +179,11 @@ const defaultConfig = {
// configFile: path.join(__dirname, '.eslintrc')
// },
// },
{
test: /\.mjs$/,
include: /node_modules/,
type: 'javascript/auto',
},
{
test: /\.(scss|css)$/,
exclude: excluded_css_files,
......@@ -255,7 +260,7 @@ const defaultConfig = {
},
devtool: 'source-map',
resolve: {
extensions: ['*', '.ts', '.tsx', '.js', '.jsx'],
extensions: ['*', '.mjs', '.ts', '.tsx', '.js', '.jsx'],
// https://medium.com/@penx/managing-dependencies-in-a-node-package-so-that-they-are-compatible-with-npm-link-61befa5aaca7
alias: {
react: path.resolve('./node_modules/react'),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment