Skip to content

Commit

Permalink
IUM-1464 Fix bundle generation to avoid babel inserting imports state…
Browse files Browse the repository at this point in the history
…ments in commonjs modules
  • Loading branch information
andre-auth0 authored Jul 8, 2021
2 parents e9657c0 + 8c90d04 commit 1df0c18
Show file tree
Hide file tree
Showing 6 changed files with 3,394 additions and 3,218 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
build:
docker:
# specify the version you desire here
- image: node:carbon
- image: node:erbium

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
Expand Down
9 changes: 9 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
sourceType: 'unambiguous',
presets: ['@babel/preset-env', '@babel/preset-react'],
plugins: [
'@babel/plugin-transform-runtime',
'@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-syntax-dynamic-import'
]
};
2 changes: 1 addition & 1 deletion build/bundle.js

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "auth0-account-link-extension",
"version": "2.6.4",
"version": "2.6.5",
"description": "Auth0 Account Link Extension",
"main": "index.js",
"engines": {
Expand All @@ -11,9 +11,10 @@
"test": "nyc --all mocha test --recursive --timeout 5000",
"test:integration": "mocha integration --recursive --timeout 50000",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"serve:dev": "gulp run",
"client:build": "minify --clean --output dist/assets/link.$npm_package_version.min.css public/css/link.css && minify --clean --output dist/assets/admin.$npm_package_version.min.css public/css/admin.css",
"extension:build": "a0-ext build:server ./webtask.js ./dist && cp ./dist/auth0-account-link.extension.$npm_package_version.js ./build/bundle.js",
"extension:build": "a0-ext build:server ./webtask.js ./dist && cp ./dist/auth0-account-link-extension.extension.$npm_package_version.js ./build/bundle.js",
"build": "yarn run client:build && yarn run extension:build"
},
"author": "Auth0",
Expand All @@ -23,7 +24,7 @@
"bundleModules": true,
"externals": [
"[email protected]",
"auth0-extension-tools@1.3.1",
"auth0-extension-tools@1.4.0",
"[email protected]",
"[email protected]",
"[email protected]",
Expand Down Expand Up @@ -71,7 +72,7 @@
"@auth0/hapi": "13.5.1",
"auth0": "^2.8.0",
"auth0-extension-hapi-tools": "1.3.1",
"auth0-extension-tools": "1.3.1",
"auth0-extension-tools": "1.4.0",
"boom": "3.2.2",
"hapi-auth-jwt2": "7.0.1",
"inert": "4.0.1",
Expand All @@ -86,8 +87,7 @@
"winston": "1.0.0"
},
"devDependencies": {
"@babel/runtime": "7.0.0-beta.46",
"auth0-extensions-cli": "^1.1.2",
"auth0-extensions-cli": "^4.0.4",
"chai": "^4.1.0",
"eslint": "^4.3.0",
"eslint-config-auth0": "^11.0.0",
Expand Down
2 changes: 1 addition & 1 deletion webtask.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Auth0 Account Link",
"name": "auth0-account-link",
"version": "2.6.4",
"version": "2.6.5",
"preVersion": "2.6.3",
"author": "auth0",
"description":
Expand Down
Loading

0 comments on commit 1df0c18

Please sign in to comment.